You are not logged in.

#1 2015-05-15 15:29:20

Smallville
Member
Registered: 2014-11-12
Posts: 62

Help on setup resolv.conf

Hi all, i have try to setup the resolv.conf to see if i stop my dns leak. I have install this script  https://github.com/masterkorp/openvpn-u … esolv-conf and made im executable.

How i add these:

# This updates the resolvconf with dns settings
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh

To my ovpn files ? I use openvpn on networkmanager and for setup the vpn conection in only imported the saved ovpn from my vpn provider and fill my user and password.
After i conect to my vpn i open my etc/resolv.conf  and i see 3 nameservers 1 is my router ip and the other 2 are the vpn dns, is the script setup allright or my ip router should not appear?

I made the dns leak  test on 3 websites:

http://ipleak.net/ - and no leaking
dnsleaktest.com - both tests and no leaking
http://dnsleak.com/ - 2/5 trys leaking

If i manual remove my ip router from etc/ resolv.conf i dont leak.

What im doing wrong ?


Thx for the help

Offline

#2 2015-05-15 16:00:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Help on setup resolv.conf

Smallville wrote:

How i add these:

# This updates the resolvconf with dns settings
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh

To my ovpn files ?

With a text editor.

Offline

#3 2015-05-15 16:48:59

Smallville
Member
Registered: 2014-11-12
Posts: 62

Re: Help on setup resolv.conf

tomk wrote:
Smallville wrote:

How i add these:

# This updates the resolvconf with dns settings
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh

To my ovpn files ?

With a text editor.

Thx for your reply. Before i import the saved vpn.ovpn i add this 2 lines with text editor , but i import the saved config.opvn with networkmanager and after the import these 2 lines disappears. After import with networkmanager the opvn file goes to /etc/NetworkManager/system-connections/ and my update-resolv-conf.sh is gone .... What im doing wrong ?


Thx

Last edited by Smallville (2015-05-15 16:50:03)

Offline

#4 2015-05-17 05:47:39

SirMyztiq
Member
Registered: 2015-03-24
Posts: 118

Re: Help on setup resolv.conf

Smallville wrote:

Hi all, i have try to setup the resolv.conf to see if i stop my dns leak. I have install this script  https://github.com/masterkorp/openvpn-u … esolv-conf and made im executable.

How i add these:

# This updates the resolvconf with dns settings
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh

To my ovpn files ? I use openvpn on networkmanager and for setup the vpn conection in only imported the saved ovpn from my vpn provider and fill my user and password.
After i conect to my vpn i open my etc/resolv.conf  and i see 3 nameservers 1 is my router ip and the other 2 are the vpn dns, is the script setup allright or my ip router should not appear?

I made the dns leak  test on 3 websites:

http://ipleak.net/ - and no leaking
dnsleaktest.com - both tests and no leaking
http://dnsleak.com/ - 2/5 trys leaking

If i manual remove my ip router from etc/ resolv.conf i dont leak.

What im doing wrong ?


Thx for the help

Did you install openresolv? That is what changes resolv.conf using the script.

Also, you add those lines to the openvpn config.

Last edited by SirMyztiq (2015-05-17 07:30:11)

Offline

#5 2015-05-17 10:36:58

Smallville
Member
Registered: 2014-11-12
Posts: 62

Re: Help on setup resolv.conf

SirMyztiq wrote:
Smallville wrote:

Hi all, i have try to setup the resolv.conf to see if i stop my dns leak. I have install this script  https://github.com/masterkorp/openvpn-u … esolv-conf and made im executable.

How i add these:

# This updates the resolvconf with dns settings
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh

To my ovpn files ? I use openvpn on networkmanager and for setup the vpn conection in only imported the saved ovpn from my vpn provider and fill my user and password.
After i conect to my vpn i open my etc/resolv.conf  and i see 3 nameservers 1 is my router ip and the other 2 are the vpn dns, is the script setup allright or my ip router should not appear?

I made the dns leak  test on 3 websites:

http://ipleak.net/ - and no leaking
dnsleaktest.com - both tests and no leaking
http://dnsleak.com/ - 2/5 trys leaking

If i manual remove my ip router from etc/ resolv.conf i dont leak.

What im doing wrong ?


Thx for the help

Did you install openresolv? That is what changes resolv.conf using the script.

Also, you add those lines to the openvpn config.

Thx for your reply.

Yes i have installed the openresolv, i add the 2 lines before i import the saved config.opvn right ?
I use the openvpn with newtwork manager for connect to vpn, but  where the config servers.ovpn are store ? i think is in  the etc/NetworkManager/system-connections/ if is there when i edit the configserver.ovpn i dont have the 2 lines i have add before i import the saved server.ovpn.

What im doing wrong ?

Thx

Offline

#6 2015-05-17 17:55:01

SirMyztiq
Member
Registered: 2015-03-24
Posts: 118

Re: Help on setup resolv.conf

Smallville wrote:
SirMyztiq wrote:
Smallville wrote:

Hi all, i have try to setup the resolv.conf to see if i stop my dns leak. I have install this script  https://github.com/masterkorp/openvpn-u … esolv-conf and made im executable.

How i add these:

# This updates the resolvconf with dns settings
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh

To my ovpn files ? I use openvpn on networkmanager and for setup the vpn conection in only imported the saved ovpn from my vpn provider and fill my user and password.
After i conect to my vpn i open my etc/resolv.conf  and i see 3 nameservers 1 is my router ip and the other 2 are the vpn dns, is the script setup allright or my ip router should not appear?

I made the dns leak  test on 3 websites:

http://ipleak.net/ - and no leaking
dnsleaktest.com - both tests and no leaking
http://dnsleak.com/ - 2/5 trys leaking

If i manual remove my ip router from etc/ resolv.conf i dont leak.

What im doing wrong ?


Thx for the help

Did you install openresolv? That is what changes resolv.conf using the script.

Also, you add those lines to the openvpn config.

Thx for your reply.

Yes i have installed the openresolv, i add the 2 lines before i import the saved config.opvn right ?
I use the openvpn with newtwork manager for connect to vpn, but  where the config servers.ovpn are store ? i think is in  the etc/NetworkManager/system-connections/ if is there when i edit the configserver.ovpn i dont have the 2 lines i have add before i import the saved server.ovpn.

What im doing wrong ?

Thx

Do you have the openvpn plugging for network manager installed?

Offline

#7 2015-05-17 18:07:13

Smallville
Member
Registered: 2014-11-12
Posts: 62

Re: Help on setup resolv.conf

SirMyztiq wrote:
Smallville wrote:
SirMyztiq wrote:

Did you install openresolv? That is what changes resolv.conf using the script.

Also, you add those lines to the openvpn config.

Thx for your reply.

Yes i have installed the openresolv, i add the 2 lines before i import the saved config.opvn right ?
I use the openvpn with newtwork manager for connect to vpn, but  where the config servers.ovpn are store ? i think is in  the etc/NetworkManager/system-connections/ if is there when i edit the configserver.ovpn i dont have the 2 lines i have add before i import the saved server.ovpn.

What im doing wrong ?

Thx

Do you have the openvpn plugging for network manager installed?


Yes i have, is that plugin i use to connect to vpns.

Thx

Last edited by Smallville (2015-05-17 18:17:15)

Offline

#8 2015-05-17 23:42:15

SirMyztiq
Member
Registered: 2015-03-24
Posts: 118

Re: Help on setup resolv.conf

Smallville wrote:
SirMyztiq wrote:
Smallville wrote:

Thx for your reply.

Yes i have installed the openresolv, i add the 2 lines before i import the saved config.opvn right ?
I use the openvpn with newtwork manager for connect to vpn, but  where the config servers.ovpn are store ? i think is in  the etc/NetworkManager/system-connections/ if is there when i edit the configserver.ovpn i dont have the 2 lines i have add before i import the saved server.ovpn.

What im doing wrong ?

Thx

Do you have the openvpn plugging for network manager installed?


Yes i have, is that plugin i use to connect to vpns.

Thx

Hmm...yeah so you can start it from the NM client.

So basically you have the nm-applet, openresolv, nm-openvpnplugin, and openvpn. You put your ovpn confs in the /etc/openvpn/(I believe) and also that script then chmod +x. Those lines (up/down) go in the ovpn conf file?

