Hi,
I would like to use Diet-PI as a seedbox. I have installed various ARR apps and Deluge on DietPi for this purpose. For security reasons, however, I absolutely need a VPN. I have a subscription with PIA and have set it up via the VPN GUI. Everything worked fine up to this point.
However, I get problems as soon as I activate the killswitch. Now I can no longer access the ARR/Deluge GUIs from the local network. As far as I understand, this is caused by the killswitch. I have tried to add the following lines to the rules for the killswitch under /var/lib/dietpi/dietpi-vpn/killswitch.rules:
-A INPUT -p tcp --dport 8989 -j ACCEPT -s
-A INPUT -p tcp --dport 7878 -j ACCEPT -s
-A INPUT -p tcp --dport 9696 -j ACCEPT -s
-A INPUT -p tcp --dport 8112 -j ACCEPT -s
-A INPUT -p tcp --dport 6767 -j ACCEPT -s
However, this causes the VPN to completely break down and it can no longer establish a connection at all. Can anyone help me here?
Thanks for your help
It’s fine, you only need to remove them upon disconnect, otherwise you might end up with thousands lines in the firewall and will slow down your system.
Or use iptables-restore on boot to restore an iptables-save.