I have configured PPTP VPN connection on Ubuntu 16.04.3 LTS via NetworkManager (nm-pptp-ppp-plugin) and it works. My configuration:
- User name
- Advanced - set some options on PPTP Advanced Options
- IPv4 Settings
- Method: Automatic (VPN) addresses only
- DNS servers : 192.168.1.1 (internal IP address of VPN's default gateway)
- IPv6 Settins
- Method: Ignore
I commented out
sudo dpkg-reconfigure resolvconf and
sudo resolvconf -u.
Without VPN connection my
/etc/resolv.conf contains the following line:
where 192.168.3.1 is IP of my router.
After that, VPN connection
/etc/resolv.conf changes to:
nameserver 192.168.1.1 nameserver 192.168.3.1
But as far as I can understand it should contain only 192.168.1.1.
Is it possible to remove my router's IP (192.168.3.1) from
I mean by NetworkManager dispatcher or similar.
It seems that I do not have the DNS leak issue with my current configuration.
P.S. I understand that my question may have been discussed before, but possible duplicates do not fit my needs.
Update 1. On my other 16.04 laptop I also needed to disable
sudo systemctl stop systemd-resolved.service sudo systemctl disable systemd-resolved.service