Kernels & Hardware, configuring network, installing services


Postby daishun » 2017-08-04 13:48

My ISP IP is leaking when using OpenVPN on Debian. On Ubuntu I added the following three lines to my config file which would update the DNS resolver and prevent leaks:
Code: Select all
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

However this is not working on debian. /etc/resolv.conf is showing:
Code: Select all
# Generated by NetworkManager
search Home

I can edit this file or the file it links to (/var/run/NetworkManager/resolv.conf) and add my VPN's nameservers and the the leak will be fixed but this will be overwritten by the OS.

What is the proper and permanent way to fix a DNS leak in Debian?
Last edited by daishun on 2017-08-04 16:44, edited 3 times in total.
Posts: 4
Joined: 2017-08-04 13:32

Re: OpenVPN DNS leak

Postby daishun » 2017-08-04 16:25

I found the answer here: https://wiki.archlinux.org/index.php/OpenVPN#DNS

I had to install the package: openresolv
Posts: 4
Joined: 2017-08-04 13:32

Re: OpenVPN DNS leak

Postby dasein » 2017-08-04 16:36

Welcome to the forums.

You've opened two threads now, and have successfully resolved both issues on your own within a very short time with a little research.

Good for you!! Developing your own problem-solving skills is an incredibly valuable asset in life, on the job, etc.

And thank you very much for posting back your solutions! That's helpful to everyone.

If you'll allow me to offer two suggestions

1) Next time, maybe hold off on posting the question until you have completed your research. That will eliminate the need for a forum post in many cases, and when it doesn't, a good grounding in prior research will help you ask better, more focused questions and better understand the answers you receive.

2) Please mark your threads as [SOLVED] (Edit the subject line of your initial post.)
User avatar
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Return to System configuration

Who is online

Users browsing this forum: No registered users and 4 guests