What's new

ASUS behind an ISP HUB modem router. Double NAT - External IP - To use ASUS DDNS service, how?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

stambeccuccio

Senior Member
Sorry, but there is something not clear for me:

- What does it mean: "router is embedded with the ASUS DDNS service"?
- Is it a free embedded service, or for fee?
- What is my HostName.asuscomm.com?
- Where and how I can choose and register my "Host Name" ASUS DDNS?

Currently I have a static IP address, so I should not have the need to enable DDNS service.
But I would understand if this "included service" works because it could ever serve.

I try to insert various "hostname", but router says: Invalid IP Address!

25ajfj6.jpg
 
Sorry, but there is something not clear for me:

- What does it mean: "router is embedded with the ASUS DDNS service"?
- Is it a free embedded service, or for fee?
- What is my HostName.asuscomm.com?
- Where and how I can choose and register my "Host Name" ASUS DDNS?

Currently I have a static IP address, so I should not have the need to enable DDNS service.
But I would understand if this "included service" works because it could ever serve.

I try to insert various "hostname", but router says: Invalid IP Address!

25ajfj6.jpg
I can't answer all your questions, but all I know is that the service is free. I just set it up yesterday and it worksfor my dynamic IP address to perform OpenVPN
 
It works extremely well and reliably and is very easy to set up. As you say, with a static IP address you wouldn't necessarily need a DDNS address.

I could be wrong but I think I also had the invalid IP address message but I cannot remember how I solved it. Try logging in with a different browser and login using the IP address (eg 192.168....) not the router hostname.

For security reasons I assume you won't be using provaecontroprova.asuscomm.com. Try a smaller hostname too (I guess you've done that, anyway.). And no special characters.
 
Last edited:
OK, thank You.
It is not a problem for me, however I want to point out that it does not work.

This is syslog:
May 7 19:14:17 openvpn[17905]: event_wait : Interrupted system call (code=4)
May 7 19:14:19 openvpn[19888]: NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
May 7 19:24:57 ddns update: ez-ipupdate: starting...
May 7 19:24:57 ddns update: connected to nwsrv-ns1.asus.com (103.10.4.108) on port 80.
May 7 19:25:00 ddns update: Asus update entry:: return: HTTP/1.1 299 |Invalid IP format| 192.168.1.xx^M Date: Sat, 07 May 2016 17:24:57 GMT^M Server: Apache^M Content-Length: 0^M Content-Type: text/html^M ^M
May 7 19:25:00 ddns update: retval= 1, ddns_return_code (,299)
May 7 19:25:00 ddns update: asusddns_update: 1
May 7 19:26:35 ddns update: ez-ipupdate: starting...
May 7 19:26:35 ddns update: connected to nwsrv-ns1.asus.com (103.10.4.108) on port 80.
May 7 19:26:38 ddns update: Asus update entry:: return: HTTP/1.1 299 |Invalid IP format| 192.168.1.xx^M Date: Sat, 07 May 2016 17:26:35 GMT^M Server: Apache^M Content-Length: 0^M Content-Type: text/html^M ^M
May 7 19:26:38 ddns update: retval= 1, ddns_return_code (,299)
May 7 19:26:38 ddns update: asusddns_update: 1
May 7 19:33:29 ddns update: ez-ipupdate: starting...
May 7 19:33:30 ddns update: connected to nwsrv-ns1.asus.com (103.10.4.108) on port 80.
May 7 19:33:32 ddns update: retval= 1, ddns_return_code (register,299) ddns_suggest_name () ddns_old_name ()
May 7 19:33:32 ddns update: asus_reg_domain retval= 1
May 7 19:33:32 ddns update: asusddns_update: 1
May 7 19:34:12 ddns update: ez-ipupdate: starting...
May 7 19:34:12 ddns update: connected to nwsrv-ns1.asus.com (103.10.4.108) on port 80.
May 7 19:34:15 ddns update: retval= 1, ddns_return_code (register,299) ddns_suggest_name () ddns_old_name ()
May 7 19:34:15 ddns update: asus_reg_domain retval= 1
May 7 19:34:15 ddns update: asusddns_update: 1
May 7 19:53:43 ddns update: ez-ipupdate: starting...
May 7 19:53:43 ddns update: connected to nwsrv-ns1.asus.com (103.10.4.108) on port 80.
May 7 19:53:46 ddns update: Asus update entry:: return: HTTP/1.1 299 |Invalid IP format| 192.168.1.xx^M Date: Sat, 07 May 2016 17:53:43 GMT^M Server: Apache^M Content-Length: 0^M Content-Type: text/html^M ^M
May 7 19:53:46 ddns update: retval= 1, ddns_return_code (,299)
May 7 19:53:46 ddns update: asusddns_update: 1
May 7 22:02:54 ddns update: ez-ipupdate: starting...
May 7 22:02:54 ddns update: connected to nwsrv-ns1.asus.com (103.10.4.108) on port 80.
May 7 22:02:57 ddns update: Asus update entry:: return: HTTP/1.1 299 |Invalid IP format| 192.168.1.xx^M Date: Sat, 07 May 2016 20:02:54 GMT^M Server: Apache^M Content-Length: 0^M Content-Type: text/html^M ^M
May 7 22:02:57 ddns update: retval= 1, ddns_return_code (,299)
May 7 22:02:57 ddns update: asusddns_update: 1
May 7 22:03:59 ddns update: ez-ipupdate: starting...
May 7 22:03:59 ddns update: connected to nwsrv-ns1.asus.com (103.10.4.108) on port 80.
May 7 22:04:02 ddns update: Asus update entry:: return: HTTP/1.1 299 |Invalid IP format| 192.168.1.xx^M Date: Sat, 07 May 2016 20:03:59 GMT^M Server: Apache^M Content-Length: 0^M Content-Type: text/html^M ^M
May 7 22:04:02 ddns update: retval= 1, ddns_return_code (,299)
May 7 22:04:02 ddns update: asusddns_update: 1
 
Coming back to your questions:

"What is my HostName.asuscomm.com?
- Where and how I can choose and register my "Host Name" ASUS DDNS?"

It's up to you to chose your hostname and enter it in the space provided; let's say you chose "stam", if successful, I believe it then tells you it's been successfully registered. You enter "stam" in the box for hostname (and Apply) and that's it: your DDNS address would be stam.asuscomm.com. There's no separate registration on a website; when it works, it is so simple that it is hard to believe that there aren't several more steps you must complete. Sorry: I can't tell from the logfile what the problem is. Next time you restore to factory default settings, try again.
 
Last edited:
I've my RT-AC68U in DMZ behind an ISP hub modem router (TG1100).
The wireless router currently uses a private WAN IP address (my WAN IP is 192.168.1.64)
"This router may be in the multiple-NAT environment and DDNS service cannot work in this environment."

es7sj7.jpg

sv2ueq.jpg


There is a way (a setting, a work around..) to use ASUS DDNS? Or I will never be able to use it?
Thank You :)
 
Last edited:
I've my RT-AC68U in DMZ behind an ISP hub modem router (TG1100).
The wireless router currently uses a private WAN IP address (my WAN IP is 192.168.1.64)
"This router may be in the multiple-NAT environment and DDNS service cannot work in this environment."

es7sj7.jpg

sv2ueq.jpg


There is a way (a setting, a work around..) to use ASUS DDNS? Or I will never be able to use it?
Thank You :)


Until you get a public IP, you will 'never' be able to use it (afaik).
 
Thank You so much octopus! :)

I replaced:
- USER: stam.asuscomm.com
- PASS: (is it access password to router?)
- HOST: www.asus.com
- # Should ... http://stam.asuscomm.com/
- $PASS@updates.asus.com

Do I replaced all right? This script could work?
Code:
#!/bin/sh
USER="stam.asuscomm.com" # replace @ symbol with URL safe %40
PASS="YourPassword"
HOST="www.asus.com"

