Jump to content
TorGuard
  • 0

torguard modifying /etc/resolv.conf incorrectly

Rate this question


jesc516

Question

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
Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

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.

Link to post
Share on other sites
  • 0

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
 
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

Link to post
Share on other sites
  • 0

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

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 ?

Link to post
Share on other sites
  • 0

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
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

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...
×
×
  • Create New...