Mikrotik router remotely using ip dynamis

Mikrotik router remotely using ip dynamis can be very confusing, especially we as a cafe owner uses speedy internet connection package family. Certainly frustrating if there are problems if we can not because we lost ipaddresnya meremotenya each time the modem off, or restart, or disconnected from the internet connection.


Maybe not the time anymore pake untukwarnet family package, but that sometimes conditions force us to use that connection.

There are several ways to tackle the problem, so we can remotely mikrotik far away to change the ip is changing (dynamic).

Remotely how much do dynamis mikrotik ip, at least as far as my wanderings there are 3 that can still be in use, there should be 4 but one domain providers no longer provide free subdomain for free account. That means you have to pay for their service.

First Method For User CHANGEIP.COM
/system script

add name=HomingBeacon-Simple policy=\
ftp,reboot,read,write,policy,test,winbox,password source="# Dynamic DNS Up\
date / Simple Edition\r\
\n# Written by Sam Norris, ChangeIP.com\r\
\n# Copyright ChangeIP.com 2009\r\
\n# For support send mail to Support@ChangeIP.com\r\
\n#\r\
\n# 2009-06-22 RouterOS 3.25 Tested\r\
\n# 2009-10-05 RouterOS 4.01rc1 Tested\r\
\n#\r\
\n# OVERVIEW: %\r\
\n# This script will update a ChangeIP.com dynamic dns hostname\r\
\n# with an ip address located directly on an interface.\r\
\n# %\r\
\n# NOTES: %\r\
\n# IF THIS SCRIPT DOES NOT PRODUCE ANY OUTPUT PLEASE COPY AND PASTE IT\r\
\n# AGAIN. THERE PROBABLY IS A LINE BREAK IN THE WRONG PLACE! Once you\r\
\n# have created this script and tested that it works by running it\r\
\n# manually you can schedule it to run every few minutes.\r\
\n# %\r\
\n# CONFIGURATION FIELD DEFINITIONS:\r\
\n# ddnsuser: Enter your ChangeIP.com user id.\r\
\n# ddnspass: Enter your ChangeIP.com password.\r\
\n# ddnshost: Enter the hostname (www.example.com) to update.\r\
\n# ddnsinterface: Enter a list of interface names - case sensative.\r\
\n# %\r\
\n# %\r\
\n# %\r\
\n# %\r\
\n# % % %\r\
\n# % % %\r\
\n# % % %\r\
\n# %\r\
\n# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\
\n# EDIT YOUR DETAILS / CONFIGURATION HERE\r\
\n# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\
\n:global ddnsuser \"YourChangeIPUserID\"\r\
\n:global ddnspass \"PASSWORD\"\r\
\n:global ddnshost \"MyRouterHostname.example.org\"\r\
\n:global ddnsinterface \"ether1\"\r\
\n# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\
\n# END OF USER DEFINED CONFIGURATION\r\
\n# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\
\n\r\
\n:global ddnssystem (\"mt-\" . [/system package get [/system package find\
\_name=system] version] )\r\
\n:global ddnsip [ /ip address get [/ip address find interface=\$ddnsinter\
face] address ]\r\
\n:global ddnslastip\r\
\n\r\
\n:if ([:len [/interface find name=\$ddnsinterface]] = 0 ) do={ :log info \
\"DDNS: No interface named \$ddnsinterface, please check configuration.\" \
}\r\
\n\r\
\n:if ([ :typeof \$ddnslastip ] = \"nothing\" ) do={ :global ddnslastip 0.\
0.0.0/0 }\r\
\n\r\
\n:if ([ :typeof \$ddnsip ] = \"nothing\" ) do={\r\
\n\r\
\n:log info (\"DDNS: No ip address present on \" . \$ddnsinterface . \", p\
lease check.\")\r\
\n\r\
\n} else={\r\
\n\r\
\n :if (\$ddnsip != \$ddnslastip) do={\r\
\n\r\
\n :log info \"DDNS: Sending UPDATE!\"\r\
\n :log info [ :put [/tool dns-update name=\$ddnshost address=[:pick \$\
ddnsip 0 [:find \$ddnsip \"/\"] ] key-name=\$ddnsuser key=\$ddnspass ] ]\r\
\n :global ddnslastip \$ddnsip\r\
\n\r\
\n } else={ \r\
\n\r\
\n :log info \"DDNS: No changes necessary.\"\r\
\n\r\
\n }\r\
\n\r\
\n}"
Paste the script on mikrotik terminal, and do not forget to change what you must change the script, which is part of:

\n:global ddnsuser \"YourChangeIPUserID\"\r\
\n:global ddnspass \"PASSWORD\"\r\
\n:global ddnshost \"MyRouterHostname.example.org\"\r\
\n:global ddnsinterface \"ether1\"\r\


I just think you already understand to replace that line with what. If you do not understand contact me at commentar.

If the scripts above do not exist errornya last step below, paste in the terminal as well.

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


Remote Ip ip Mikrotik Dynamis (ip fluctuations) using AFFRAID.ORG

Open Notepad and paste the code below, into the notepad

# Update DNS on Freedns.afraid.org
:global host "freedns.afraid.org"
:global url "urlddns"

/tool fetch url=$url host=$host

Why should kenotepad, because the line was there that we have to change. the line urlddns. Here's how:

Afraid to open your account Click on Dynamic DNS, scroll down and see the domain you want to revers to our mikrotik ip dynamis. If you do not have the domain entered in afraid, create a subdomain, by clicking on the text and create a subdomain REGISTRY in one domain that you enjoy the domain list provided by afraid.org when he returned again to the Dynamic DNS, scroll down and see Direct URL text, right-click its link Copy and overwrite the scripts above urlddns writing.

Would like these scripts above.


# Update DNS on Freedns.afraid.org
:global host "freedns.afraid.org"
:global url "http://freedns.afraid.org/dynamic/update.php?VEdmU24wTVRTTUlBQUs5NELAELADAEdae33"

/tool fetch url=$url host=$host


  • Click on System -> Scripts -> Click add [+] red
  • Name the afraid
  • Policy tick all
  • Paste code we edit earlier in the source box scripts
  • Apply -> Ok

Last

  • Click on System -> Scheduler -> click add [+]
  • Fill afraid to name and On Event.
  • Check all policy
  • Start time on select startup
  • Fill the interval 00:10:00
  • Click the Ok button.
Well ... that's it! just that. Good luck ..!

The only trick I write for the next time ya ..!
Title : Mikrotik router remotely using ip dynamis
Description : Mikrotik router remotely using ip dynamis can be very confusing, especially we as a cafe owner uses speedy internet connection package famil...

0 Response to "Mikrotik router remotely using ip dynamis"

Posting Komentar