How can we help you?

Topics

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 your NordAccount dashboard.

Follow the steps below to find the manual connection configuration files:

  1. Log into your Nord Account, and click NordVPN.


     
  2. Scroll down to Advanced Settings and click Set up NordVPN manually.


     
  3. Select the OpenVPN configuration files tab.

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

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

  1. 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.
     
  2. Start OpenVPN with a chosen configuration by entering sudo openvpn file_name. Example:

    sudo openvpn de686.nordvpn.com.udp.ovpn
     

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

  1. Log into your Nord Account, and click NordVPN.


     
  2. Scroll down to Advanced Settings and click Set up NordVPN manually.


     
  3. Select the Service credentials tab, where you'll find the Username and Password needed to connect manually.

 

  1. 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
Was this article helpful?
Thanks!