Gaming Priority Sample Config (.rsc file)


GAMING PORT SCRIPT SAMPLE

MIKROTIK PORT GAME MOBILE / GAME HP / GAME SMARTPHONE


/ip firewall mangle

add action=mark-packet chain=forward comment="Ping Priority" new-packet-mark=\

    icmp_pkts passthrough=no protocol=icmp

add action=mark-packet chain=input new-packet-mark=icmp_pkts passthrough=no \

    protocol=icmp

add action=mark-packet chain=prerouting new-packet-mark=icmp_pkts passthrough=\

    no protocol=icmp

add action=mark-packet chain=postrouting new-packet-mark=icmp_pkts passthrough=\

    no protocol=icmp

add action=mark-packet chain=output new-packet-mark=icmp_pkts passthrough=no \

    protocol=icmp

add action=mark-connection chain=prerouting comment="cross fire" dst-port=\

    16666,10008-10009,13006-13008 new-connection-mark="cross fire" passthrough=\

    yes protocol=tcp

add action=mark-connection chain=prerouting dst-port=12000-12080,13000-13080 \

    new-connection-mark="cross fire" passthrough=yes protocol=udp

add action=mark-connection chain=prerouting dst-port=9000-9999 \

    new-connection-mark=ROS passthrough=yes protocol=tcp

add action=mark-connection chain=prerouting comment="rules of survival" \

    dst-port=5501,5505-5599,9080,24000-24050 new-connection-mark=ROS \

    passthrough=yes protocol=udp

add action=mark-packet chain=prerouting connection-mark=ROS new-packet-mark=\

    ros-pkt passthrough=no

add action=mark-connection chain=prerouting comment=dota2 dst-port=\

    27015,27036,27037 new-connection-mark=dota2 passthrough=yes protocol=tcp

add action=mark-connection chain=prerouting dst-port=\

    4380,4379,3478,27000-28999,27001,27099 new-connection-mark=dota2 \

    passthrough=yes protocol=udp

add action=mark-packet chain=prerouting connection-mark=dota2 new-packet-mark=\

    dota2-pkt passthrough=no

add action=mark-connection chain=prerouting comment="league of legends " \

    dst-port=5052,10003 new-connection-mark=LOL passthrough=yes protocol=tcp

add action=mark-connection chain=prerouting dst-port=5001-5006,5054 \

    new-connection-mark=LOL passthrough=yes protocol=udp

add action=mark-packet chain=prerouting connection-mark=LOL new-packet-mark=\

    lol-pkt passthrough=no

add action=mark-connection chain=prerouting comment="call of duty" dst-port=\

    3013,18082,65010,65050 new-connection-mark="call of duty" passthrough=yes \

    protocol=tcp

add action=mark-connection chain=prerouting dst-port=7500-7650 \

    new-connection-mark="call of duty" passthrough=yes protocol=udp

add action=mark-packet chain=prerouting connection-mark="call of duty" \

    new-packet-mark=cod-pkt passthrough=no

add action=mark-packet chain=prerouting comment="cross fire" connection-mark=\

    "cross fire" new-packet-mark=crossfire-pkt passthrough=no

add action=mark-connection chain=prerouting comment="pubg mobile" dst-port=\

    10012,17500 new-connection-mark="pubg mobile" passthrough=yes protocol=tcp

add action=mark-connection chain=prerouting dst-port="10010,10013,10039,10096,10\

    491,10612,11455,12235,13748,13894,13972,20000-20002" new-connection-mark=\

    "pubg mobile" passthrough=yes protocol=udp

add action=mark-packet chain=prerouting connection-mark="pubg mobile" \

    new-packet-mark=pubg-pkt passthrough=no

add action=mark-connection chain=prerouting comment=others connection-bytes=\

    0-64000 new-connection-mark=others passthrough=yes protocol=udp

add action=mark-connection chain=prerouting comment=streaming dst-port=443 \

    new-connection-mark=streaming passthrough=yes protocol=udp

add action=mark-connection chain=prerouting comment=others connection-bytes=\

    0-64000 connection-mark=no-mark new-connection-mark=others passthrough=yes \

    protocol=tcp

add action=mark-packet chain=prerouting connection-mark=streaming \

    new-packet-mark="streaming -pkt" passthrough=no

add action=mark-connection chain=prerouting comment=downloading \

    connection-bytes=512000-0 dst-port=80,8080,443 new-connection-mark=\

    downloading passthrough=yes protocol=tcp

add action=mark-packet chain=prerouting connection-mark=downloading \

    new-packet-mark=dload-pkt passthrough=no

add action=mark-connection chain=prerouting comment=::browsing dst-port=\

    80,8080,443 new-connection-mark=browsing protocol=tcp

add action=mark-packet chain=prerouting connection-mark=browsing \

    new-packet-mark="browsing pkt" passthrough=no

add action=mark-packet chain=prerouting comment=others connection-mark=others \

    new-packet-mark=others-pkt passthrough=no