/ ip firewall mangle
add chain=prerouting src-address=192.168.65.152 dst-address-list=nice \
action=mark-connection new-connection-mark=152.iix.c comment="152 IIX" \
disabled=no
Script untuk connection-mark untuk IIX
:for x from=2 to=254 do={ /ip firewall mangle add action=mark-connection chain=prerouting comment="$x IIX" disabled=no dst-address-list=nice new-connection-mark="$x.iix.c" src-address="192.168.65.$x" }
----------------------------------------------------------------------------
add chain=prerouting connection-mark=152.iix.c action=mark-packet \
new-packet-mark=152.iix.p comment="" disabled=no
Script untuk mark-packet IIX
:for x from=2 to=254 do={ /ip firewall mangle add action=mark-packet chain=prerouting comment="$x IIX" connection-mark="$x.iix.c" disabled=no new-packet-mark="$x.iix.p"}
------------------------------------------------------------------------------
add chain=prerouting src-address=192.168.1.152 src-address-list=nat-addr \
dst-address-list=!nice action=mark-connection \
new-connection-mark=152.int.c comment="152 INT" disabled=no
Script untuk connection-mark untuk IX
:for x from=2 to=254 do={ /ip firewall mangle add action=mark-connection chain=prerouting comment="$x INT" disabled=no dst-address-list=!nice new-connection-mark="$x.int.c" src-address="192.168.65.$x" }
-----------------------------------------------------------------------------
add chain=prerouting connection-mark=152.int.c action=mark-packet \
new-packet-mark=152.int.p comment="" disabled=no
Script untuk mark-packet IX
:for x from=2 to=254 do={ /ip firewall mangle add action=mark-packet chain=prerouting comment="$x INT" connection-mark="$x.int.c" disabled=no new-packet-mark="$x.int.p" }
#####################################################################
/ queue type
add name="pcq-up" kind=pcq pcq-rate=0 pcq-limit=50 \
pcq-classifier=src-address,src-port pcq-total-limit=2000
add name="pcq-down" kind=pcq pcq-rate=0 pcq-limit=50 \
pcq-classifier=dst-address,dst-port pcq-total-limit=2000
#######################################################################
/ queue tree
add name="net iix-dw" parent=bridge65 packet-mark="" limit-at=0 queue=pcq-down \
priority=8 max-limit=2000000 burst-limit=0 burst-threshold=0 burst-time=0s \
disabled=no
add name="net iix-up" parent=ether1 packet-mark="" limit-at=0 queue=pcq-up \
priority=8 max-limit=1000000 burst-limit=0 burst-threshold=0 burst-time=0s \
disabled=no
add name="net int-dw" parent=bridge65 packet-mark="" limit-at=0 queue=pcq-down \
priority=8 max-limit=2000000 burst-limit=0 burst-threshold=0 burst-time=0s \
disabled=no
add name="net int-up" parent=ether1 packet-mark="" limit-at=0 queue=pcq-up \
priority=8 max-limit=1000000 burst-limit=0 burst-threshold=0 burst-time=0s \
disabled=no
add chain=prerouting src-address=192.168.65.152 dst-address-list=nice \
action=mark-connection new-connection-mark=152.iix.c comment="152 IIX" \
disabled=no
Script untuk connection-mark untuk IIX
:for x from=2 to=254 do={ /ip firewall mangle add action=mark-connection chain=prerouting comment="$x IIX" disabled=no dst-address-list=nice new-connection-mark="$x.iix.c" src-address="192.168.65.$x" }
----------------------------------------------------------------------------
add chain=prerouting connection-mark=152.iix.c action=mark-packet \
new-packet-mark=152.iix.p comment="" disabled=no
Script untuk mark-packet IIX
:for x from=2 to=254 do={ /ip firewall mangle add action=mark-packet chain=prerouting comment="$x IIX" connection-mark="$x.iix.c" disabled=no new-packet-mark="$x.iix.p"}
------------------------------------------------------------------------------
add chain=prerouting src-address=192.168.1.152 src-address-list=nat-addr \
dst-address-list=!nice action=mark-connection \
new-connection-mark=152.int.c comment="152 INT" disabled=no
Script untuk connection-mark untuk IX
:for x from=2 to=254 do={ /ip firewall mangle add action=mark-connection chain=prerouting comment="$x INT" disabled=no dst-address-list=!nice new-connection-mark="$x.int.c" src-address="192.168.65.$x" }
-----------------------------------------------------------------------------
add chain=prerouting connection-mark=152.int.c action=mark-packet \
new-packet-mark=152.int.p comment="" disabled=no
Script untuk mark-packet IX
:for x from=2 to=254 do={ /ip firewall mangle add action=mark-packet chain=prerouting comment="$x INT" connection-mark="$x.int.c" disabled=no new-packet-mark="$x.int.p" }
#####################################################################
/ queue type
add name="pcq-up" kind=pcq pcq-rate=0 pcq-limit=50 \
pcq-classifier=src-address,src-port pcq-total-limit=2000
add name="pcq-down" kind=pcq pcq-rate=0 pcq-limit=50 \
pcq-classifier=dst-address,dst-port pcq-total-limit=2000
#######################################################################
/ queue tree
add name="net iix-dw" parent=bridge65 packet-mark="" limit-at=0 queue=pcq-down \
priority=8 max-limit=2000000 burst-limit=0 burst-threshold=0 burst-time=0s \
disabled=no
add name="net iix-up" parent=ether1 packet-mark="" limit-at=0 queue=pcq-up \
priority=8 max-limit=1000000 burst-limit=0 burst-threshold=0 burst-time=0s \
disabled=no
add name="net int-dw" parent=bridge65 packet-mark="" limit-at=0 queue=pcq-down \
priority=8 max-limit=2000000 burst-limit=0 burst-threshold=0 burst-time=0s \
disabled=no
add name="net int-up" parent=ether1 packet-mark="" limit-at=0 queue=pcq-up \
priority=8 max-limit=1000000 burst-limit=0 burst-threshold=0 burst-time=0s \
disabled=no
#######################################################################
/ queue tree
add name="152 IIX Down" parent="net iix-dw" packet-mark=152.iix.p \
limit-at=512000 queue=default priority=7 max-limit=2000000 burst-limit=0 \
burst-threshold=0 burst-time=0s disabled=noScript untuk queue tree parent Download IIX
:for x from=2 to=254 do={/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=512000 max-limit=2000000 name="$x IIX Down" packet-mark="$x.iix.p" parent="net iix-dw" priority=7 queue=default }
---------------------------------------------------------------------------------
/ queue tree
add name="152 IIX Up" parent="net iix-up" packet-mark=152.iix.p \
limit-at=512000 queue=default priority=7 max-limit=1000000 burst-limit=0 \
burst-threshold=0 burst-time=0s disabled=no
Script untuk queue tree parent Upload IIX
:for x from=2 to=254 do={/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=512000 max-limit=1000000 name="$x IIX Up" packet-mark="$x.iix.p" parent="net iix-up" priority=7 queue=default }
---------------------------------------------------------------------------------
/ queue tree
add name="152 INT Down" parent="net int-dw" packet-mark=152.int.p \
limit-at=512000 queue=default priority=7 max-limit=2000000 burst-limit=0 \
burst-threshold=0 burst-time=0s disabled=no
Script untuk queue tree parent Download Internasional
:for x from=2 to=254 do={/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=512000 max-limit=2000000 name="$x INT Down" packet-mark="$x.int.p" parent="net int-dw" priority=7 queue=default }
---------------------------------------------------------------------------------
/ queue tree
add name="152 INT Up" parent="net int-up" packet-mark=152.int.p \
limit-at=512000 queue=default priority=7 max-limit=1000000 burst-limit=0 \
burst-threshold=0 burst-time=0s disabled=no
Script untuk queue tree parent Upload Internasional
:for x from=2 to=254 do={/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=512000 max-limit=1000000 name="$x INT Up" packet-mark="$x.int.p" parent="net int-up" priority=7 queue=default }
/ queue tree
add name="152 IIX Down" parent="net iix-dw" packet-mark=152.iix.p \
limit-at=512000 queue=default priority=7 max-limit=2000000 burst-limit=0 \
burst-threshold=0 burst-time=0s disabled=noScript untuk queue tree parent Download IIX
:for x from=2 to=254 do={/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=512000 max-limit=2000000 name="$x IIX Down" packet-mark="$x.iix.p" parent="net iix-dw" priority=7 queue=default }
---------------------------------------------------------------------------------
/ queue tree
add name="152 IIX Up" parent="net iix-up" packet-mark=152.iix.p \
limit-at=512000 queue=default priority=7 max-limit=1000000 burst-limit=0 \
burst-threshold=0 burst-time=0s disabled=no
Script untuk queue tree parent Upload IIX
:for x from=2 to=254 do={/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=512000 max-limit=1000000 name="$x IIX Up" packet-mark="$x.iix.p" parent="net iix-up" priority=7 queue=default }
---------------------------------------------------------------------------------
/ queue tree
add name="152 INT Down" parent="net int-dw" packet-mark=152.int.p \
limit-at=512000 queue=default priority=7 max-limit=2000000 burst-limit=0 \
burst-threshold=0 burst-time=0s disabled=no
Script untuk queue tree parent Download Internasional
:for x from=2 to=254 do={/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=512000 max-limit=2000000 name="$x INT Down" packet-mark="$x.int.p" parent="net int-dw" priority=7 queue=default }
---------------------------------------------------------------------------------
/ queue tree
add name="152 INT Up" parent="net int-up" packet-mark=152.int.p \
limit-at=512000 queue=default priority=7 max-limit=1000000 burst-limit=0 \
burst-threshold=0 burst-time=0s disabled=no
Script untuk queue tree parent Upload Internasional
:for x from=2 to=254 do={/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=512000 max-limit=1000000 name="$x INT Up" packet-mark="$x.int.p" parent="net int-up" priority=7 queue=default }
0 Response to "Script Optimize membagi bandwidth iix & internasional di Mikrotik"
Post a Comment