You are not logged in.
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
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.shTo my ovpn files ?
With a text editor.
Offline
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.shTo 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
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.shTo 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 leakingIf 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
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.shTo 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 leakingIf 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
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.shTo 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 leakingIf 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
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
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
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
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
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 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