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 your NordAccount dashboard.
Follow the steps below to find the manual connection configuration files:
-
Log into your Nord Account, and click NordVPN.
- Scroll down to Advanced Settings and click Set up NordVPN manually.
- Select the OpenVPN configuration files tab.
- Find the server you wish to connect to by using the Search bar or by scrolling down and download it by clicking Download UDP or Download TCP.
- When connecting to OpenVPN & IKEv2 manually, you're going to need to use the Username and Password from the Service credential tab.
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/fr886.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.
Follow the steps below to find the service credentials for manual connection setup:
-
Log into your Nord Account, and click NordVPN.
- Scroll down to Advanced Settings and click Set up NordVPN manually.
- Select the Service credentials tab, where you'll find the Username and Password needed to connect manually.
-
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