Labels
Mikrotik
Tuesday, June 14, 2016
11.Mikrotik Unlimited Browsing Limited Download (Using Mangle Rule)
Simple Diagram:
Suppose we have Ether1 is WAN interface.
Here the Script:
/ip firewall mangle add action=mark-connection chain=prerouting connection-bytes=262146-4294967295 in-interface=ether1 new-connection-mark=download protocol=tcp src-port=21,80 add action=mark-packet chain=prerouting connection-mark=download in-interface=ether1 new-packet-mark=download passthrough=no /queue type add kind=pcq name=shape pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=128k pcq-src-address6-mask=64 /queue tree add max-limit=128k name=Download packet-mark=download parent=global queue=shape
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment