Berbagi Konfig Mangel Mark-connection Game Mikrotik

Soefyan Syah
Soefyan Syah10 Oct 2020
Mangel GameMikrotikPort Game 2020Queue

Mangel mark-connection mikrotik untuk menandai paket game menggunakan port game agar koneksi game bisa di prioritaskan di queue.

<span>Photo by <a href="https://unsplash.com/@everywheresean?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Sean Do</a> on <a href="https://unsplash.com/s/photos/game?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span>
Photo by Sean Do on Unsplash
Mark-connection Port Game Mikrotik

Mikrotik tidak hanya familiar di kalangan penggiat ISP atau perusahan, tapi mikrotik juga banyak di gunakan di warnet warnet untuk menghendle jaringan warnet. Karena perangkat mikrotik memiliki harga yang berfariasi dari yang puluhan juga hingga ratusan ribu.

Nah kalau gitu kita langsung aja ke script mangel untuk mark paket game di mikrotik, di script ini saya langsung menangkap paket/mark-connection kemudian mark-connection di tandai mark-packet nya dan di beri prioritas di queue.

/ip firewall mangle
add action=mark-packet chain=prerouting comment=ICMP new-packet-mark=\
    paket-icmp passthrough=yes protocol=icmp
add action=mark-packet chain=forward new-packet-mark=paket-icmp passthrough=\
    yes protocol=icmp
add action=mark-packet chain=output new-packet-mark=paket-icmp passthrough=\
    yes protocol=icmp
add action=mark-packet chain=input new-packet-mark=paket-icmp passthrough=yes \
    protocol=icmp
add action=mark-packet chain=prerouting comment=DNS new-packet-mark=paket-dns \
    passthrough=yes port=53 protocol=udp
add action=mark-connection chain=prerouting comment=\
    "DOTA2 Steam Client Game client traffic" dst-port=27000-27015 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=\
    "DOTA2 Steam Client Typically Matchmaking and HLTV" dst-port=27015-27030 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=\
    "DOTA2 Steam Client Steam downloads" dst-port=27014-27050 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=\
    "DOTA2 Steam Client incoming, for In-Home Streaming" dst-port=27031,27036 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=\
    "DOTA2 Steam Client incoming, for In-Home Streaming" dst-port=27036,27037 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=\
    "DOTA2 DedicatedListenServer" dst-port=27015 new-connection-mark=\
    conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=\
    "DOTA2 Steamworks P2P Networking and Voice Chat" dst-port=3478,4379,4380 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment="DOTA2 Steam Client" \
    dst-port=4380 new-connection-mark=conn-Games1 passthrough=yes protocol=\
    udp
add action=mark-connection chain=prerouting comment=Point-Blank dst-port=\
    40000-40009 new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting dst-port=39190 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=LostSaga dst-port=\
    14000-14050 new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=14000-14050 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=DragonNest dst-port=\
    15100-15150 new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting dst-port=14300-14440 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=FifaOnline3 dst-port=\
    7770-7790 new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=16320-16340 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=IdolStreet dst-port=2001 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Dotta dst-port=6000-6152 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=CrossFire dst-port=10009 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=12060-12070 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=CrazyCard2 dst-port=9600 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Atlantica dst-port=4300 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment="Free Style" dst-port=\
    10001-10011,40000 new-connection-mark=conn-Games1 passthrough=yes \
    protocol=tcp
add action=mark-connection chain=prerouting dst-port=40040-40500,1293,1479 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment="Counter Strike Online" \
    dst-port=8001 new-connection-mark=conn-Games1 passthrough=yes protocol=\
    udp
add action=mark-connection chain=prerouting dst-port=36567,8001 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=KartRider dst-port=39311 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=39311 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=ModooMarble dst-port=\
    27019 new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting dst-port=28901-28920 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=SpecialForce2 dst-port=\
    30000-30030 new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting dst-port=27930-27940 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Dizzel dst-port=\
    28000-28020,7320-7350 new-connection-mark=conn-Games1 passthrough=yes \
    protocol=tcp
add action=mark-connection chain=prerouting dst-port=16320-16340 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=CrazyShooter dst-port=\
    7200,7400,7106,7999,47611,36567 new-connection-mark=conn-Games1 \
    passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=10087,7200 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=Garena-LOL dst-port=\
    2099,5299 new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=5000-5200 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=Garena-HON dst-port=11031 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=11235-11335 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=Garena-PB-Singapore \
    disabled=yes dst-port=39100,39110,39220,39190,49100 new-connection-mark=\
    conn-Games1 passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=yes dst-port=40000-40010 \
    new-connection-mark=conn-Games1 passthrough=yes protocol=udp
add action=mark-connection chain=prerouting disabled=yes dst-port=\
    9200,9100,30000 new-connection-mark=conn-Games1 passthrough=yes protocol=\
    tcp
add action=mark-packet chain=prerouting comment=Games1-Paket connection-mark=\
    conn-Games1 new-packet-mark=paket-Games1 passthrough=no

Untuk port game di atas mungkin ada beberapa port yang belum di inputkan dengan port game terbaru saat ini, jadi kemungkinan saya akan posting lagi untuk port game yang terbaru.

Soefyan Syah

Written by Soefyan Syah

Hey there! I hope you find this post useful. If you have anything to say, questions or feedback, send me a tweet or an email.