jotyGill / openpyn-nordvpn

Easily connect to and switch between, OpenVPN servers hosted by NordVPN on Linux (+patch leakes)
GNU General Public License v3.0
628 stars 114 forks source link

Fatal error with version 2.7.5 on Rasperrby #201

Closed mdelain closed 6 years ago

mdelain commented 6 years ago

Hello, I've been using Openpyn successfully since a few months on Raspberry / Stretch.

Now I've errors with Openpyn version 2.7.5 when initiating a connection:

Sun Sep 23 18:35:41 2018 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Sun Sep 23 18:35:41 2018 Exiting due to fatal error

And when I try to flush iptables:

pi@raspberry:/usr/local/lib/python3.5/dist-packages $ sudo openpyn -x
2018-09-23 18:30:48 [INFO] Flushing iptables INPUT and OUTPUT chains AND Applying default Rules
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.14.62-v7+/modules.dep.bin'
modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.14.62-v7+
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

System is up-to-date, I tried to uninstall / reinstall Openpyn, without success. Any clue? Thanx!

jotyGill commented 6 years ago

The issue is with IPTables. Looks like ipables' module is not loaded in your kernal? See this https://raspberrypi.stackexchange.com/questions/51276/iptables-nat-table-does-not-exist (restart it) https://superuser.com/questions/813323/iptables-module-ip-tables-not-found-for-root#814795

mdelain commented 6 years ago

Thank you jotyGill! I think that a system update must have broken something, because no modules were loaded. I solved my case with a 'sudo rpi-update' et voilà! :) happy again! Thanx for this amazing tool