sayrus
(usa Debian)
Enviado em 04/09/2010 - 10:29h
Da uma olhada no passo a passo
http://www.easy-share.com/1908467020/Tutorial%20DDNS%282%29.rar
Agora esse é o que meu amigo ta usando se quiser tentar:
:global ddnsuser "Seu login do
http://www.changeip.com/"
:global ddnspass "Sua senha"
:global ddnshost "Seu_Host.dyndns.pro"
:global ddnsinterface "pppoe-out1" SUA REDE IGUAL NO MIKROTIK
:global ddnssystem ("mt-" . [/system package get [/system package find name=system] version] )
:global ddnsip [ /ip address get [/ip address find interface=$ddnsinterface] address ]
:global ddnslastip
:if ([:len [/interface find name=$ddnsinterface]] = 0 ) do={ :log info "DDNS: No interface named $ddnsinterface, please check configuration." }
:if ([ :typeof $ddnslastip ] = "nothing" ) do={ :global ddnslastip 0.0.0.0/0 }
:if ([ :typeof $ddnsip ] = "nothing" ) do={
:log info ("DDNS: No ip address present on " . $ddnsinterface . ", please check.")
} else={
:if ($ddnsip != $ddnslastip) do={
:log info "DDNS: Sending UPDATE!"
:log info [ :put [/tool dns-update name=$ddnshost address=[:pick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ] ]
:global ddnslastip $ddnsip
} else={
:log info "DDNS: No changes necessary."
}
}
# END OF SCRIPT