LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2021, 11:52 AM   #1
will5023
LQ Newbie
 
Registered: Oct 2021
Posts: 2

Rep: Reputation: Disabled
Newbie trying to configure ufw for vpn kill switch


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?

Last edited by will5023; 10-23-2021 at 11:57 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTP kill switch UFW eriche Linux - Security 0 12-16-2018 08:45 PM
How I connect to a VPN with no DNS leakage and a kill switch. taylorkh Linux - Networking 0 12-04-2017 05:51 PM
Firewall restore and VPN kill switch johnyjj2 Linux - Networking 1 05-27-2015 05:24 PM
IPSEC VPN "charon too long to start... - kill kill" saavik Linux - Networking 1 09-24-2013 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration