Networking Forums

Networking Forums > Computer Networking > Linux Networking > Dynamic DNS and lan?

Reply
Thread Tools Display Modes

Dynamic DNS and lan?

 
 
Kai-Martin
Guest
Posts: n/a

 
      09-04-2005, 04:34 PM

I`d like to connect to my local http server over the internet. The server
("mars") is connected to the internet via an embedded router and a
DSL-Modem. I understand, that I need a service provider who uses "dynamic
dns" to attach a static hostname to my ever changing IP-Number. Somehow my
server has to tell the service provider the proper IP number.

But what number? The numbers I can get with ifconfig are all restricted to
the local network (192.167...). The dynamic IP number is assigned to the
router, not to "mars". How does the router know which computer in the lan
should receive a data package? Is there some kind of extension to the
IP-number? Or do I simply tell the service provider to connect the hostname
to the IP-number of the router?

A bit confused,
---<(kaimartin)>----
--
Kai-Martin Knaak
gpg-key:
http://pgp.mit.edu:11371/pks/lookup?...index&exact=on
 
Reply With Quote
 
 
 
 
Spare Brain
Guest
Posts: n/a

 
      09-04-2005, 04:52 PM
"Kai-Martin" <(E-Mail Removed)> wrote in message
news:dff7mq$17i$(E-Mail Removed)...
>
> I`d like to connect to my local http server over the internet. The server
> ("mars") is connected to the internet via an embedded router and a
> DSL-Modem. I understand, that I need a service provider who uses "dynamic
> dns" to attach a static hostname to my ever changing IP-Number. Somehow my
> server has to tell the service provider the proper IP number.
>
> But what number? The numbers I can get with ifconfig are all restricted to
> the local network (192.167...). The dynamic IP number is assigned to the
> router, not to "mars". How does the router know which computer in the lan
> should receive a data package? Is there some kind of extension to the
> IP-number? Or do I simply tell the service provider to connect the
> hostname
> to the IP-number of the router?
>
> A bit confused,
> ---<(kaimartin)>----
> --
> Kai-Martin Knaak
> gpg-key:
> http://pgp.mit.edu:11371/pks/lookup?...index&exact=on


You would need to set up port forwarding on the router. This is how you
would tell the router that is connected to the outside world which machine
on your LAN gets to receive the communication sent on port 80 (or whatever
your port you are interested in exposing the service on). Some service
providers (and some DSL routers) are notoriously finicky about port
forwarding - some do it to discourage you from hosting your own service -
rather than buying a hosting service from that provider.

Good luck and keep us posted on your status.

SB


 
Reply With Quote
 
hakim
Guest
Posts: n/a

 
      09-04-2005, 05:33 PM
Hi,

You need port forwarding on your router. Sometimes this is called also
'Virtual Server' on some router models. There you assign in the case of
http the port 80 to the local ipaddress of your local linux server,
e.g. 192.167.2.10. But some routers don't have that configuration
possibility. Check that.
Then your linux box is reachable over the internet with the external
ipaddress of your router on port 80. And if someone connects over port
80 (http) to the external ipaddress he sees your page of the local
linux server.
Then you have to make an account by an dynamic dns provider. For
example dyndns.org or any other.
Some routers have the possibility to configure a dyndns update service.
If not, then configure your linux server as the gateway/router to the
internet and you have full control over everything. I have no idea in
the moment, how you could get th ipaddress of the routers internet
interface. With the shellcommand 'traceroute' you would get only the
ipaddress of the gateway of your provider, but not of yours. Maybe
someone else has an idea in this thread. One thing I could imagine is:
My router has a welcome webpage of the configuration interface with the
actual nameserver and interface configuration settings. One could write
a little script which gets that page and filters the ipaddress out.
Then the script starts the dnymicdns update program with the ipaddress.
This script you start every 15 minutes or so over a cronjob to have an
uptodate dyndns record. If you need any advice for that let me
know.That would be a funny way.
But the best is to configure your linux box as gateway, if your router
doesn't support a dyndns udate service.
If you arranged the dyndns update service your server is reachable from
anywhere with yourdomain.dyndns.org or somethig like that.

If you need further advice let me know...

Achim

 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      09-04-2005, 05:49 PM
"hakim" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com

> I have no idea in the moment, how you could get th
> ipaddress of the routers internet interface. With the shellcommand
> 'traceroute' you would get only the ipaddress of the gateway of your
> provider, but not of yours. Maybe someone else has an idea in this
> thread.


wget -O- http://cfaj.freeshell.org/ipaddr.cgi 2>/dev/null
 
