In order to configure IPFire firewall to connect to NordVPN, follow these steps:
- Access your IPFire via command line as root.
- Create and access the directory where all our configuration file will be stored:
mkdir /etc/openvpn
cd /etc/openvpn
- Download our configuration file from /servers/tools/ page. Hover over the Download config and copy the download link.
In this example, it is https://downloads.nordcdn.com/configs/files/ovpn_udp/servers/de961.nordvpn.com.udp.ovpn. To download a file, use wget command as in the example below:
wget https://downloads.nordcdn.com/configs/files/ovpn_udp/servers/de961.nordvpn.com.udp.ovpn
- Add an additional rule to the routing table:
iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -o tun0 -j MASQUERADE
This rule will route all traffic from 192.168.0.0/16 network via the VPN tunnel. If you use different addresses - change them accordingly.
-
Start OpenVPN with a chosen configuration by entering sudo openvpn file_name. Example:
sudo openvpn de686.nordvpn.com.udp.ovpn
-
Paste your NordVPN service username and password.
You can find your NordVPN service credentials at the Nord Account dashboard. Copy the credentials using the buttons on the right.
-
You will see this line if your connection is successful:
Initialization Sequence Completed
- If you get this error:
ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
enter the following commands:
mkdir -p /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tuncat /dev/net/tun
- If you receive this message, it means your TUN/TAP device is not ready for use. Repeat steps 5 and 6.
cat: /dev/net/tun: File descriptor in bad state