Reconfigure for eth1 (DNS not resolving)

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 viewtopic.php?f=30&t=21589 for an example.
Post Reply
OpenVpn Newbie
Posts: 1
Joined: Fri Aug 10, 2018 10:38 am

Reconfigure for eth1 (DNS not resolving)

Post by surreydude » Fri Aug 10, 2018 10:45 am


I have been using openvpn for some time and it was configured to use eth0 but my onboard network card failed and now I use eth1 for networking - no other interfaces are present.

Unsuprisingly, as a result, my VPN connections work fine except DNS doesn't resolve.

I have changed iptables to permit traffic between tun0 and eth1 (where it was previously eth0) and I suspect that the config on my server needs a change but not sure what.

So far I have changed /etc/openvpn/server.conf as follows:

;push "redirect-gateway def1" -- old value
push "redirect-gateway local" --new value (the IP of eth1)

to see if specifying the IP for the gateway route works but it doesn't.

Can anyone shed light on the simple change I need to make?

Please note that I am not routing from one interface to another - I am just now using eth1 instead of eth0.


Post Reply