Reply With Quote
 
Kai-Martin
Guest
Posts: n/a

 
      09-04-2005, 07:17 PM
ynotssor wrote:

> wget -O- http://cfaj.freeshell.org/ipaddr.cgi 2>/dev/null


Ah. Thats cool :-)

---<(kaimartin)>---
--
Kai-Martin Knaak
gpg-key:
http://pgp.mit.edu:11371/pks/lookup?...index&exact=on
 
Reply With Quote
 
Kai-Martin
Guest
Posts: n/a

 
      09-04-2005, 07:21 PM
hakim wrote:

> You need port forwarding on your router. Sometimes this is called also
> 'Virtual Server' on some router models. There you assign in the case of
> http the port 80 to the local ipaddress of your local linux server,


Thanks!
This is the bit of information I was missing.
Let's see if our router can do this trick.

---<(kaimartin)>---
--
Kai-Martin Knaak
gpg-key:
http://pgp.mit.edu:11371/pks/lookup?...index&exact=on
 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      09-05-2005, 01:46 AM
Kai-Martin wrote:

>
> I`d like to connect to my local http server over the internet. The server
> ("mars") is connected to the internet via an embedded router and a
> DSL-Modem. I understand, that I need a service provider who uses "dynamic
> dns" to attach a static hostname to my ever changing IP-Number. Somehow my
> server has to tell the service provider the proper IP number.
>
> But what number? The numbers I can get with ifconfig are all restricted to
> the local network (192.167...). The dynamic IP number is assigned to the
> router, not to "mars". How does the router know which computer in the lan
> should receive a data package? Is there some kind of extension to the
> IP-number? Or do I simply tell the service provider to connect the
> hostname to the IP-number of the router?
>
> A bit confused,


Since your computer is behind the firewall/router, you'll have to configure
the router to forward requests to the appropriate computer.

 
Reply With Quote
 
Raymond Pasco
Guest
Posts: n/a

 
      09-05-2005, 07:48 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ynotssor wrote:
> "hakim" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) ups.com
>
>
>>I have no idea in the moment, how you could get th
>>ipaddress of the routers internet interface. With the shellcommand
>>'traceroute' you would get only the ipaddress of the gateway of your
>>provider, but not of yours. Maybe someone else has an idea in this
>>thread.

>
>
> wget -O- http://cfaj.freeshell.org/ipaddr.cgi 2>/dev/null


whatismyip.com

- --
Ray (Our name is Legion, for we are many.)

Ask me about GPG!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDHKEmKwExTSbpHqgRAitLAJ95CPi4qlV2g4FNDn9Vx/RjBwq8ZACfXFrH
F8bDjQOF6lq9/a8mHJBJdEI=
=cIEW
-----END PGP SIGNATURE-----
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      09-05-2005, 08:01 PM
"Raymond Pasco" <(E-Mail Removed)> wrote in message
news:Ii1Te.249$(E-Mail Removed)

>> wget -O- http://cfaj.freeshell.org/ipaddr.cgi 2>/dev/null

>
> whatismyip.com


The HTML returned requires more processing to clean it up for any automated
script usage, and is not nearly as elegant as the freeshell.org simple text
that is returned, although the end result is the same:

lynx --dump http://whatismyip.com | awk '/Your IP/ {print $4}'


 
Reply With Quote
 
Kai-Martin
Guest
Posts: n/a

 
      09-05-2005, 09:58 PM
ynotssor wrote:

>> whatismyip.com

>
> The HTML returned requires more processing to clean it up for any
> automated script usage, and is not nearly as elegant as the freeshell.org


The real difference seems to be the catchy name. Somebody shelled out
$386,100 to get their hands on that url:
http://www.dnjournal.com/archive/dom...es08_02_05.htm
(buried abut midway between lots of other rather irrational figures)

---<(kaimartin)>---
--
Kai-Martin Knaak
gpg-key:
http://pgp.mit.edu:11371/pks/lookup?...index&exact=on
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SIP RTP dynamic NAT Hugo Windows Networking 3 12-18-2008 06:04 PM
Dynamic DNS rhwiley@gmail.com Linux Networking 0 07-10-2008 05:09 PM
ddclient to update dynamic DNS entries at a dynamic DNS service Larry Cohen Linux Networking 1 09-12-2004 01:47 AM
Dynamic IPs Mike Linux Networking 2 04-23-2004 06:18 PM
Dynamic IP Francisco Mendez Linux Networking 10 03-05-2004 09:55 PM



1 2 3 4 5 6 7 8 9 10 11