Skip to content

Instantly share code, notes, and snippets.

@guyhughes
Created April 20, 2016 14:36
Show Gist options
  • Save guyhughes/01b46bbc5546e6a2cccb34d279553916 to your computer and use it in GitHub Desktop.
Save guyhughes/01b46bbc5546e6a2cccb34d279553916 to your computer and use it in GitHub Desktop.
How to make openvpn resolv.conf updates work
apt-get install openresolv
echo > vpntarget.ovpn <<<EOF
script-security 2
dhcp-option DNS 8.8.8.4
dhcp-option DNS 8.8.4.4
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment