您的IP地址: Unknown · 您当前的状态: 未受保护的 受保护的

OpenVPN

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. Type in your NordVPN username and password.
  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 command:

    mkdir -p /dev/netmknod /dev/net/tun c 10 200chmod 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