-
Fototrend
Mikrotik routerekkel foglalkozó téma. Mikrotik router típusok, hardverek, router beállítások, programozás (scriptek írása), frissítés, és minden Mikrotik routerrel kapcsolatos beszélgetés helye.
Új hozzászólás Aktív témák
-
Cirbolya_sen
aktív tag
válasz kovyhun #5636 üzenetére
Ez no-ip-s script, ami neked van
dyndns script:
#DynDns mikrotik config
:global ddnsuser "xxxxxxx"
:global ddnspass "xxxxx"
:global theinterface "pppoe-out1"
:global ddnshost xxxxx.dyndns.org
:global ipddns [:resolve $ddnshost];
:global ipfresh [ /ip address get [/ip address find interface=$theinterface ] address ]
:if ([ :typeof $ipfresh ] = nil ) do={
:log info ("DynDNS: 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 ("DynDNS: IP-DynDNS = $ipddns")
:log info ("DynDNS: IP-Fresh = $ipfresh")
:log info "DynDNS: Update IP needed, Sending UPDATE...!"
:global str "/nic/update\?hostname=$ddnshost&myip=$ipfresh&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"
/tool fetch address=members.dyndns.org src-path=$str mode=http user=$ddnsuser \
password=$ddnspass dst-path=("/DynDNS.".$ddnshost)
:delay 1
:global str [/file find name="DynDNS.$ddnshost"];
/file remove $str
:global ipddns $ipfresh
:log info "DynDNS: IP updated to $ipfresh!"
} else={
:log info "DynDNS: dont need changes";
}
}mi van beállítva "time server"-nek?
Google, vagy time.kfki.hu szokott nálam a routerekben benne lenni[ Szerkesztve ]
Cirbolya_sentinel
Új hozzászólás Aktív témák
- Apple Magic Keyboard harmadik generációs 11 hüvelykes iPad Próhoz és ötödik generációs iPad Airhez
- ASUS GeForce GTX 1060 OC 6GB GDDR5 192bit (ROG STRIX-GTX1060-O6G-GAMING) Videokártya
- iPhone 15 Pro / 0 perces / Blue Titanium / 128 GB / Kártyafüggetlen / Számla + Garancia
- Realme C31
- Airpods Pro 2 / Számla + Garancia
Állásajánlatok
Cég: Ozeki Kft.
Város: Debrecen
Cég: Promenade Publishing House Kft.
Város: Budapest