I’m trying to set up UFW so that all my traffic goes through tun0 (or tun1). It’s not usually a problem, but I can’t seem to get it going on UM 18.04. Every time I activate the firewall with the rules I set, it disconnects after a few seconds. If set traffic on both tun0 and tun1 because I’ve seen my VPN has set up both tun0 and tun1 devices over the course of me trying to get this to work.
Anywhere on tun0 ALLOW Anywhere
Anywhere on tun1 ALLOW Anywhere
Anywhere (v6) on tun0 ALLOW Anywhere (v6)
Anywhere (v6) on tun1 ALLOW Anywhere (v6)
Anywhere ALLOW OUT Anywhere on tun0
Anywhere ALLOW OUT Anywhere on tun1
Anywhere (v6) ALLOW OUT Anywhere (v6) on tun0
Anywhere (v6) ALLOW OUT Anywhere (v6) on tun1
The idea is that once I’ve connected to my VPN I used the “sudo ufw enable” command to lock that all in a secure place, but once UFW is activated, the connection disconnects itself after a few seconds.
Any thoughts?