Closed hummelth closed 5 years ago
Closing this issue. The DNS leaks were caused by misconfiguration of systemd-resolve and NetworkManager, and therefore weren't directly related to openpyn.
For other people experiencing similar issues on Fedora, the following steps result in properly working DNS resolving when using openpyn (and openvpn in general):
1) Symlinking the stub-resolv.conf of systemd-resolve to /etc/resolv.conf, so that /etc/resolv.conf is handled by systemd-resolve (more information see https://wiki.archlinux.org/index.php/Systemd-resolved#DNS)
sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
2) Edit /etc/NetworkManager/NetworkManager.conf
[main]
dns=default
3) Edit /etc/systemd/resolved.conf to change the DNS Server used by systemd-resolve (optional; in case you want to manually define a special local DNS Server when no VPN is used)
[Resolve]
DNS=192.168.1.1
I'm experiencing DNS leaks on my Fedora 29 machine. If I can provide anything else in order to solve this issue, let me know.
Here are the logs: