;;; mark packet for UpLoad untuk Client No.10
chain=postrouting action=mark-packet new-packet-mark=client10-packet-upload
passthrough=yes src-address=192.168.88.10 out-interface=eth1-gateway
;;; mark packet for DownLoad untuk Client No.10
chain=postrouting action=mark-packet new-packet-mark=client10-packet-download
passthrough=yes dst-address=192.168.88.10 out-interface=eth4-local-master
Script :
:for i from 101 to 125 do={
/ip firewall mangle add chain=postrouting action=mark-packet new-packet-mark=("client" . $i . "-packet-upload") passthrough=yes src-address=("192.168.88." . $i . "") out-interface=eth1-gateway comment=("mark packet-upload client-" . $i . "")
/ip firewall mangle add chain=postrouting action=mark-packet new-packet-mark=("client" . $i . "-packet-download") passthrough=yes dst-address=("192.168.88." . $i . "") out-interface=eth2-local-master comment=("mark packet-download client-" . $i . "")}
/queue tree add name=parent-download parent=global mai-limit=5M
:for i from 101 to 125 do={/queue tree add name=("q-download-" . $i . "") parent=parent-download packet-mark=("client" . $i . "-packet-download") limit-at=128k mai-limit=2M}
/queue tree add name=parent-upload parent=global mai-limit=2M
:for i from 101 to 125 do={/queue tree add name=("q-upload-" . $i . "") parent=parent-upload packet-mark=(""client" . $i . "-packet-upload") limit-at=128k mai-limit=1M}
- Blogger Comment
- Facebook Comment
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment