I've been trying to set up leak-proof OpenVPN connection using NordVPN servers. I've been using NordVPNs UDP config simply running "sudo openvpn nordvpn.conf".
The issue I'm having is that once tun0 is setup and connection is established, I need to manually set NordVPN DNS servers for the tun0 interface. I'm using NetworkManager for this. Problem here is that I need to do this for every time I start a new ovpn connection. Additionally I need to take the connection down using nmcli, add the DNS and take it back up. If I just try to add the DNS, the routes on tun0 will disappear and I have to manually set them up.
I've noticed that upon starting OpenVPNs connection, it will receive the correct NordVPN DNS servers from a push reply, along the lines of:
Code: Select all
'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 103.86.96.100,dhcp-option DNS 103.86.99.100
1. Is there a way to permanently set DNS servers for the tun0 interface?
2. What does the push reply containing DNS servers do? Whats the effect of receiving this if its not automatically used?