Article 5R2AV Newbie trying to configure ufw for vpn kill switch

Newbie trying to configure ufw for vpn kill switch

by
will5023
from LinuxQuestions.org on (#5R2AV)
I'm running Deluge 1.3.15 on a Raspberry Pi that I access from the Deluge thin client running on Windows 10 laptop. The Raspberry Pi running Deluge is set up to connect to Private Internet Access paid vpn. I access my home network using Wireguard to a Raspberry Pi running Pivpn. All of this was working until I tried to add a killswitch using ufw follwing this tutorial,

I disabled ipv6 and added the following rules:

sudo ufw allow in to 192.168.xxx.xxx/24
sudo ufw allow out to 192.168.xxx.xxx/24

as well as

sudo ufw default deny outgoing
sudo ufw default deny incoming

and

sudo ufw allow out on tun0 from any to any
sudo ufw allow in on tun0 from any to any

I also added

sudo ufw allow ssh

to connnect from outside my home network.

When I run sudo ufw status I get the following:

Status: active

To Action From
-- ------ ----
192.168.1.0/24 ALLOW Anywhere
Anywhere on tun0 ALLOW Anywhere
22/tcp ALLOW Anywhere

192.168.1.0/24 ALLOW OUT Anywhere
Anywhere ALLOW OUT Anywhere on tun0

But when I try to open a torrent file in Deluge, I get a timeout error. Can anyone help?latest?d=yIl2AUoC8zA latest?i=6UL5ZOuud4M:VhhN3OlCAu8:F7zBnMy latest?i=6UL5ZOuud4M:VhhN3OlCAu8:V_sGLiP latest?d=qj6IDK7rITs latest?i=6UL5ZOuud4M:VhhN3OlCAu8:gIN9vFw6UL5ZOuud4M
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments