Sunday, 9 March 2014

Mangle Mikrotik Bandwidth

add add chain=prerouting action=mark-packet new-packet-mark=hit passthrough=yes dscp=12 
add add chain=prerouting action=mark-packet new-packet-mark=hit passthrough=no content=X-Cache:HIT 

 ;;; LB

add chain=prerouting action=mark-connection new-connection-mark=2mb1 passthrough=yes connection-state=new protocol=tcp 
in-interface=ether4 dst-port=80,8080 nth=3,3 

add chain=prerouting action=mark-routing new-routing-mark=2mb1 passthrough=no in-interface=ether4 connection-mark=2mb1 

add chain=prerouting action=mark-connection new-connection-mark=2mb2 passthrough=yes connection-state=new protocol=tcp 
in-interface=ether4 dst-port=80,8080 nth=3,2 

add chain=prerouting action=mark-routing new-routing-mark=2mb2 passthrough=no in-interface=ether4 connection-mark=2mb2 

add chain=prerouting action=mark-connection new-connection-mark=1mb passthrough=yes connection-state=new protocol=tcp in-interface=ether4 dst-port=80,8080 nth=3,1 

add chain=prerouting action=mark-routing new-routing-mark=1mb passthrough=no in-interface=ether4 connection-mark=1mb 

;;; "GAME ONLINE"

add chain=prerouting action=mark-connection new-connection-mark="GAME ONLINE" passthrough=yes protocol=tcp \
in-interface=ether2-lan dst-port=1818,2001,3010,4300,5105,5121,5126,5171,5340-5352,6000-6152,7777 

add chain=prerouting action=mark-connection new-connection-mark="GAME ONLINE" passthrough=yes protocol=tcp \
in-interface=ether2-lan dst-port=7341-7350,7451,8085,9600,9601-9602,9300,9376-9377,9400,9700,10001-10011 

add chain=prerouting action=mark-connection new-connection-mark="GAME ONLINE" passthrough=yes protocol=tcp in-interface=ether2-lan dst-port=10402,11011-11041,12011,12110,13008,13413,15000-15002,16402-16502,16666,18901-18909,19000 

add chain=prerouting action=mark-connection new-connection-mark="GAME ONLINE" passthrough=yes protocol=tcp in-interface=ether2-lan dst-port=19101,22100,27780,28012,29000,29200,39100,39110,39220,39190,40000,49100 

add chain=prerouting action=mark-connection new-connection-mark="GAME ONLINE" passthrough=yes protocol=tcp      in-interface=ether2-lan dst-port=14009-14010 

add chain=prerouting action=mark-connection new-connection-mark="GAME ONLINE" passthrough=yes protocol=udp      in-interface=ether2-lan dst-port=14009-14010 

add chain=prerouting action=mark-connection new-connection-mark="GAME ONLINE" passthrough=yes protocol=udp      in-interface=ether2-lan dst-port=1293,1479,6100-6152,7777-7977,8001,9401,9600-9602,12020-12080,30000,40000-40010 

add chain=prerouting action=mark-connection new-connection-mark="GAME ONLINE" passthrough=yes protocol=udp      in-interface=ether2-lan dst-port=42051-42052,11100-11125,11440-11460 

add chain=prerouting action=mark-packet new-packet-mark=online passthrough=no connection-mark="GAME ONLINE" 

;;; LOSTSAGA

add chain=prerouting action=mark-routing new-routing-mark=lost-saga passthrough=yes src-address=!192.168.88.1 src-address-list=lost-saga 

;;; PING

add chain=prerouting action=mark-connection new-connection-mark=icmp-con passthrough=yes protocol=icmp 

add chain=prerouting action=mark-packet new-packet-mark=icmp-pkt passthrough=no protocol=icmp connection-mark=icmp-con 

;;; UPLOAD
add chain=prerouting action=mark-connection new-connection-mark=con-up passthrough=yes 

;;; HIT
add chain=prerouting action=mark-packet new-packet-mark=hit passthrough=no connection-mark=con-up 

add chain=prerouting action=mark-packet new-packet-mark=hit passthrough=no connection-mark=con-up content=X-Cache: HIT 

add chain=forward action=mark-connection new-connection-mark=direct-con passthrough=yes 

add chain=forward action=mark-packet new-packet-mark=all-pkt passthrough=no protocol=tcp connection-mark=direct-con 

;;; FB
add chain=prerouting action=mark-connection new-connection-mark=fb_game passthrough=yes content=facebook.com 

add chain=prerouting action=mark-connection new-connection-mark=fb_game passthrough=yes content=fbcdn.net 

add chain=prerouting action=mark-connection new-connection-mark=fb_game passthrough=yes content=facebook.net 

add chain=prerouting action=mark-connection new-connection-mark=fb_game passthrough=yes content=zynga.com 

add chain=prerouting action=mark-connection new-connection-mark=fb_game passthrough=yes \
content=static.ak.connect.facebook.com 

add chain=prerouting action=mark-connection new-connection-mark=fb_game passthrough=yes \
content=statics.poker.static.zynga.com 

add chain=prerouting action=mark-connection new-connection-mark=fb_game passthrough=yes protocol=tcp dst-port=9339,843 

add chain=prerouting action=mark-packet new-packet-mark=gamefb passthrough=no connection-mark=fb_game 

add chain=prerouting action=mark-packet new-packet-mark=hit passthrough=yes protocol=tcp dst-address=192.168.3.0/24 \
src-address-list=IP dst-port=8291

No comments:

Post a Comment