Change ip mudou o site e com isso mudou forma de acesso mkauth nem mikrotik consegue logar e enviar o ip, acabei de testar e para quem usa ddns por enquanto não temos solução.
Ao tentar atualizar o ddns pelo mikrotik da autentication failure.
Alguem reparou e tem a solução?



Respostas
/system script
add name=HomingBeacon policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
source="# HomingBeacon Main Dynamic DNS Update Script\r\
\n# Written by Sam Norris, ChangeIP.com\r\
\n# 20100728 Tested on RouterOS 4.9\r\
\n# 20110511 Tested on RouterOS 5.2\r\
\n\r\
\n# Set your specific ChangeIP.com preferences here.\r\
\n:global ddnsuser \"USERID\"\r\
\n:global ddnspass \"PASSWORD\"\r\
\n:global ddnshost \"HOSTNAME.changeip.net\"\r\
\n:global ddnsinterface \"pppoe-out1\"\r\
\n# Change ddnsport to 8245 to bypass proxy.\r\
\n:local ddnsport 80\r\
\n\r\
\n# Do not edit anything below this line. You have been warned.\r\
\n# Abusive updates to the system will cause firewall blocks.\r\
\n\r\
\n# Please be considerate and\r\
\n# do not let this script run more than once per 3-5 minutes.\r\
\n\r\
\n:log info \"DDNS: Starting.\"\r\
\n\r\
\n# Initialize checkpoint\r\
\n:global ddnscheckpoint\r\
\n:if ([:typeof \$ddnscheckpoint] = \"time\") do={\r\
\n\t:log info (\"DDNS: Last check was \" . ([/system clock get time] - \$d\
dnscheckpoint))\r\
\n} else={\r\
\n\t:log info \"DDNS: Cannot determine checkpoint, set now.\"\r\
\n\t:global ddnscheckpoint ( [/system clock get time] - 1d )\r\
\n}\r\
\n\r\
\n# Get the current IP\r\
\n:if ([/system clock get time] - \$ddnscheckpoint > [:totime 180s] || [/s\
ystem clock get time] - \$ddnscheckpoint < [:totime 0s]) do={\r\
\n :log info \"DDNS: Performing remote IP detection.\"\r\
\n /tool fetch address=\"ip.changeip.com\" host=\"ip.changeip.com\" src-\
path=(\"/\?\" . [/int eth get 0 mac-address ]) dst-path=\"ip.changeip.com.\
txt\" mode=http port=\$ddnsport\r\
\n :global ddnscheckpoint [/system clock get time]\r\
\n} else={\r\
\n :log info \"DDNS: Please be considerate and wait a few seconds longer\
.\"\r\
\n :break\r\
\n}\r\
\n\r\
\n# Parse the IP address received from fetch script.\r\
\n\t:global ddnslastip\r\
\n\t:local html [/file get \"ip.changeip.com.txt\" contents]\r\
\n\t:local ddnsip [:pick \$html ([:find \$html \"<!--IPADDR=\"] + 11) [:fi\
nd \$html \"-->\"] ]\r\
\n\r\
\n# Is it a valid IP and is it different than the last one\?\r\
\n\t:if ([:typeof [:toip \$ddnsip]] = \"ip\" AND \$ddnsip != \$ddnslastip \
) do={\r\
\n\t\t:log info \"DDNS: Sending UPDATE with \$ddnsip\"\r\
\n\t\t:log info [/tool dns-update name=\$ddnshost address=\$ddnsip key-nam\
e=\$ddnsuser key=\$ddnspass ]\r\
\n\t\t:global ddnslastip \$ddnsip\r\
\n\t} else={\r\
\n\t\t:log info \"DDNS: No update required.\"\r\
\n\t}\r\
\n}\r\
\n"
/system scheduler
add comment="ChangeIP.com Dynamic DNS Update" \
disabled=no \
interval=30m name=DynamicDNS \
on-event=HomingBeacon \
policy=read,write start-time=startup
fiz exatamente como mandou trocando o username, link e password mas não funcionou no meu 2.9.27 o script
Este funciona 1000% Valeu amigão!!!!!
Sóstenes L. Teixeira disse:
Pedro,
como o ddns parou o genrencia net nao conseguiu informar os pagamentos ao mkauth, tem algum comando no mkauth que executo para buscar os pagamentos realizados, ou quem tem que mandar de novo é o gerencia net? Aguardo
Pedro Filho disse:
Aqui ta filé
normal , normal
graças a Deus :D
aq voltou e 02/10/2013 e paro 04/10/2013
Aqui o change voltou 100%!
Acesso externo?
O meu funciona, mas somente dentro da rede.
augusto cezar das neves disse:
Como dizia um velho amigo meu! Rapaz o fórum é nosso então vamos poluir ele de idéias...
Segue aqui o Script DynDns alterado para os serviços de DDNS da Winco DDNS
*Somente altere as linhas em negrito a seguir:
# Set needed variables
:local username "seudominio.ddns.com.br"
:local password "SuaSenha"
:local hostname "seudominio.ddns.com.br"
:global dyndnsForce ""
:global previousIP "$previousIP"
# print some debug info
:log info ("UpdateDynDNS: username = $username")
:log info ("UpdateDynDNS: password = $password")
:log info ("UpdateDynDNS: hostname = $hostname")
:log info ("UpdateDynDNS: previousIP = $previousIP")
# get the current IP address from the internet (in case of double-nat)
/tool fetch mode=http address="checkip.ddns.com.br" src-path="/" dst-path="/dyndns.checkip.html"
:delay 1
:local result [/file get dyndns.checkip.html contents]
# parse the current IP result
:local resultLen [:len $result]
:local startLoc [:find $result ": " -1]
:set startLoc ($startLoc + 2)
:local endLoc [:find $result "</body>" -1]
:local currentIP [:pick $result $startLoc $endLoc]
:log info "UpdateDynDNS: currentIP = $currentIP"
# Remove the # on next line to force an update every single time - useful for debugging,
# but you could end up getting blacklisted by DynDNS!
#:set dyndnsForce true
# Determine if dyndns update is needed
# more dyndns updater request details http://www.dyndns.com/developers/specs/syntax.html
:if (($currentIP != $previousIP) || ($dyndnsForce = true)) do={
:set dyndnsForce false
:set previousIP $currentIP
:log info "$currentIP or $previousIP"
/tool fetch user=$username password=$password mode=http address="members.ddns.com.br" \
src-path="nic/update?system=dyndns&hostname=$hostname&myip=$currentIP&wildcard=no" \
dst-path="/dyndns.txt"
:delay 1
:local result [/file get dyndns.txt contents]
:log info ("UpdateDynDNS: Dyndns update needed")
:log info ("UpdateDynDNS: Dyndns Update Result: ".$result)
:put ("Dyndns Update Result: ".$result)
/tool e-mail send from=send@provedor.com.br server=smtp.provedor.com.br to=mail@provedor.com.br subject="Current IP is $currentIP"
:log info "Email of new IP address sent"
} else={
:log info ("UpdateDynDNS: No dyndns update needed")
}
Não amigo, eles não me deram o script, mais tem no site um tutorial pra usar um script da DynDns bastando apenas mudar alguns host. Eu tenho o script pronto aqui, se precisar te mando...
Achei barato por se tratar de "Brasil" rsrsr
Bom aqui tá tudo certo. Forte abraço!
Cleber Loncoski disse:
Cara, me interessei por essa empresa, deu certo para vc? Eles te deram o script para funcionar ou vc usou o mesmo apenas trocando login e senha?
Desde ja agradeço a atenção!
Eliabys C. Ribeiro disse:
-
1
-
2
-
3
-
4
de 4 Próximo