I have been using openvpn with UFW as a killswitch without issue, but now my internet stops working when I enable UFW after VPN conection is made. Ifconfig shows a tun0. I have been using the following rules:
sudo ufw reset
sudo ufw default deny incoming
sudo ufw default deny outgoing
sudo ufw allow out on tun0 from any to any
sudo ufw enable
I always disable UFW, then establish VPN connection, confirm VPN is working, then enable UFW, Then use working VPN connection with the enabled UFW.
But now when I enable the UFW, I don't have access to the net. I'm not sure if this is a bug or something as I has been working previously without issue. The rules are basic and are as per GNU/LINUX UFW VPN KILLSWITCH TUTORIAL and several other tutorials.
 
     
     
    