kako da ovo radi na dynu?
moja je tu, i trebala bi raditi, ali ne radi. i nije do schedulera, jer ni kad lupim ručno run script, ne odradi update.
može li bit da sam router nema pristup netu jer sam ubio sve živo u firewallu?
Code:
#############################################
# DYNU SCRIPT for Mikrotik , DSL Modem BRIDGE MODE,
# Wan dialing is done by mikrotik so public ip is on mikrotik directly
# CHANGE THE FOLLOWING ACCORDING TO YOUR CREDENTIALS
# Syed Jahanzaib / aacable at hotmail dot com
# ####################################################
:global ddnsuser bblablauser
:global ddnspass "blablapassword"
:global theinterface "pppoe_out1"
:global ddnshost "bablabla.org"
#### Donot change below this line ####
:global ipddns [:resolve $ddnshost];
:global ipfresh [ /ip address get [/ip address find interface=$theinterface ] address ]
:if ([ :typeof $ipfresh ] = nil ) do={
:log info ("DynuDDNS: No IP address on $theinterface .")
} else={
:for i from=( [:len $ipfresh] - 1) to=0 do={
:if ( [:pick $ipfresh $i] = "/") do={
:set ipfresh [:pick $ipfresh 0 $i];
}
}
:if ($ipddns != $ipfresh) do={
:log info ("DynuDDNS: IP-Dynu = $ipddns")
:log info ("DynuDDNS: IP-Fresh = $ipfresh")
:log info "DynuDDNS: Update IP needed, Sending UPDATE...!"
:global str "/nic/update?hostname=$ddnshost&myip=$ipfresh"
/tool fetch address=api.dynu.com src-path=$str mode=http user=$ddnsuser password=$ddnspass dst-path=("/Dynu.".$ddnshost)
:delay 1
:global str [/file find name="Dynu.$ddnshost"];
/file remove $str
:global ipddns $ipfresh
:log info "DynuDDNS: IP updated to $ipfresh!"
} else={
:log info "DynuDDNS: dont need changes";
} }
####################################################
edit
upravo je router umro bez da sam mu išta napravio.
sve sporije i sporije otvarao net, na kraju umro skroz. mogu ga pingat, ali winbox ga ne vidi, i ne mogu mu pristupiti niti preko browsera.
dok pišem post došao sebi, ali dobrih 5 minuta je bio mrtav.
nemam ja živaca za ove pizdarije.
evo firewall ss-a.
