+ Responder ao Tópico

  1. ola amigo o SCRIPT deve estar erado porq nao funfa... agora o scheduler eu consegui faser funfa esta contando normal agora o script nao conta de geito nenhum da um helpe ai amigo vlw abraço


  2.    Publicidade


  3. Criando acesso ao Mk pelo ChangeIp - Enhanced Dynamic DNS Solutions

    /system script
    add name=DDNS policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
    #int-DDNS.Info\r\
    \n/tool dns-update name=ACESSO_CRIADO_CHANGEIP address=127.0.0.255 key-n\
    ame=USUARIO_CHANGEIP key=\"SENHA\""

    /system scheduler
    add comment="" disabled=no interval=1m name=DDNS on-event=\
    "system script run DDNS" policy=\
    reboot,read,write,policy,test,password,sniff,sensitive start-date=\
    jan/01/1970 start-time=00:00:00

  4. porq essa configuração ai nao é para sua rb tenq ser essa aqui olha

    :log info "DDNS: Begin"

    :global ddnsuser "seuusuario"
    :global ddnspass "suasenha"
    :global ddnshost "o_host_que _vc_criou"
    :global ddnsinterface "pppoe-out1"
    :global ddnslastip "0"

    :global ddnsip [ /ip address get [/ip address find interface=$ddnsinterface] address ]

    :if ([ :typeof $ddnslastip ] = nil ) do={ :global ddnslastip 0.0.0.0/0 }

    :if ([ :typeof $ddnsip ] = nil ) do={

    :log info ("DDNS: No ip address present on " . $ddnsinterface . ", please check.")

    } else={

    :if ($ddnsip != $ddnslastip) do={

    :log info "DDNS: Sending UPDATE!"
    :log info [ /tool dns-update name=$ddnshost address=[http://static3.under-linux.net/image...ies/tongue.pngick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ]
    :global ddnslastip $ddnsip

    } else={

    :log info "DDNS: No change"

    }

    }

    :log info "DDNS: End"



    Agora o Scheduler

    /system scheduler
    add comment="" disabled=no interval=10m name=schedule1 on-event=DDNS \
    start-time=startup

    []'s

    Citação Postado originalmente por dimensaonet Ver Post
    amigo minha RB450g com balance PCC nao funciona o script DDNS .
    segue minhas regras abaixo.
    Código :
    # Define User Variables
    :global ddnsuser "dimensao.ddnsxxxx"
    :global ddnspass "conselho"
    :global ddnshost "dimensao.ddnsxxxxx"
     
    # Define Global Variables
    :global ddnsip
    :global ddnslastip
    :if ([ :typeof $ddnslastip ] = nil ) do={ :global ddnslastip "0" }
    :global ddnsinterface
    :global ddnssystem ("mt-" . [/system package get system version] )
    # Define Local Variables
    :local int
    # Loop thru interfaces and look for ones containing
    # default gateways without routing-marks
    :foreach int in=[/ip route find dst-address=0.0.0.0/0 active=yes ] do={ 
    :if ([:typeof [/ip route get $int routing-mark ]] != str ) do={
    :global ddnsinterface [/ip route get $int interface]
    } 
    }
    # Grab the current IP address on that interface.
    :global ddnsip [ /ip address get [/ip address find interface=$ddnsinterface ] address ]
    # Did we get an IP address to compare?
    :if ([ :typeof $ddnsip ] = nil ) 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 update required."
    }
    }
    # End of script


    por favor mim ajudem peciso muito estou deixando um printe em anexo.
    Anexo 9906

  5. Não existe diferença entre Pc e Rb para acesso externo. Mikrotik é mikrotik. Há diferença esta entre as versões. Essa que postei são para as versões 3x e 4x. A que esta acima, é para a versão 2x.

  6. amigo ja tentei todas essas ai nem uma conta unico q esta contando éo Scheduler porq o script nao conta eu cliko no Run Script e so fica no 1 oque sera q eu fis errado ? valew pela atenção
    # Dynamic DNS Update / Simple Edition
    # Written by Sam Norris, ChangeIP.com
    # Copyright ChangeIP.com 2009-2010
    # For support send mail to Support@ChangeIP.com
    #
    # 2009-06-22 RouterOS 3.25 Tested
    # 2009-10-05 RouterOS 4.01rc1 Tested
    #
    # OVERVIEW: %
    # This script will update a ChangeIP.com dynamic dns hostname
    # with an ip address located directly on an interface.
    # %
    # NOTES: %
    # IF THIS SCRIPT DOES NOT PRODUCE ANY OUTPUT PLEASE COPY AND PASTE IT
    # AGAIN. THERE PROBABLY IS A LINE BREAK IN THE WRONG PLACE! Once you
    # have created this script and tested that it works by running it
    # manually you can schedule it to run every few minutes.
    # %
    # CONFIGURATION FIELD DEFINITIONS:
    # ddnsuser: Enter your ChangeIP.com user id.
    # ddnspass: Enter your ChangeIP.com password.
    # ddnshost: Enter the hostname (www.example.com) to update.
    # ddnsinterface: Enter an interface name - case sensative.
    # %
    # %
    # %
    # %
    # % % %
    # % % %
    # % % %
    # %
    # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # EDIT YOUR DETAILS / CONFIGURATION HERE
    # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    :global ddnsuser "meu user"
    :global ddnspass "minha senha"
    :global ddnshost "meu host"
    :global ddnsinterface "PPPoE-out1"
    # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # END OF USER DEFINED CONFIGURATION
    # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    :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 [ ut [/tool dns-update name=$ddnshost address=[ick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ] ]
    :global ddnslastip $ddnsip
    } else={
    :log info "DDNS: No changes necessary."
    }
    }
    # END OF SCRIPT

    Citação Postado originalmente por interhome Ver Post
    Não existe diferença entre Pc e Rb para acesso externo. Mikrotik é mikrotik. Há diferença esta entre as versões. Essa que postei são para as versões 3x e 4x. A que esta acima, é para a versão 2x.




Tags para este Tópico

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L