# Should be no need to modify anything beyond this point
IP=$(wget -O - -q http://stam.asuscomm.com/)
logger "Retrieved External IP: $IP"

RESULT=$(/usr/sbin/curl -k --silent "https://$USER:
$PASS@updates.asus.com/nic/update?hostname=
$HOST&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG&myip=$IP")

logger "Results: $RESULT"

if [[ ${RESULT:0:4} == 'good' ]]
then
  /sbin/ddns_custom_updated 1
else
  /sbin/ddns_custom_updated 0
fi

Sorry for my "niubbiaggine" (noob) but I'm not linux user :)
 
Last edited:
Hi Stambeccuccio.
I've the same your problem having a Fastweb FTTH 100/50, TG1100 Fiber router and the RT-AC68U as my own router and having public static external IP.
I've configured a DMZ to the AC68U (192.168.2.1) but I have the same your error "This router may be in the multiple-NAT environment" and I can't configure an OpenVPN. Have you solved the problem?
 
Hi Stambeccuccio.
I've the same your problem having a Fastweb FTTH 100/50, TG1100 Fiber router and the RT-AC68U as my own router and having public static external IP.
I've configured a DMZ to the AC68U (192.168.2.1) but I have the same your error "This router may be in the multiple-NAT environment" and I can't configure an OpenVPN. Have you solved the problem?
Hi dear Giuliano, no, I haven't solved.
Problem can be solved by a script, but I'm not able to write it.
Surely it's a common occurrence for many users.
It only remains to wait a pious soul in transit here who writes a working script.
 
Hi dear Giuliano, no, I haven't solved.
Problem can be solved by a script, but I'm not able to write it.
Surely it's a common occurrence for many users.
It only remains to wait a pious soul in transit here who writes a working script.
Thanks, I will test any other solution to do it and I'll post here if it is good.
 
I am in a similar position, double NAT but I also run an OpenVPN client. I have it working though.

I used http://freedns.afraid.org for my domain and the script is as follows straight from the link above:

---------------------
curl -k "https://freedns.afraid.org/dynamic/update.php?<your key goes here>" >/dev/null 2>&1 &

if [ $? -eq 0 ]; then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi
---------------------

Test it from the command line and make sure your URL has correct IP.

I ignored the DDNS setting on Admin page and added an "openvpn-event script" with above contents. In your case you want the above in "ddns-start".

User Scripts: https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts
 
I am in a similar position, double NAT but I also run an OpenVPN client. I have it working though.

I used http://freedns.afraid.org for my domain and the script is as follows straight from the link above:

---------------------
curl -k "https://freedns.afraid.org/dynamic/update.php?<your key goes here>" >/dev/null 2>&1 &

if [ $? -eq 0 ]; then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi
---------------------

Test it from the command line and make sure your URL has correct IP.

I ignored the DDNS setting on Admin page and added an "openvpn-event script" with above contents. In your case you want the above in "ddns-start".

User Scripts: https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts


Hello! Thank you very much for this. I have the same problem you resolved. I am running behind an openVPN. I implemented your script in open vpn-event script but for some reason I still can't connect to the router from the wan.. Can you advise if this is working with you? I tried both Asus script and afraiddns
 
Hello! Thank you very much for this. I have the same problem you resolved. I am running behind an openVPN. I implemented your script in open vpn-event script but for some reason I still can't connect to the router from the wan.. Can you advise if this is working with you? I tried both Asus script and afraiddns
use latest 384.7 Beta which supports ddns support in a double Nat or CGNAT environment
 
Use interface only - it’s entirely built within firmware - just use “external” as method to retrieve Wan IP if Using double Nat or CGNat.
 
Thank you @joe scian . I'll give that a shot. In this case, would I need to use DDNS using a jffs script or just as normal using the interface?
Use interface only - it’s entirely built within firmware - just use “external” as method to retrieve Wan IP if Using double Nat or CGNat.
Only doesnt work in AP-mode, you need router-mode to have it functional.
I suffer from this and cannot see any reason why it doesnt update IP and Merlin didnt answer why or if he could allow it for AP-mode too.
 
Last edited:
This is what I use:
https://freemyip.com/help

It is free and just runs as a simple cron job in my scenario.
Works perfectly has been rock solid reliable for nearly two years.

It will handle dual NAT easily, as when it connects it will only see your public IP.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top