Skip to content

Instantly share code, notes, and snippets.

@jonathlt
Created January 22, 2018 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathlt/764e78b617f69e72ec09e984281e3741 to your computer and use it in GitHub Desktop.
Save jonathlt/764e78b617f69e72ec09e984281e3741 to your computer and use it in GitHub Desktop.
Set max routes in openvpn network manager on ubuntu
OpenVPN network manager does not currently have the setting for max-routes in the GUI
The solution to the problem is to rename the openvpn executable and call it from a script with parameters appended
sudo mv /usr/sbin/openvpn /usr/sbin/openvpnm
add the following to a new openvpn file:
#!/bin/sh
/usr/sbin/openvpnm --max-routes 500 "$@"
chmod +x /usr/sbin/openvpn
@aileenh
Copy link

aileenh commented Jan 24, 2018

awesome - thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment