Thursday 25 October 2012

Remote Mikrotik Speedy dengan IP Dynamic dari jarak jauh atau di luar Jaringan

Terkadang kita dibingungkan saat akan me-remote mikrotik yang mempunyai ip publik yang dinamis. Untuk mengatasi nya kita perlu membuat akun ke website yang menyediakan fasilitas DDNS. Untuk tutor kali ini kita akan menggunakan ChangeIP  yang menyediakan free ddns. Sebelum menggunakan Dyndns tapi sekarang udah ga Gratis lagi dan tentunya mikrotik anda sudah set PPPOE dial up dimikrotik.

Berikut Step by stepnya khusus ROS V.5xx untuk versi dibawahnya bisa diterawang disini

Langkah :
1. Daftar di www.changeip.net
2. Buka Winbox System-Scripts

Sesuai kan yang didalam kotak ID,PASS,HOST yang baru terdaftar.

berikut scriptnya :

# Written by Sam Norris, ChangeIP.com
# Copyright ChangeIP.com 2009
# 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 to watch - case sensative.
#                   %
#                   %
#                   %
#                   %
#               %   %   %
#                %  %  %
#                 % % %
#                   %
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# EDIT YOUR DETAILS / CONFIGURATION HERE
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:global ddnsuser "YourChangeIPUserID"
:global ddnspass "PASSWORD"
:global ddnshost "MyRouterHostname.example.org"
:global ddnsinterface "ether1"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 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 [ :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."

  }

}


Beri Nama script ChangeIP

3. Tambahkan schedule seperti dibawah ini . pastekan di New Terminal

/system scheduler add comment="" disabled=no interval=5m name=DDNS on-event=\ ChangeIP policy=read,write,policy,test,password start-time=\ startup





Seep segitu aja aja Gan,
Sumber : http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_ChangeIP.com


Artikel Terkait:

Share This
Subscribe Here

4 comments:

Anonymous said...

It's remarkable to pay a visit this site and reading the views of all colleagues about this post, while I am also keen of getting familiarity.

My website ... garden center jobs

Anonymous said...

Fгοm the glass blowіng manufactuгіng unit that iѕ even nοw іn
ορerаtіоn, tο a
stаy bakеrу whеre bу yοu can baκе youг have gooԁies,
runnіng faгms that уou can gο tο see and feed the аnimalѕ, and functioning рοttегy mills.
The publican requеstеd Daiѕy, his barmaіd, to рroviԁe some celebrаtoгу blendеd dгіnks.
The blood οf thеse whο stаy a lifetime οf eat, cοnsume and bе meгrу is stаndаrԁ anԁ their resρіrаtory іs
notably quicklу.

my blog pοst: old Stone oven

Anonymous said...

Thanks designed for sharing such a nice thought, post is pleasant, thats why i have read it fully

Also visit my web page Heidelberg Kindergeburtstag

Anonymous said...

Yes! Finally someone wгites about software.

Feеl free to visіt my web page; diamondlinks review

 

Site Info

free counters

SyakirahNET Copyright © 2009 BeMagazine Blogger Template is Designed by Blogger Template
In Collaboration with fifa

Related Posts Plugin for WordPress, Blogger...