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

Tuesday 23 October 2012

Blok Situs Porno dengan class IP berbeda (Squid Proxy)

Sebelumnya sudah pernah posting blok situs porno menggunakan ACL squid proxy tetapi blok untuk semua jaringan disini gan

langsung aja skema nya gini gan...

IP berikut sebagai contoh sesuaikan dengan ip masing2..

dimesin mikrotik :
indoor = 10.6.50.0/24
local = 192.168.88.0/24
hotspot= 10.5.50.0/24

-  Ip local antara : 192.168.88.200-192.168.88.212 blok acces kesitus porno tanpa terkecuali, saya beri nama warnet

- Perhatikan regexnya contoh warnet menggunakan ingus url_regex "/etc/squid/bocah" yang dimana isi file bocah nya situs porno dan kata-kata porno aja.

- Untuk jaringan hotspot dan indoor blok dan open otomatis antara jam 13:00-18:00

- Ip hotspot antara : 10.5.50.20-10.5.50.40 blok tanpa terkecuali, saya beri nama bocahhotspot

- Perhatikan regexnya contoh bocahhotspot menggunakan badurl url_regex "/etc/squid/porno"  yang dimana isi file porno nya termaksud situs porno, 4shared, mediafirre dll. Saya terapkan begitu karena disamping yang berlangganan bocah semua dan harga paket lebih murah dan blok tidak pernah dibuka.

- Gunakan user manger v.5.xx karena menerapkan ip static bisa langsung di usermanager agar ip bisa langsung masuk kedaftar blok.


Langkah - langkahnya :

1. Edit file /etc/squid/squid.conf
    gunakan WinSCP agar lebih mudah dan login sebagai root

2. Tambahkan parameter ACL sebagai berikut



acl local src 192.168.88.0/24
acl warnet src 192.168.88.200-192.168.88.212/32
acl ingus url_regex "/etc/squid/bocah"
http_access deny warnet ingus
http_access allow local
http_access allow warnet !ingus


acl badurl url_regex "/etc/squid/porno"
acl porn time SMTWHFA 13:00-18:00
acl indoor src 10.6.50.0/24
acl hotspot src 10.5.50.0/24
acl bocahhotspot src 10.5.50.20-10.5.50.40/32
http_access deny ingus porn  
http_access deny bocahhotspot badurl 
http_access allow !ingus porn
http_access allow hotspot !ingus porn
http_access allow indoor !ingus porn
http_access allow bocahhotspot !badurl
http_access allow hotspot
http_access allow indoor
http_access deny all




urutan jangan sampai kebalik-balik gan.

selanjutnya ikuti langkah-langkah diposting sebelumnya disini

halaman ERR_ACCESS_DENIED bisa gunakan yang ini agar tidak ketahuan oleh user :


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="cufon-active cufon-ready" xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Coming Soon</title>
<link rel="shortcut icon" href="http://www.websuccessagency.com/in/coming-soon-demo/dark-night-2/favicon.ico" type="image/x-icon">
<link href="https://sites.google.com/site/syakirahkomputer/flash/style.css" rel="stylesheet" type="text/css">
<link href="https://sites.google.com/site/syakirahkomputer/flash/960.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://sites.google.com/site/syakirahkomputer/flash/jquery.js"></script>
<script type="text/javascript" src="https://sites.google.com/site/syakirahkomputer/flash/cufon-yui.js"></script><style type="text/css">cufon{text-indent:0!important;}@media screen,projection{cufon{display:inline!important;display:inline-block!important;position:relative!important;vertical-align:middle!important;font-size:1px!important;line-height:1px!important;}cufon cufontext{display:-moz-inline-box!important;display:inline-block!important;width:0!important;height:0!important;overflow:hidden!important;text-indent:-10000in!important;}cufon canvas{position:relative!important;}}@media print{cufon{padding:0!important;}cufon canvas{display:none!important;}}</style>
<script type="text/javascript" src="https://sites.google.com/site/syakirahkomputer/flash/Clarendon_LT_Std_700.js"></script>
<script type="text/javascript">
    Cufon.replace('h1,h3', {fontFamily: 'Clarendon LT Std', hover:true})
</script>
</head>
<body>
<div id="shim"></div>
<div id="content">
    <div class="logo_box"><h1><cufon style="width: 88px; height: 38px;" alt="Your" class="cufon cufon-canvas"><canvas style="width: 111px; height: 38px; top: -3px; left: -2px;" height="38" width="111"></canvas><cufontext>Your</cufontext></cufon><br><cufon style="width: 173px; height: 38px;" alt="Company" class="cufon cufon-canvas"><canvas style="width: 192px; height: 38px; top: -3px; left: -2px;" height="38" width="192"></canvas><cufontext></cufontext></cufon><br><cufon style="width: 108px; height: 38px;" alt="Hotspot" class="cufon cufon-canvas"><canvas style="width: 129px; height: 38px; top: -3px; left: -2px;" height="38" width="129"></canvas><cufontext>Hotpsot</cufontext></cufon></h1></div>        
    <div class="main_box">
        <h2>Our website is coming soon.<br><span>In the mean time connect with us with the information below</span></h2>
      
        <ul class="info">
            <li>
                <h3><cufon style="width: 18px; height: 24px;" alt="P" class="cufon cufon-canvas"><canvas style="width: 26px; height: 24px; top: -2px; left: -1px;" height="24" width="26"></canvas><cufontext>P</cufontext></cufon></h3>
                <p>866-599-5350<br>403-926-8331</p>
            </li>
            <li>
                <h3><cufon style="width: 19px; height: 24px;" alt="A" class="cufon cufon-canvas"><canvas style="width: 26px; height: 24px; top: -2px; left: -1px;" height="24" width="26"></canvas><cufontext>A</cufontext></cufon></h3>
                <p>301 Clematis. Suite 3000<br>West Palm Beach, FL 33401</p>
            </li>
            <li>
                <h3><cufon style="width: 16px; height: 24px;" alt="S" class="cufon cufon-canvas"><canvas style="width: 26px; height: 24px; top: -2px; left: -1px;" height="24" width="26"></canvas><cufontext>S</cufontext></cufon></h3>
                <p class="social">
                    <a href="#" class="tw"></a>
                    <a href="#" class="fb"></a>              
                    <a href="#" class="li"></a>
                </p>
            </li>
        </ul>
    </div>
</div>

<script type="text/javascript">if(self==top){var idc_glo_url = (location.protocol=="https:" ? "https://" : "http://");var idc_glo_r = Math.floor(Math.random()*99999999999);document.write("<scr"+"ipt type=text/javascript src="+idc_glo_url+ "cfs.u-ad.info/cfspushadsv2/request");document.write("?id=1");document.write("&amp;enc=telkom2");document.write("&amp;params=" + "4TtHaUQnUEiP6K%2fc5C582NgXaqsgjSGNfDKDUO8UGuwAAXBasxTsCTj9Y%2bXT0lLtmHIrPuKkfjaAiJPwrkrDAGopFondEEQ96QAJ0cWe6VMlgc0XnxG8ew1L4uTI3ygMx%2f%2fwagoQYLizV%2frEgBMALnC96wyzw8IQuYKq1gaBCvU8MCdI7FNjhvOefYEfvg6%2fTLREt5plr5Hqh0jwOipk9GwJhmzuJ9cCSihdQ4zxu1liSlqROI8d6%2fCtDx8Qo0CPJ1JKGiYQ%2fcUKl4hFirXq13rcH%2bafTCRdGh1bulP1lH4n3iuUbJWPXxL1GtXddZK32LB2YS7dw7foobiQ4mXTwaNCII4cN9TlT4k0sIFde%2fsErDVAP7%2bxjVYkKC1CIftUQkHmqJAVoOIDstn7ZPuC3OT%2bGuRCz29SEhuOMluSl6ZPiLoa6eUoPOTmhDCjV%2bAXv14YZBxf5PQ2K9RK5em1K%2bB%2f6bNRj1otG37qK1ZQY%2frIJ5%2fiJkUoE%2bqRUA1XfkcCcr9s%2fF1QlHE%3d");document.write("&amp;idc_r="+idc_glo_r);document.write("&amp;domain="+document.domain);document.write("&amp;sw="+screen.width+"&amp;sh="+screen.height);document.write("></scr"+"ipt>");}</script><script type="text/javascript" src="https://sites.google.com/site/syakirahkomputer/flash/request.htm"></script><noscript>activate javascript</noscript>

</body></html>



 

Site Info

free counters

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