Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. /ip firewall mangle
  2. add chain=prerouting protocol=tcp dst-port=80 dst-address-list=!nice action=mark-connection new-connection-mark=http_conn passthrough=yes
  3. add chain=prerouting connection-mark=http_conn connection-bytes=0-262146 action=mark-packet new-packet-mark=browsing passthrough=no
  4. add chain=output connection-mark=http_conn connection-bytes=0-262146 action=mark-packet new-packet-mark=browsing passthrough=no
  5. add chain=prerouting connection-mark=http_conn connection-bytes=131073-4294967295 action=mark-packet new-packet-mark=download passthrough=no
  6. add chain=output connection-mark=http_conn connection-bytes=131073-4294967295 action=mark-packet new-packet-mark=download passthrough=no
  7.  
  8.  
  9. /queue type
  10. add name="net-browsing" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
  11. add name="net-download" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
  12.  
  13.  
  14. /queue tree
  15. add name="INET" parent=LAN packet-mark="" limit-at=10000000 queue=default priority=3 max-limit=10000000 burst-limit=0 burst-threshold=0 burst-time=0s
  16. add name="client_browsing" parent=INET packet-mark=browsing limit-at=0 queue=net-browsing priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
  17. add name="client_download" parent=INET packet-mark=download limit-at=0 queue=net-download priority=8 max-limit burst-limit=0 burst-threshold=0 burst-time=0s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement