Closed BellavGFH closed 4 months ago
UPDATE: findings solving the mentioned openvpn
DNS leak issues.
Since there are multiple issues, here first a VPN connection in cli is established. Subsequently, a VPN connection with the help of network-manager is made and DNS leak solved.
systemctl list-unit-files | grep enabled
Are these processes running?
-- systemd-resolved.service
-- network-manager.service
-- openvpn.service
openvpn-systemd-resolved
is installed (probably not): dpkg -l openvpn-*
sudo apt install openvpn-systemd-resolved
setenv opt block-outside-dns
script-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
down-pre
dhcp-option DOMAIN-ROUTE .
sudo openvpn --config <YOUR-OPENVPN-CONFIG-FILE>.ovpn
dhcp-option DNS 999.99.999.999
network-manager-openvpn
and/ or network-manager-openvpn-gnome
(wrong) configuration.
(Note: this will affect version 1.10.2
but not 1.8.18
)VPN Connections
> Configure VPN
, open the VPN configuration concerned.
-- VPN
tab > Advanced
> Security
tab
-- Set Cipher
to AES-256-GCM
dnsmasq.service
is running. If it does, stop this service and/ or deinstall it (sudo apt purge dnsmasq
)
-- Check the content of /etc/resolv.conf
; this should NOT hold the ip of your default name server.
-- If it does, comment your default DNS name server out and add nameserver 127.0.0.1
-- Reboot to (re)start all network services, make a VPN connection and check for potential leaks.
-- Additionally, check in cli with resolvectl status
whether e.g. tun0
(your VPN connection) shows the ip address of your default nameserver or the VPN nameserver.
In Linux Mint Wilma 22 xfce, testing openvpn as installed (default):
After install, activating VPN via NetworkManager GUI asks for password, when given, comes back and asks again for password (loops) Using same config .ovpn and creds, connecting to same VPN via cli (sudo openvpn --config YOUR_VPN.ovpn), connection is established. However, upon check, DNS fails/ leaks.
This was found for Wilma 22 xfce specifically. Default install of Virginia 21.3 xfce, above functions as intended, both through GUI and cli, with no leaks.