Last edited by SirMyztiq (2015-05-17 23:44:22)

Offline

#9 2015-05-18 10:42:14

Smallville
Member
Registered: 2014-11-12
Posts: 62

Re: Help on setup resolv.conf

SirMyztiq wrote:
Smallville wrote:
SirMyztiq wrote:

Do you have the openvpn plugging for network manager installed?


Yes i have, is that plugin i use to connect to vpns.

Thx

Hmm...yeah so you can start it from the NM client.

So basically you have the nm-applet, openresolv, nm-openvpnplugin, and openvpn. You put your ovpn confs in the /etc/openvpn/(I believe) and also that script then chmod +x. Those lines (up/down) go in the ovpn conf file?


Yes i have the  nm-applet, openresolv, nm-openvpnplugin, and for connect to a vpn i go to networkmanager applet  - vpn conections - config vpn - add - import saved vpn file - and after that i fill my username and password and im connect. And i have the vpn always saved on  networkmanager applet. I never put anything on the  /etc/openvpn . What im doing wrong i need to copy the saved files to  /etc/openvpn ? And how i use them from the  /etc/openvpn ?

Thx for your help

Last edited by Smallville (2015-05-18 10:43:32)

Offline

#10 2015-05-23 23:24:03

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: Help on setup resolv.conf

Smallville wrote:

Yes i have the  nm-applet, openresolv, nm-openvpnplugin, and for connect to a vpn i go to networkmanager applet  - vpn conections - config vpn - add - import saved vpn file - and after that i fill my username and password and im connect. And i have the vpn always saved on  networkmanager applet. I never put anything on the  /etc/openvpn . What im doing wrong i need to copy the saved files to  /etc/openvpn ? And how i use them from the  /etc/openvpn ?

You cannot do what you want with network-manager directly. When you import the .ovpn details via the GUI, it will only import a basic few and leave the rest silently.. (It does not even import all the settings which can be set in the GUI, you always have to check what is skipped). What you want is basically what is in this bug report: https://bugzilla.gnome.org/show_bug.cgi?id=738647
The only way I see that you can try to make it work with network-manager is to define a dispatcher for "vpn-up|vpn-down)" actions that then executes the script to update resolv.conf.

edit: I just see there is another way by forbidding network-manager completely to manage the dns resolv.conf; discussed in https://bbs.archlinux.org/viewtopic.php?id=195937

Last edited by Strike0 (2015-05-24 10:55:23)

Offline

#11 2015-06-11 14:27:10

Smallville
Member
Registered: 2014-11-12
Posts: 62

Re: Help on setup resolv.conf

Strike0 wrote:
Smallville wrote:

Yes i have the  nm-applet, openresolv, nm-openvpnplugin, and for connect to a vpn i go to networkmanager applet  - vpn conections - config vpn - add - import saved vpn file - and after that i fill my username and password and im connect. And i have the vpn always saved on  networkmanager applet. I never put anything on the  /etc/openvpn . What im doing wrong i need to copy the saved files to  /etc/openvpn ? And how i use them from the  /etc/openvpn ?

You cannot do what you want with network-manager directly. When you import the .ovpn details via the GUI, it will only import a basic few and leave the rest silently.. (It does not even import all the settings which can be set in the GUI, you always have to check what is skipped). What you want is basically what is in this bug report: https://bugzilla.gnome.org/show_bug.cgi?id=738647
The only way I see that you can try to make it work with network-manager is to define a dispatcher for "vpn-up|vpn-down)" actions that then executes the script to update resolv.conf.

edit: I just see there is another way by forbidding network-manager completely to manage the dns resolv.conf; discussed in https://bbs.archlinux.org/viewtopic.php?id=195937

First of all sry for my late answer, and thx for your help.

I try ask help on that topic but no one answer sad im really a newbie on arch networks and the wiki is much confuse for a newbie.
Im looking on google and others but i dont have the right answer and how i stop the dns leak step by step.
If anyone can help on step by step pls help i really need this, and i really like arch linux i dont want to use windows because of dns leak.


Thx

Last edited by Smallville (2015-06-11 14:28:39)

Offline

Board footer

Powered by FluxBB