Jump to content
TorGuard
  • 0
Sign in to follow this  
jesc516

torguard modifying /etc/resolv.conf incorrectly

Rate this question

Question

jesc516

I believe torguard is not using the corresponding nameservers when you select the nameserver under more settings based on the changes being made to /etc/resolv.conf while making a connection?

 

This is on both arch linux and fedora 25, both x64. 

 

While using:

 

-at application: None

-while establishing VPN connection: None

# cat /etc/resolv.conf
----------------------------------------------------
# resolv.conf(5) file generated byTorGuard
nameserver 10.9.0.1
nameserver 10.8.0.1
 
# ORIGINAL CONTENT:
# nameserver 192.168.1.1

While using:

 

-at application: None
-while establishing VPN connection: Google
 
# cat /etc/resolv.conf
----------------------------------------------------
# resolv.conf(5) file generated byTorGuard
nameserver 10.9.0.1
nameserver 10.8.0.1
 
# ORIGINAL CONTENT:
# # resolv.conf(5) file generated byTorGuard
# nameserver 8.8.8.8
# nameserver 8.8.4.4
# 
# # ORIGINAL CONTENT:
# # nameserver 192.168.1.1
 
 

While using:
 
-at application: None
-while establishing VPN connection: OpenDNS
 
# cat /etc/resolv.conf
----------------------------------------------------
# resolv.conf(5) file generated byTorGuard
nameserver 10.9.0.1
nameserver 10.8.0.1
 
# ORIGINAL CONTENT:
# # resolv.conf(5) file generated byTorGuard
# nameserver 208.67.222.222
# nameserver 208.67.220.220
# 
# # ORIGINAL CONTENT:
# # nameserver 192.168.1.1
 

 

While using:
 
-at application: None
-while establishing VPN connection: Level3
# cat /etc/resolv.conf
----------------------------------------------------
# resolv.conf(5) file generated byTorGuard
nameserver 4.2.2.2
nameserver 4.2.2.3
 
# ORIGINAL CONTENT:
# nameserver 192.168.1.1

and sometimes this happens where /etc/resolv.conf gets filled with entries:

# cat /etc/resolv.conf
----------------------------------------------------
# resolv.conf(5) file generated byTorGuard
nameserver 10.9.0.1
nameserver 10.8.0.1
 
# ORIGINAL CONTENT:
# # resolv.conf(5) file generated byTorGuard
# nameserver 208.67.222.222
# nameserver 208.67.220.220
# 
# # ORIGINAL CONTENT:
# # # resolv.conf(5) file generated byTorGuard
# # nameserver 208.67.222.222
# # nameserver 208.67.220.220
# # 
# # # ORIGINAL CONTENT:
# # # # resolv.conf(5) file generated byTorGuard
# # # nameserver 208.67.222.222
# # # nameserver 208.67.220.220
# # # 
# # # # ORIGINAL CONTENT:
# # # # # resolv.conf(5) file generated byTorGuard
# # # # nameserver 208.67.222.222
# # # # nameserver 208.67.220.220
# # # # 
# # # # # ORIGINAL CONTENT:
# # # # # # resolv.conf(5) file generated byTorGuard
# # # # # nameserver 208.67.222.222
# # # # # nameserver 208.67.220.220
# # # # # 
# # # # # # ORIGINAL CONTENT:
# # # # # # # resolv.conf(5) file generated byTorGuard
# # # # # # nameserver 208.67.222.222
# # # # # # nameserver 208.67.220.220
# # # # # # 
# # # # # # # ORIGINAL CONTENT:
# # # # # # # # resolv.conf(5) file generated byTorGuard
# # # # # # # nameserver 208.67.222.222
# # # # # # # nameserver 208.67.220.220
# # # # # # # 
# # # # # # # # ORIGINAL CONTENT:
# # # # # # # # # resolv.conf(5) file generated byTorGuard
# # # # # # # # nameserver 208.67.222.222
# # # # # # # # nameserver 208.67.220.220
# # # # # # # # 
# # # # # # # # # ORIGINAL CONTENT:
# # # # # # # # # # resolv.conf(5) file generated byTorGuard
# # # # # # # # # nameserver 208.67.222.222
# # # # # # # # # nameserver 208.67.220.220
# # # # # # # # # 
# # # # # # # # # # ORIGINAL CONTENT:
# # # # # # # # # # # resolv.conf(5) file generated byTorGuard
# # # # # # # # # # nameserver 208.67.222.222
# # # # # # # # # # nameserver 208.67.220.220
# # # # # # # # # # 
# # # # # # # # # # # ORIGINAL CONTENT:
# # # # # # # # # # # #
# # # # # # # # # # # # /etc/resolv.conf
# # # # # # # # # # # #
# # # # # # # # # # # 
# # # # # # # # # # # #search <yourdomain.tld>
# # # # # # # # # # # #nameserver <ip>
# # # # # # # # # # # nameserver 192.168.1.1
# # # # # # # # # # # 
# # # # # # # # # # # # End of file

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0
Support

Hello,

 

Can i ask what version of TG Client you are running there please ?

 

Regards

Share this post


Link to post
Share on other sites
  • 0
jesc516

v0.3.67 on arch and fedora.

 

also, i noticed that when i try to use OpenConnect on arch, it doesnt do anything when you click the connect button. the button flashes and never connects. this feature works very fast on fedora. it connects immediately.

Share this post


Link to post
Share on other sites
  • 0
jesc516

here is a systemd .service file to set /etc/resolv.conf to default before network is up. i set this up for when i forget to check /etc/resolv.conf after rebooting

 
[Unit]
Description=Set /etc/resolv.conf to default configuration
Before=network-pre.target
Wants=network-pre.target
 
[Service]
Type=oneshot
ExecStart=/bin/bash -c '/usr/bin/echo "nameserver 192.168.1.1" > /etc/resolv.conf'
 
[Install]
WantedBy=network.target
 

Share this post


Link to post
Share on other sites
  • 0
Support

v0.3.67 on arch and fedora.

 

also, i noticed that when i try to use OpenConnect on arch, it doesnt do anything when you click the connect button. the button flashes and never connects. this feature works very fast on fedora. it connects immediately.

 

We have a fix for that, it was a permissions issue, did you want me to send you the fixed release ? It’s a stable build just not fully released yet until few other things are done.

 

Regards

Share this post


Link to post
Share on other sites
  • 0
jesc516

We have a fix for that, it was a permissions issue, did you want me to send you the fixed release ? It’s a stable build just not fully released yet until few other things are done.

 

Regards

 

yeah i would like to try it out on arch. let me know what i have to do to receive the build. thanks

Share this post


Link to post
Share on other sites
  • 0
jesc516

No worries, you can just download that from here: torguard-v0.3.68-pre.46+gb3d631a.dev-amd64-arch.tar.gz

 

Let me know how you go.

 

Thanks

 

looking good. 78.3 Mbps download / 72.4 Mbps upload using an NY IP on openconnect.

 

shouldnt be an issue changing nameservers in /etc/resolv.conf after establishing a vpn connection?

Share this post


Link to post
Share on other sites
  • 0
Support

looking good. 78.3 Mbps download / 72.4 Mbps upload using an NY IP on openconnect.

 

shouldnt be an issue changing nameservers in /etc/resolv.conf after establishing a vpn connection?

 

Hi Jesc, sorry for the delay, glad its working well for you - your looking to modify this manually after the vpn is connected ?

Share this post


Link to post
Share on other sites
  • 0
jesc516

Hi Jesc, sorry for the delay, glad its working well for you - your looking to modify this manually after the vpn is connected ?

 

correct. say if my resolv.conf file gets stacked with entries like the example above or is using a dns i dont want. can i (after a connection has been established) change the /etc/resolv.conf file to the example below and will my system use the "updated" dns servers for lookups?

nameserver 208.67.222.222
nameserver 208.67.220.220

Share this post


Link to post
Share on other sites
  • 0
Support

 

correct. say if my resolv.conf file gets stacked with entries like the example above or is using a dns i dont want. can i (after a connection has been established) change the /etc/resolv.conf file to the example below and will my system use the "updated" dns servers for lookups?

nameserver 208.67.222.222
nameserver 208.67.220.220

 

 

Yes sure, under more settings >> network, set all DNS options to none, then follow the below guide:

 

https://torguard.net/knowledgebase.php?action=displayarticle&id=159

 

You can of course set any DNS you wish.

 

Regards

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...