I’m using the in-built OpenVPN addon for KDE NetworkManager as it provides autoconnect and a nice visual indicator in the status bar. But it’s leaking my IPV6. I’ve added the following lines to my .ovpn file to block IPV6 and fix DNS leaks :
ifconfig-ipv6 fd15:53b6:dead::2/64 fd15:53b6:dead::1
redirect-gateway ipv6
block-ipv6
script-security 2
setenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
up /usr/bin/update-systemd-resolved
up-restart
down /usr/bin/update-systemd-resolved
down-pre
It does work when used from terminal but loading this file into KDE NetworkManager leaks IPV6. Please help.
That’s what I’m currently doing, but since it’s possible to disable it only while VPN is on using the OpenVPN client directly, I thought it should be possible to do it using the addon as well.
I don’t have it ticked. In fact, ticking it in the ethernet’s IPV6 route settings or disabling IPV6 works but that isn’t ideal since I have to do it for each new connection manually.
This can be dealt with by blocking IPV6 systemwide using sysctl but again that’s not ideal. I know that in Debian we can disable IPV6 when a specific network interface (e.g. tun0) is up using /etc/network/if-(up/down).d/. Is something like that doable in here?