Hi,
I'm looking for no-ip update script for RB951Ui-2HnD with 6.32.2.
This what I have stopped working, I have tried some scripts but no results
Thanks.
Set scheduler and set to run the script for 30-60 mins.From the link above script don't work.
I have found another which works:
policy ftp read write test
# No-IP automatic Dynamic DNS update
#--------------- Change Values in this section to match your setup ------------------
# No-IP User account info
:local noipuser "xxx"
:local noippass "xxx"
# Set the hostname or label of network to be updated.
# Hostnames with spaces are unsupported. Replace the value in the quotations below with your host names.
# To specify multiple hosts, separate them with commas.
:local noiphost "xxx.no-ip.com"
# Change to the name of interface that gets the dynamic IP address
:local inetinterface "pppoe-out1_VDSL"
#------------------------------------------------------------------------------------
# No more changes need
:global previousIP
:if ([/interface get $inetinterface value-name=running]) do={
# Get the current IP on the interface
:local currentIP [/ip address get [find interface="$inetinterface" disabled=no] address]
# Strip the net mask off the IP address
:for i from=( [:len $currentIP] - 1) to=0 do={
:if ( [:pick $currentIP $i] = "/") do={
:set currentIP [:pick $currentIP 0 $i]
}
}
:if ([:typeof $previousIP] = "nil") do={:set previousIP ""}
:log info "No-IP: Current IP $currentIP is not equal to previous IP, update needed"
:set previousIP $currentIP
# The update URL. Note the "\3F" is hex for question mark (?). Required since ? is a special character in commands.
:local url "http://dynupdate.no-ip.com/nic/update\3Fmyip=$currentIP"
:local noiphostarray
:set noiphostarray [:toarray $noiphost]
:foreach host in=$noiphostarray do={
:log info "No-IP: Sending update for $host"
/tool fetch url=($url . "&hostname=$host") user=$noipuser password=$noippass mode=http dst-path=("no-
ip_ddns_update-" . $host . ".txt")
:log info "No-IP: Host $host updated on No-IP with IP $currentIP"
}
} else={
:log info "No-IP: Previous IP $previousIP is equal to current IP, no update needed"
}
} else={
:log info "No-IP: $inetinterface is not currently running, so therefore will not update."
}
From log:
15:20:45 script,info No-IP: Current IP 83.31.xxx.xxx is not equal to previous IP, update needed
15:20:45 script,info No-IP: Sending update for xxx.no-ip.com
15:50:45 script,info No-IP: Current IP 83.31.xxx.xxx is not equal to previous IP, update needed
15:50:45 script,info No-IP: Sending update for xxx.no-ip.com
16:20:45 script,info No-IP: Current IP 83.31.xxx.xxx is not equal to previous IP, update needed
16:20:45 script,info No-IP: Sending update for xxx.no-ip.com
16:50:45 script,info No-IP: Current IP 83.31.xxx.xxx is not equal to previous IP, update needed
16:50:45 script,info No-IP: Sending update for xxx.no-ip.com
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: terminating...
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: disconnected
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: initializing...
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: connecting...
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: terminating... - failed to authenticate ourselves to peer
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: disconnected
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: initializing...
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: connecting...
16:50:57 pppoe,ppp,info pppoe-out1_VDSL: authenticated
16:50:57 pppoe,ppp,info pppoe-out1_VDSL: connected
16:50:57 system,info item added
16:50:57 system,info item added
17:20:45 script,info No-IP: Current IP 83.28.xxx.xx is not equal to previous IP, update needed
17:20:45 script,info No-IP: Sending update for xxx.no-ip.com
17:50:45 script,info No-IP: Current IP 83.28.xxx.xx is not equal to previous IP, update needed
17:50:45 script,info No-IP: Sending update for xxx.no-ip.com
18:20:45 script,info No-IP: Current IP 83.28.xxx.xx is not equal to previous IP, update needed
18:20:45 script,info No-IP: Sending update for xxx.no-ip.com
After that I must login on no-ip.com, go to Hosts / Redirects and hit "update host" button because IP don't update with new IP 83.28.xxx.xx when script run. And after that it works.
I have ISP modem in bridge mode which automatically reconnect connection after 24h
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: terminating...
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: disconnected
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: initializing...
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: connecting...
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: terminating... - failed to authenticate ourselves to peer
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: disconnected
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: initializing...
16:50:55 pppoe,ppp,info pppoe-out1_VDSL: connecting...
16:50:57 pppoe,ppp,info pppoe-out1_VDSL: authenticated
16:50:57 pppoe,ppp,info pppoe-out1_VDSL: connected
How to start/setup no-ip script after my connection get status: pppoe-out1_VDSL: connected?
Is that any way to get script works properly (no hit "update host").
Thanks