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

mkdir /etc/openvpncd /etc/openvpn

 

3. Download our configuration files and unzip them:

wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zipunzip ziprm -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. Choose a server which you would like to connect to.

Server file that you choose  = For the sake of the tutorial, we have used us936.nordvpn.com, but you should connect to a server suggested to you at  https://nordvpn.com/servers/tools/ . You can find the server hostname right under the server title.

6. Start OpenVPN with a chosen configuration by entering:
  • sudo openvpn [file name]
  • sudo openvpn us936.nordvpn.com.udp.ovpn

 

7. Type in your NordVPN username and password when asked.

 

8. 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/netmknod /dev/net/tun c 10 200chmod 600 /dev/net/tuncat /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.

 

Related Articles

© Copyright 2019 all rights reservedSelf-service by