Looks great to me.
Do you have any special configurations in the firewall? Do you use Gufw?
GUFW is just a GUI for UFW (
uncomplicated
fire
wall). I use UFW and use commands in the terminal to configure it. I don't need a GUI
The firewall gets re-set by my VPN Killswitch script every time the operating system starts.
First the firewall is set to default settings and configured so that no connection to the internet is allowed (except the connection to the VPN).
Code:
sudo ufw --force reset
sudo ufw default deny incoming
sudo ufw default deny outgoing
# allowing VPN
sudo ufw allow out 53/udp
sudo ufw allow out 443/udp
sudo ufw allow out 1194/udp
Then it is specified that the traffic can reach the Internet via the VPN.
Code:
sudo ufw allow out on $NW_TUN from any to any
sudo ufw allow in on $NW_TUN from any to any
Then at last only the firewall is turned on.
This code is from my Killswitch, which you can also find in my topic. So actually quite easy