Adding following lines into the .ovpn file before I import it to Network Manager on Ubuntu fixed DNS leak with my VPN connection established by NetworkManager. script-security 2 up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-conf These lines should be added below the lines of initial commands and before the lines of certificates.
I used following commands to prevent -almost- any outgoing internet connection from my Linux computer when VPN connection is not active. It is simple and it works. Reset ufw rules to default # ufw –force reset Drop all incoming traffic # ufw default deny incoming Drop all outgoing traffic # ufw default deny outgoing Let firewall […]