So this cool but how do we get the dynamic ip to send to changeip without the subnet.
If i query the pppoe interface i allways get the ip/32 now we need the ip only ??????
Here is a 2.9 script we have whipped up. It has not been 100% fully tested, but is supported. Please test this out and if there are any problems please let us know. This script is for 2.9, not 2.8 as the previous script is.
Create this script as 'ddnsUpdate' and schedule it to run once each 1-5 minutes or so. Change the information on the first few lines to your specific details.
There is no output from the '/tool dns-update' function as of yet, I am working with mikrotik to see if we can get the return code output to the log or something. The script attempts to log it, but nothing is entered. Right now the only way to check for confirmation that the script is working is to log into the ChangeIP.com account and click on 'View recent ddns updates'. You should see the updates coming from mikrotik upon the first run as well as anytime your IP changes.
The subnet mask is removed from the IP address before the update is sent on this script.
Use the very bottom script. That 2.8 script uses SMTP to send an email to our systems smtp-to-ddns proxy ... much different than the built in tool now provided in 2.9.
The 2.8 script will only work with ChangeIP.com because we wrote a smtp-to-ddns proxy that takes these updates via emails and applies them. The other providers do not have this same functionality, they only use HTTP protocols.
The 2.9 /tool dns-update might work with other providers but I believe they aren't as reliable. We know the Mikrotik and can troubleshoot and provide support whereas the other companies probably don't even know who Mikrotik is. Also, their updates systems are much more strict and your account is always getting locked out if you sent too many updates.
Turn on the debugging for ddns to see if you can find anything problematic. The problem with DynDNS and other companies is that they output http text in the body message instead of the standard http response codes.
Joined: Wed Dec 08, 2004 7:29 am Posts: 973
Karma: 2
Location: Sacramento, CA
changeip wrote:
The 2.8 script will only work with ChangeIP.com because we wrote a smtp-to-ddns proxy that takes these updates via emails and applies them. The other providers do not have this same functionality, they only use HTTP protocols.
The 2.9 /tool dns-update might work with other providers but I believe they aren't as reliable. We know the Mikrotik and can troubleshoot and provide support whereas the other companies probably don't even know who Mikrotik is. Also, their updates systems are much more strict and your account is always getting locked out if you sent too many updates.
Turn on the debugging for ddns to see if you can find anything problematic. The problem with DynDNS and other companies is that they output http text in the body message instead of the standard http response codes.
Sam
Thanks for the reply, I'm using 2.9.6 and it would appear dyndns.org doesn't support intergration with Mikrotik. Oh well, I guess I'll just have to use their software update tool...
Joined: Fri Jun 24, 2005 4:12 am Posts: 165
Karma: 0
Location: US
What if your MT router is behind another gateway router (which has NAT'd the ip address of the MT router), but you have told the gateway router to do a one-to-one NAT of its external ip address (DMZ port forwarding) to the MT router so you can access it from the Internet.
The MT router does not know the "real" IP address Is there a function you can write into the script which works similar to the javascript run on the webpage at http://www.whatsmyip.com/ which can tell you the real outside IP address of the gateway router?
This would be great to have in case the installation does not allow you to have the MT router be the gateway router...
IGNORE THIS POST. Sorry, I just saw the thread called "DDNS for behind NAT"
Users browsing this forum: No registered users and 17 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum