How to use DDNS ervice

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
elrodvpn
OpenVpn Newbie
Posts: 4
Joined: Wed Dec 28, 2011 7:56 pm

How to use DDNS ervice

Post by elrodvpn » Wed Dec 28, 2011 8:08 pm

Hi, I'm very new to using openvpn but recognize this is likely a dumb question so please bear with me. I searched the forums but it's all over my head!

I am on ubuntu linux. I want to have it boot up with the vpn connected (complete). I want my ddns service (in my case noip2) to use my ISP's assigned address and not the VPN server address - which is unfortunately does once the VPN is connected. How do I do this? My VPN provider suggested I use the route command to specify a path to the noip server but I don't understand exactly how to do this.

Thanks!

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: How to use DDNS ervice

Post by Mimiko » Thu Dec 29, 2011 6:24 am

Add to your config file

Code: Select all

route-nopull

elrodvpn
OpenVpn Newbie
Posts: 4
Joined: Wed Dec 28, 2011 7:56 pm

Re: How to use DDNS ervice

Post by elrodvpn » Thu Dec 29, 2011 4:17 pm

Hi, thanks for the suggestion.
That makes using the VPN a user choice for each connection right?
What I would like to do it have the VPN used for ALL connections EXCEPT for the noip server. Is that possible?

elrodvpn
OpenVpn Newbie
Posts: 4
Joined: Wed Dec 28, 2011 7:56 pm

Re: How to use DDNS ervice

Post by elrodvpn » Thu Dec 29, 2011 4:54 pm

I tried using the route command to specify that noip use my own gateway.

sudo route add -host www.no-ip.com gw 192.168.0.1

It seemed to work (no vpn in the traceroute path anymore):

eric@mythtv:~$ traceroute www.no-ip.com
traceroute to www.no-ip.com (8.23.224.110), 30 hops max, 60 byte packets
1 192.168.0.1 (192.168.0.1) 3.516 ms 3.478 ms 3.456 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 www.no-ip.com (8.23.224.110) 250.138 ms 272.332 ms 59.620 ms

BUT, noip still came up with the vpn server ip address.

Any other ideas?

elrodvpn
OpenVpn Newbie
Posts: 4
Joined: Wed Dec 28, 2011 7:56 pm

Re: How to use DDNS service - SOLVED

Post by elrodvpn » Thu Dec 29, 2011 5:02 pm

Sorry for all the messages to myself! ;-)

I had the url wrong for the dynamic ip resolver service.

I did this:
sudo route add -host dynupdate.no-ip.com gw 192.168.0.1

And my noip.com service works fine now with the vpn on.

Hope this helps some other noob.

User avatar
Bebop
Forum Team
Posts: 301
Joined: Wed Dec 15, 2010 9:24 pm

Re: How to use DDNS ervice

Post by Bebop » Thu Dec 29, 2011 9:40 pm

It will indeed, thanks for the update.
The cure for boredom is curiosity

Post Reply