changing resolv.conf - update-resolv-conf script

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See https://forums.openvpn.net/viewtopic.php?f=30&t=21589 for an example.
H2O
OpenVPN User
Posts: 18
Joined: Sun May 25, 2014 6:32 pm

changing resolv.conf - update-resolv-conf script

Postby H2O » Thu Jun 05, 2014 11:02 pm

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?

User avatar
debbie10t
Forum Team
Posts: 24
Joined: Sat Mar 03, 2012 9:42 pm

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

Postby debbie10t » Mon Oct 06, 2014 11:20 am

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


Return to “Configuration”

Who is online

Users browsing this forum: No registered users and 5 guests