How can we help you?

How to configure IPFire firewall?

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 file will be stored:

    mkdir /etc/openvpn
    cd /etc/openvpn

     
  3. Download our configuration file from https://nordvpn.com/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/de686.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/de686.nordvpn.com.udp.ovpn
     
  4. 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.
     
  5. Start OpenVPN with a chosen configuration by entering sudo openvpn file_name. Example:

    sudo openvpn de686.nordvpn.com.udp.ovpn
     

  6. 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.


       

  7. 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

Related Articles

© Copyright 2020 all rights reservedSelf-service byBold360