Jump to content
Not connected, Your IP: 3.135.208.236
Sign in to follow this  
MrCasaubon

ANSWERED DNS Problem? Can only connect to airvpn.org

Recommended Posts

Hi there,

 

Just installed AirVPN. I can connect to airvpn.org without any issues, but not to any other site. I have tried both with UDP and TCP. I'm using Bodhi Linux.

 

If I ping 10.4.0.1 everything seems to be fine:

 

PING 10.4.0.1 (10.4.0.1) 56(84) bytes of data.
64 bytes from 10.4.0.1: icmp_req=1 ttl=64 time=226 ms
64 bytes from 10.4.0.1: icmp_req=2 ttl=64 time=136 ms
64 bytes from 10.4.0.1: icmp_req=3 ttl=64 time=137 ms
64 bytes from 10.4.0.1: icmp_req=4 ttl=64 time=136 ms
64 bytes from 10.4.0.1: icmp_req=5 ttl=64 time=136 ms
64 bytes from 10.4.0.1: icmp_req=6 ttl=64 time=252 ms
64 bytes from 10.4.0.1: icmp_req=7 ttl=64 time=141 ms
64 bytes from 10.4.0.1: icmp_req=8 ttl=64 time=258 ms
64 bytes from 10.4.0.1: icmp_req=9 ttl=64 time=244 ms
64 bytes from 10.4.0.1: icmp_req=10 ttl=64 time=230 ms
64 bytes from 10.4.0.1: icmp_req=11 ttl=64 time=205 ms
64 bytes from 10.4.0.1: icmp_req=12 ttl=64 time=137 ms
64 bytes from 10.4.0.1: icmp_req=13 ttl=64 time=137 ms
64 bytes from 10.4.0.1: icmp_req=14 ttl=64 time=136 ms
^C
--- 10.4.0.1 ping statistics ---
14 packets transmitted, 14 received, 0% packet loss, time 13054ms
rtt min/avg/max/mdev = 136.783/179.914/258.041/50.208 ms
 

Same if I ping 8.8.8.8:

 

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=48 time=178 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=48 time=178 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=48 time=178 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=48 time=178 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=48 time=178 ms
64 bytes from 8.8.8.8: icmp_req=6 ttl=48 time=178 ms
64 bytes from 8.8.8.8: icmp_req=7 ttl=48 time=178 ms
^C
--- 8.8.8.8 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6026ms
rtt min/avg/max/mdev = 178.244/178.580/178.917/0.377 ms
 

 

traceroute google.com doesn't produce any results, it just hangs in there forever.

 

Thanks!

 

Share this post


Link to post

Hello,

 

yes, it seems a DNS issue. If you don't have resolvconf or openresolv packages installed, please edit your /etc/resolv.host file (as root)

 

and add the line:

 

nameserver 10.4.0.1

 

Then try again, feel free to update the thread.

 

Kind regards

Share this post


Link to post

Hi again,

 

Thanks for the reply. I do have resolvconf. I edited resolv.conf to add the line nameserver 10.4.0.1 and now everything works great...but I did see a warning on the file to not edit by hand as it will be overwritten. Anything else I need to change?

 

Thanks

Share this post


Link to post

Hello,

 

since you have resolvconf (sorry, the previous message was incomplete...) a more elegant solution is available.

 

Add to your .ovpn configuration files (to all of them) the following lines:

 

 

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

 

so that OpenVPN will accept the DNS push from our servers, and at the disconnection will restore the previous nameserver(s).

 

Make sure that "update-resolv-conf" script path is correct in your box.

 

up & down OpenVPN directives are used to tell OpenVPN to execute a script. "script-security 2" sets OpenVPN security level to 2, which means to allow calling of built-in executables and user-defined scripts.

 

Kind regards

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   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...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...