Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. # Classify traffic types
  2. /ip firewall mangle
  3. add action=mark-connection chain=forward disabled=no new-connection-mark=LAN src-address=192.168.5.0/24
  4. add action=mark-connection chain=forward disabled=no new-connection-mark=crashplan src-address=192.168.5.9
  5. add action=mark-connection chain=forward disabled=no new-connection-mark=crashplan dst-address=38.81.66.0/23
  6. add action=mark-connection chain=forward disabled=no new-connection-mark=crashplan dst-address=162.222.40.0/21
  7. add action=mark-connection chain=forward disabled=no new-connection-mark=htpc4 src-address=192.168.5.129
  8. add action=mark-connection chain=forward disabled=no new-connection-mark=plex src-address=192.168.5.3
  9. add action=mark-connection chain=forward disabled=no new-connection-mark=subsonic src-address=192.168.5.4
  10. add action=mark-connection chain=forward disabled=no new-connection-mark=skype-jsmac src-address=192.168.5.160-192.168.5.161 protocol=udp src-port=31522
  11.  
  12. add action=mark-packet chain=forward protocol=tcp tcp-flags=ack packet-size=0-123 new-packet-mark=tcp-ack-packet passthrough=no
  13. add action=mark-packet chain=forward connection-mark=LAN disabled=no new-packet-mark=LAN passthrough=no
  14. add action=mark-packet chain=forward connection-mark=crashplan disabled=no new-packet-mark=crashplan passthrough=no
  15. add action=mark-packet chain=forward connection-mark=htpc4 disabled=no new-packet-mark=htpc4 passthrough=no
  16. add action=mark-packet chain=forward connection-mark=plex disabled=no new-packet-mark=plex passthrough=no
  17. add action=mark-packet chain=forward connection-mark=subsonic disabled=no new-packet-mark=subsonic passthrough=no
  18. add action=mark-packet chain=forward connection-mark=skype-jsmac disabled=no new-packet-mark=skype-jsmac passthrough=no
  19.  
  20. # Specify traffic limits and priorities
  21. /queue tree
  22. add name="overall" parent=ether1-gateway packet-mark="" limit-at=0 queue=default priority=8 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s
  23.  
  24. add name="skype-jsmac" parent=overall packet-mark=skype-jsmac limit-at=254k queue=default priority=2 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s
  25. add name="plex" parent=overall packet-mark=plex limit-at=3M queue=default priority=3 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s
  26. add name="subsonic" parent=overall packet-mark=subsonic limit-at=512k queue=default priority=4 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s
  27. add name="Other" parent=overall packet-mark=LAN limit-at=1M queue=default priority=5 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s
  28. add name="htpc4" parent=overall packet-mark=htpc4 limit-at=1k queue=default priority=7 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s
  29. add name="crashplan" parent=overall packet-mark=crashplan limit-at=1k queue=default priority=8 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s
  30. add name="ACK" parent=overall packet-mark=tcp-ack-packet limit-at=256k queue=default priority=1 max-limit=5M burst-limit=0 burst-threshold=0 burst-time=0s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement