Created
January 9, 2017 12:39
-
-
Save vaultah/07a3ee1038cb932c8e16fa4ed30bb824 to your computer and use it in GitHub Desktop.
VPN patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add extra options to .ovpn files | |
resolv_script="/etc/openvpn/update-resolv-conf" | |
auth="auth" | |
extra=" | |
script-security 2 | |
up $resolv_script | |
down $resolv_script | |
auth-user-pass $auth" | |
for filename in *.ovpn; do echo "$extra" >> $filename; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment