Koozali.org: home of the SME Server

DynDNS Query......

stukirk

DynDNS Query......
« on: August 06, 2007, 10:50:46 PM »
hi,

I have trawled the wiki and forums but can't seem to find an answer.....

I have a setup as follows,

Internet --- Modem/Router(with firewall) --- SME ---- LAN CLIENTS

I have the SME collecting it's ip by dhcp from the modem/router and if I do a search on www.whatismyipaddress.com I see the Proxy IP as the correct "internet" IP Address.  I have set up my primary domain on the SME as my XXX.dyndns.org domain and the script on the server works and sends the IP address to DynDNS BUT it is sending the internal 192.168.1.101 address given to it by the modem not the correct final internet address......????

Is there any way to configure the system/script to report back the correct outgoing final address to allow vpn etc????

I hope someone can shed some light on this as I am sure this has a simple answer????

Cheers,

Stu

Offline del

  • *
  • 765
  • +0/-0
DynDNS Query......
« Reply #1 on: August 06, 2007, 11:15:52 PM »
I think you need to have the server in server only mode, use the Router's internal IP address as the gateway for SME. Then use the ddhcp setting in the router for the dyndns settings and forward any ports you need to the SME server. Hope this makes sense.

Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: DynDNS Query......
« Reply #2 on: August 07, 2007, 12:48:23 AM »
Quote from: "stukirk"
Internet --- Modem/Router(with firewall) --- SME ---- LAN CLIENTS

I have the SME collecting it's ip by dhcp from the modem/router and if I do a search on www.whatismyipaddress.com I see the Proxy IP as the correct "internet" IP Address.  I have set up my primary domain on the SME as my XXX.dyndns.org domain and the script on the server works and sends the IP address to DynDNS BUT it is sending the internal 192.168.1.101 address given to it by the modem not the correct final internet address......????
That's because that his the ONLY address the smeserver knows - the modem/router is getting your external IP.
Quote from: "stukirk"
Is there any way to configure the system/script to report back the correct outgoing final address to allow vpn etc????
A couple of options (in my order of preference):
1. Bridge the modem/router to just pass traffic straight through to the smeserver (ie. the modem/router ONLY acts as a modem - and then the smeserver will receive the external IP and know when it has changed)
2. If the modem/router has a DynDNS client use it (many later modem/routers do) and forward all appropriate ports (email, web, vpn, etc.) to the smeserver
3. Hack the appropriate dyndns script to use an ip address you pass from the config database (but how will the smeserver know that your IP has changed...?)
4. same as 3 with smeserver in server-only mode and all appropriate ports (mail, web, etc) forwarded to it.

Trevor B

Offline pfloor

  • *****
  • 889
  • +1/-0
In life, you must either "Push, Pull or Get out of the way!"