LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2017, 04:58 PM   #1
noucamp
LQ Newbie
 
Registered: Aug 2017
Posts: 1

Rep: Reputation: Disabled
DNS leaks with OpenVPN connection - Mint 18.0 KDE


Hello everyone,

First time posting here, and not very experienced with Linux.

Have been using Mint 17.3 (KDE) for a year or so, and installed 18.0 (KDE) in new laptop. I am having problems with DNS leaks while running through third-party VPN services (I use PureVPN and VyprVPN, and experience the same problem with both). This did not happen at all on 17.3. I am using OpenVPN connections through Network Manager (GUI).

I have read ad nauseam about the problem online and my conclusion is that resolv.conf is not been updated when the OpenVPN connection to my VPN server is established (or closed). Some forums have suggested updating the VPN .conf (or .ovpn) file with these lines:

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

However, I cannot find .conf files, as I believe the Network Manager stores the information in files stored in /etc/NetworkManager/system-connections/. I have tried to modify these files adding the 3 lines above at the end (without header - every other set of instructions has a header) with no success.

I have temporarily set IPv4 DNS servers to point to 208.67.222.222,208.67.220.220 to stop the leaks. Although I understand this is good practice, it is not a solution to the problem of not passing DNS values to resolv.conf.

Any help will be greatly appreciated. If you need additional info just ask - just add the necessary instructions to run. Again, not the brightest kid in the block when it comes to Terminal instructions and codes.

Thanks!

PS: I found several copies of resolv.conf, at /etc, /run/NetworkManager, /run/resolvconf, and /usr/share/linuxmint/mintsystem/templates. I assume the 'active' one should be the /etc one.
 
Old 08-05-2017, 07:07 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
ovpn files are files that contain openvpn scripts. Here is an example of one of mine for PIA:
Code:
client
dev tun
proto udp
remote denmark.privateinternetaccess.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
tls-client
remote-cert-tls server
auth-user-pass
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.pem
Usually it's best to launch openvpn like so:
Code:
$ openvpn script_name.ovpn
instead of trying to configure network-manager to handle the connection. The script I included will only work with PIA vpn service. Yours would be different. But if you look in the openvpn man page you can figure out what you need.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN DNS issues j_wellman2005 Linux - Networking 4 01-20-2017 08:42 AM
Network connection not going in Mint 13 KDE Novatian Linux Mint 4 09-20-2012 12:08 PM
linuxmint and dns leaks espressoguy Linux - Newbie 2 04-17-2012 03:46 PM
OpenVPN and DNS ogee Linux - Networking 3 11-15-2010 09:26 AM
Debugging kde (locate memory leaks) jakkals Programming 4 06-03-2005 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration