NordVPN Help Center
One place for all the information you need

IPFire firewall setup

Updated

In order to configure IPFire firewall to connect to NordVPN, follow these steps:

    • 1. Access your IPFire via command line as root.
    • 2. Create and access the directory where all our configuration files will be stored:
      mkdir /etc/openvpn
      cd /etc/openvpn
    • 3. Download our configuration files and unzip them:
      wget https://nordvpn.com/api/files/zip
      unzip zip
      rm -rf zip
    • 4. Before connecting - you have to add 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 accordingly.
    • 5. To connect to our service type in:
      openvpn servername
      For example:
      openvpn de86.nordvpn.com.udp1194.ovpn
    • 6. Type in your NordVPN username and password when asked.
    • 7. The command line will type out this line if successfully connected:
      Initialization Sequence Completed
    • Note: If the VPN cannot start for you and you are getting this output:
      ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
      Then do the following:
      mkdir -p /dev/net
      mknod /dev/net/tun c 10 200
      chmod 600 /dev/net/tun
      cat /dev/net/tun
      If you receive the message:
      cat: /dev/net/tun: File descriptor in bad state
      That means your TUN/TAP device is ready for use. Then repeat steps 5, 6 and 7.