MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.91k stars 501 forks source link

DietPi-Software | DietPi-VPN: fails to connect when Killswitch is ON #5553

Closed kinoushe closed 2 years ago

kinoushe commented 2 years ago

Creating a bug report/issue

Required Information

Additional Information (if applicable)

Steps to reproduce

  1. Start/Restart VPN connection with Killswitch : [On]

Expected behaviour

Actual behaviour

Extra details

Connection failed/timeout: au656.nordvpn.com.udp.ovpn
Please verify account details are correct.
If problems persist, please check the service status: "systemctl -l status dietpi-vpn"

systemctl -l status dietpi-vpn

...
Jun 08 21:22:34 DietPi64 openvpn[44197]: iptables-restore v1.8.7 (nf_tables): host/network `au656.nordvpn.com.udp.ovpn' not found
Jun 08 21:22:34 DietPi64 openvpn[44197]: Error occurred at line: 10
Jun 08 21:22:34 DietPi64 openvpn[44197]: Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Jun 08 21:22:34 DietPi64 openvpn[44166]: WARNING: Failed running command (--up/--down): external program exited with error status: 2
Jun 08 21:22:34 DietPi64 openvpn[44166]: Exiting due to fatal error
Jun 08 21:22:34 DietPi64 systemd[1]: dietpi-vpn.service: Main process exited, code=exited, status=1/FAILURE
Jun 08 21:22:34 DietPi64 systemd[1]: dietpi-vpn.service: Failed with result 'exit-code'.
Joulinar commented 2 years ago

Just for reference, same issue as this one on our forum https://dietpi.com/forum/t/dietpi-vpn-blocking-443/13348/13

Issue seems to be restoring iptables information

kinoushe commented 2 years ago

Oh thank you! I'm not sure why I didn't check the forum first

Joulinar commented 2 years ago

no problem, we just need to find out what is wrong with the iptables-restore 🙄

kinoushe commented 2 years ago

Just comparing the error messages, is it usual to see the grave accent (`) instead of quotation marks?

`au656.nordvpn.com.udp.ovpn'
...
Try `iptables-restore -h'
MichaIng commented 2 years ago

Fixed with: https://github.com/MichaIng/DietPi/commit/70f7fa2