LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-16-2014, 09:24 AM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Rep: Reputation: 13
DuckDNS Shows my VPN Address


Hi all,

I've got a VPN and DuckDNS and the "crontab -e" I have setup under instruction through DuckDNS shows the VPN address.

In /etc/network/interfaces I have added the following line:
Code:
up route add 54.186.198.195 gw 192.168.168.1
The IP address is Duck DNS's I believe.

My crontab -e
Code:
 */5 * * * * sh /home/pi/duckdns/duck.sh >/dev/null 2>&1
The script
Code:
echo url="https://www.duckdns.org/update?domains=domainhere&token=tokenhere&ip=" | curl -k -o /home/pi/duckdns/duck.log -K -
Can anyone tell me why it won't go through my router and goes through my VPN?
 
Old 09-16-2014, 12:18 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
I get 54.187.48.241 for the IP of www.duckdns.org.

Do you have any other way of getting your own IP while connected to the VPN? If so I would just set it in the ip= parameter in your script so there's no question about which IP it's going to grab or which interface it's going to go out of.

https://duckdns.org/faqs.jsp
Quote:
Q: can I script my own update?

A: yes you can do this on http or https. you can comma separate the domains if you want to update more than one, the ip parameter is optional, if you leave it blank we detect your gateway ip
https://www.duckdns.org/update?domai...857452b0c1&ip=

Last edited by suicidaleggroll; 09-16-2014 at 12:23 PM.
 
1 members found this post helpful.
Old 09-16-2014, 12:23 PM   #3
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
I'll add that to the interfaces file and see if that fixes things.

Just out of interest, how did you get the IP? I used
Code:
host duckdns.org
Thanks
 
Old 09-16-2014, 12:29 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
host and ping both give me 54.186.198.195 like you have, but if you try to ssh in (doesn't matter if you use port 22, 80, or 443) it switches to 54.187.48.241. I have no good explanation why that is.

Code:
> ssh -vvv -p 443 test@www.duckdns.org
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /home/user/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to www.duckdns.org [54.186.198.195] port 443.
 
1 members found this post helpful.
Old 09-17-2014, 05:41 AM   #5
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
This appears to have fixed it! Thank you so much!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ifconfig shows different broadcast address, yet I can still connect Pinonoir Gentoo 1 07-23-2014 02:37 AM
Webmin PPTP VPN Server Module Shows Username Unkown dwezel Linux - Networking 0 02-13-2013 04:44 PM
VPN server to VPN server IP Address auto route cheesewizz Linux - Networking 0 06-26-2012 07:01 PM
Samba on Redhat 9.0 shows an Unknown IP address. mlandvo Linux - Server 1 06-30-2010 04:36 AM
Ping my computer and the ISP IP address Shows up krisbee Linux - Networking 4 04-05-2009 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration