Page 1 of 1

Reconfigure for eth1 (DNS not resolving)

Posted: Fri Aug 10, 2018 10:45 am
by surreydude
Hi

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 192.168.0.11" --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.

Thanks