Hirdetés

Keresés

Új hozzászólás Aktív témák

  • Ejelhar

    senior tag

    válasz mazso1988 #25196 üzenetére

    Szia,

    az enyémbe ez mocorog:


    ##############Script Settings##################

    :local NOIPUser "NOIPfelhasználónév"
    :local NOIPPass "jelszó"
    :local WANInter "WAN_Interfész_neve"
    :local NOIPDomain "NOIP-átírandó domain"

    ###############################################

    # Get the current IP on the interface
    :local currentIP [/ip address get [find interface="$WANInter" 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 ([:resolve $NOIPDomain server 1.1.1.1] != $currentIP) do={
    /tool fetch mode=http user=$NOIPUser password=$NOIPPass url="http://dynupdate.no-ip.com/nic/update\3Fhostname=$NOIPDomain&myip=$currentIP" keep-result=no
    :log info "NO-IP Update: $NOIPDomain - $currentIP"
    }

Új hozzászólás Aktív témák