Page 1 of 1

changing resolv.conf - update-resolv-conf script

Posted: Thu Jun 05, 2014 11:02 pm
by H2O
Every time I run "openvpn --config "/etc/openvpn/some-config.ovpn", it fails to return the nameservers I had listed in "/etc/resolv.conf" back to what they were beforehand. There must be a step I have overlooked to make this happen. What am I missing?

Re: changing resolv.conf - update-resolv-conf script

Posted: Mon Oct 06, 2014 11:20 am
by debbie10t
On *nix systems you require this (or it's equivelent) in your client config:

Code: Select all

script-security 2
up   /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf