Killswitch for UFW?
-
I have a killswitch setup for UFW with tun0 (VPN). I am using a server that I set up in the VPN editor. This is what I have as rules so far in UFW:
sudo ufw default deny outgoing
sudo ufw default deny incoming
sudo ufw allow out on tun0 from any to any
sudo ufw allow in on tun0 from any to anyThe killswitch works, but to connect to the VPN server to start a connection, I have to disable UFW. Once a connection is established, I enable UFW. If I lose the VPN connection, I have to start over again. I tried making exceptions to UFW for the addresses and ports I am trying to connect to, but that is still giving me the same function as before. I know about the resolv-conf file and tried a modification there, but it didn't work. I can use "nano" for any file modifications and can change the read/write status of my UT image.
My goal is to have the killswitch on all the time and make a connection and also able to reconnect on its own without any input from me.
Are there any recommendations for UFW?