r/voidlinux • u/FormWilling8007 • Apr 23 '26
DNS leak while using openvpn
Hello, I have an issue with my dns leaking my ip when i am browsing the internet or torrenting. I am using openvpn using a protonvpn configuration file in NetworkManager in the plasma kde workspace. I've tried uncommenting and commenting a nameserver dns but it isn't stopping the leak or worse it disables my internet all together. From my experience the protonvpn-cli has been discontinued and flatpak does not seem to help. Any suggestions on how i can fix this locally on void?
7
Upvotes
3
u/gorhat Apr 23 '26
This is for NordVPN, but I think it may help you too: https://wiki.archlinux.org/title/NordVPN#Avoid_DNS_leak
2
u/FormWilling8007 Apr 23 '26
could kdewallet be interfering with it somehow? I've installed
kf6-kwallet-6.24.0_1, kwallet-5.116.0_2
kwalletmanager-25.12.2_1
signon-kwallet-extension-25.12.2_1
kf6-kwallet-32bit-6.24.0_1
also i've noticed my internet keeps dropping for a split second and then comes back.
2
u/FormWilling8007 Apr 23 '26
For anyone that looks into this problem later,
I've had to delete dhcpcd.conf and resolvconf.conf.
then I disabled ipv6 not ignore it but disable it in NetworkManager settings. I've deleted the 0.0.0.0 dns it keeps adding and added my own vpn dns server number. I've even tried to firewall block my ip address with ufw but it didnt work and i can't delete the config but i guess it doesn't matter? Even with the ufw settings blocking that number it still pops up until i disable it through network manager. but getting it to stick and persist between reboots and network resets through networkmanager was a pain. I figured out resolvconf.conf changed the file when it commented it did after i deleted normal resolv.conf. I deleted dhcpcd.conf because i don't use dhcpcd service. If you plan to go this route just back up the files on your desktop home. they won't activate there unless they are put in /etc Make sure you reset the entire NetworkManager by turning it on and off after all changes for it to be implemented and use ipleak.net to check dns leaks.
2
u/ThinkingWinnie Apr 23 '26
Do you by any chance use Tailscale?
Because I found by chance that the magicdns service they employ was leaking my DNS, disabling it fixes the issue.
1
u/FilesFromTheVoid Apr 23 '26
I guess NetworkManager and your VPN Tool fight for the nameserver in resolv.conf. If your home dns server ip isn't changing you could try deleting your /etc/resolv.conf so it's not linked to the networkmanager anymore and then just create a new one with your normal nameserver. Then stop NetworkManager from managing dhcpd for ipv4 and ipv6.
Had a similar issue with hide.me and the cli tool under fedora GNOME. And as u/ThinkingWinnie said. Stop magicdns if you are using tailscale, this does aswell fight for the nameserver record in resolv.conf
-2
u/[deleted] Apr 23 '26
I don't know how it is related to Void but if you want to stay anonymous on inet I think TOR is made for this. I haven't used VPN ever but if I understand concept it allows you to fake location not hide your IP.