user-avatar
Today is Friday
February 10, 2012

January 23, 2010

Script create mangle di mikrotik

by admin — Categories: Mikrotik, Tutorial — Tags: , , , , , , , , Leave a comment

Ini ada satu lagi tutorial yang ringan buat di pelajari, saya akan membahas masalah membuat mangle dengan memanfaatkan script yang ada di mikrotik. Jadi anda cuma tinggal edit yang di bawah ini, hehe :

:for e from=2 to=11 do={
/ip firewall mangle add chain=prerouting src-address=”192.168.224.$e” action=mark-connection new-connection-mark=”$e. indosatcon”
/ip firewall mangle add chain=prerouting connection-mark=”$e. indosatcon” protocol=!1 action=mark-packet new-packet-mark=”$e. indosatflow” passthrough=no
}

:for e from=2 to=20 do={
/queue tree add name=”STREAM-DOWN-.$e” parent=STREAM-DOWN packet-mark=”$e. indosatflow”
/queue tree add name=”STREAM-UP-. $e” parent=STREAM-UP packet-mark=”$e. indosatflow”
}

Nah itu yang menggunakan For, kalo yg di bawah ini yang lain lagi, tapi sama kq fungsinya :

{
:local “siejelex”
:set siejelex “PC0″
:local “ip”
:set ip 192.168.1.
:local “startip”
:set startip 1
:local “endip”
:set endip 200
/queue tree add name=”Donlot” parent=etherlan limit-at=0 priority=8 queue=default
/queue tree add name=”Upload” parent=etherwan limit-at=0 priority=8 queue=default
:for i from=$startip to=$endip do={
:if ($i < 10) do={:set siejelex “PC0″} else={:set siejelex “PC”}
/ip firewall mangle add chain=prerouting src-address=($ip . $i) action=mark-connection new-connection-mark=(“mc” . $i) passthrough=yes
/ip firewall mangle add chain=prerouting protocol=!1 connection-mark=(“mc” . $i) action=mark-packet new-packet-mark=(“mp” . $i) passthrough=no
/queue tree add name=($siejelex. $i. “Down”) parent=”Donlot” packet-mark=(“mp” . $i) limit-at=0 max-limit=0 queue=default priority=8
/queue tree add name=($siejelex. $i. “Up”) parent=”Upload” packet-mark=(“mp” . $i) limit-at=0 max-limit=0 queue=default priority=8
}
}

Nah anda tinggal pelajari dan sesuaikan dengan yang anda butuhkan. Jika anda butuh bantuan silahkan hubungi saja saya. Selamat mencoba :-D

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree

© 2012 SIEJELEX All rights reserved - Wallow theme v0.46.4 by ([][]) TwoBeers - Powered by WordPress - Have fun!