Koozali.org: home of the SME Server

dyndns with static ip adress...

barn

dyndns with static ip adress...
« on: February 05, 2006, 05:16:46 PM »
Im using sme 6 in server-gateway mode on an adsl connection.

internet <-> adsl router <-> sme <-> my home lan

My my ISP has configured the adsl router (Speedstream 5100) as an dhcp server giving ip adresses above 192.168.254.100,  but all incoming request is forwarded to 192.168.254.10 so the savvy user can setup a static ip adress on the server and have unfiltered two way access to the internet.  (except for port 25, but that's another problem)

Now, I want to use dyndns, but I can only configure the dyndns when I'm setting the server to use a dynamic ip adress on the external NIC,  but I need to set up my external NIC with a static ip adress in order to receive incomming traffic.  It's my routers external interface that is dynamic, not my servers.

How do I activate the dyndns client while having a static ip on my serves external NIC ?

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
dyndns with static ip adress...
« Reply #1 on: February 05, 2006, 09:54:08 PM »
Barn,

If your adsl-router does behave or act "as an dhcp server"
iow if your sme can ask for an address and get a lease that's enough.
The fact that it always does get 192.168.254.10 when asking for a lease is irrelevant...

Just set up external NIC as "dhcp" and the SME dyndns script will report the correct IP once and report it every 30 days as "new" "old" IP to dyndns so it stays registered.

Regards
Reinhold
............

barn

dyndns with static ip adress...
« Reply #2 on: February 06, 2006, 02:42:22 AM »
No it is not irrelevant,  if my sme asks the adsl router for at ip address, the router WILL give the server an ip-address of: 192.168.254.101 or above, -not 192.168.254.10

And the traffic WILL be filtered, the only IP number that is NOT filtered by the adsl router is 91 addresses "below" : 192.168.254.10 (note the last number is 10, not 101)

Trust me, I know, I work for said ISP.

So in order to receive any incoming requests, I MUST forego the adsl routers dhcp service,  and explicitly set up my sme to have exactly 192.168.254.10 as external address.

So, where can I find the dyndns script ?

Cheers

Barn

Offline JonB

  • *
  • 351
  • +0/-0
dyndns with static ip adress...
« Reply #3 on: February 06, 2006, 11:51:08 AM »
Barn,

Unfortunately in your situation you cannot use the dyndns client built into SME. It will only ever update your Dyndns account with the the ip address of your external NIC which as you have said is a static 192.168.254.10

I have used a client called ipcheck.py http://ipcheck.sourceforge.net/ in similar situations and call the client script via a cron job every 15 minutes.

Set up the client to use the web check option. The ipcheck client will only update your dyndns account when the client detects a change of ip address so you wont get banned for updating too often.

Jon
...

Offline pfloor

  • *****
  • 889
  • +1/-0
dyndns with static ip adress...
« Reply #4 on: February 07, 2006, 04:32:59 AM »
I used this before I got a static IP address and it works great and has support for multiple websites.  ddclient is also one of only 2 clients that dynDNS recommends.

Info here http://smeserver.free.fr

RPM here: http://smeserver.free.fr/filessme6/rpms/sme-ddclient-2.0-11.noarch.rpm

Paul
In life, you must either "Push, Pull or Get out of the way!"

barn

Reply to JonB
« Reply #5 on: February 07, 2006, 01:28:39 PM »
Are you sure it will update the dyndns account with my SME's external NIC ip address? Because that does not make any sense, as only the adsl router's external interface have a exposed RIPE address.

Schematic:

internet
|
external  88.83.6.24
adsl router
internal  192.168.254.1
|
external 192.168.254.10
SME box
internal 10.0.0.1
|
My private lan

barn

dyndns with static ip adress...
« Reply #6 on: February 07, 2006, 01:40:35 PM »
Jon & Paul

Thanks for the links to alternative dyndns clients.

But my first option is still to alter a configuration/setting in SME, so the (otherwise working) client, also runs when I have set the SME's extenal nic to have a static ip address.

It seems like the more "correct" solution instead of adding yet another dyndns client.


Barn

Offline kruhm

  • *
  • 680
  • +0/-0
dyndns with static ip adress...
« Reply #7 on: February 07, 2006, 01:46:38 PM »
Follow reinhold's advice.

-set the modem to bridge mode (it took me about 5 seconds to find this in google): http://www.dslreports.com/faq/sbc/3.1+Speedstream+5100#8722
-configure sme for server-gateway
-put the sme-ddclient on sme
-configure client

barn

dyndns with static ip adress...
« Reply #8 on: February 07, 2006, 02:15:00 PM »
I have sucessfully done this previously, with another ISP and adsl router, and then it just worked.

The reason that I not already have done so is that my ISP is none to happy when someone alters the configuration of their router (yes, the router is their property)
But I will do it if other options are barred.



But really guys, whats the problem of override the settings and make the dyndns client run?  -besides that I obviously don't know how to, and haven't been able to figure it out...  :-D

Offline pfloor

  • *****
  • 889
  • +1/-0
dyndns with static ip adress...
« Reply #9 on: February 07, 2006, 05:25:12 PM »
The client built int SME reads the IP address of the server's external NIC and sends that to DynDNS.  This will not work behind a router as the needed IP address is on the router.

ddclient pings an outside server that returns YOUR external IP address on the router every 15 minute (default).  If it changes, it will update your DynDNS account.

Your choices are to either get something like ddclient or bridge the router.  I could not bridge the router due to my shared office configuration so I had to use ddclient.  It works great and is easy to install.

Paul
In life, you must either "Push, Pull or Get out of the way!"

barn

dyndns with static ip adress...
« Reply #10 on: February 07, 2006, 05:31:12 PM »
Ah I see!

That was the bit of information I lacked :)

Thank you very much,  I will now try the ddclient


Barn