I recently purchased a subscription to NordVPN and now I am trying to set up a VPN connection on my Mageia 6.1 laptop. I am following their tutorial, "How can I connect to NordVPN using Linux Terminal?", and have managed to set up a connection under the tun0 interface. However, I have no Internet access once connected to the VPN. After a couple of hours of troubleshooting with a friend, we determined that Shorewall is blocking the OpenVPN connection. Shutting off the Shorewall service, via the Mageia Control Centre, allows connectivity but then I have an issue with DNS. After shutting off Shorewall, I can
- Code: Select all
ping 8.8.8.8
but I can't
- Code: Select all
ping google.com
NordVPN provides some DNS servers to use in this tutorial: "Change your DNS servers on Linux" but I'm not sure if those instructions will allow me to change or add these DNS servers to my configuration permanently. When I open /etc/resolv.conf I see the following:
- Code: Select all
[bradfonseca@localhost etc]$ cat resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.176.251
nameserver 192.168.176.252
nameserver 192.168.176.253
I don't want to edit resolv.conf every time I reboot.
With all that background, I want to ask the following questions:
1. How do configure Shorewall to allow a connection to a VPN with OpenVPN? I really want to leave Shorewall running and just open it a little to allow this connection.
2. How do I add or replace the DNS servers in resolv.conf with the one NordVPN recommends?
- Code: Select all
nameserver 103.86.96.100
nameserver 103.86.99.100
Thanks in advance for the help.
Brad