Cara Memisah Download Browsing Dan Game dengan Mikrotik dapat dibedakan berdasarkan protokol dan port yang digunakan. Fitur yang dapat digunakan untuk kebutuhan tersebut adalah mangle, di mana mangle dapat digunakan untuk menandai (marking) paket data berdasarkan port, protokol, src dan dst address, serta parameter lain yang dibutuhkan. Dengan memisahkan trafik ini, Anda dapat mengoptimalkan kinerja jaringan sesuai dengan kebutuhan, memastikan game memiliki prioritas yang lebih tinggi dibandingkan aktivitas lainnya.
Berikut Contoh Mangle Cara Memisah Download, Browsing, dan Game Pada Mikrotik
GAME
Contoh untuk Point Blank, game lain sesuaikan saja port atau IP-nya.
1 2 3 4 |
chain=game action=mark-connection new-connection-mark=Game passthrough=yes protocol=tcp dst-address=203.89.146.0/23 dst-port=39190 comment="Point Blank" chain=game action=mark-connection new-connection-mark=Game passthrough=yes protocol=udp dst-address=203.89.146.0/23 dst-port=40000-40010 chain=game action=mark-packet new-packet-mark=Game_pkt passthrough=no connection-mark=Game chain=prerouting action=jump jump-target=game |
Pada tahun 2024, game seperti Fortnite, Valorant, dan Call of Duty: Warzone menjadi sangat populer. Berikut adalah contoh untuk memisahkan trafik game-game tersebut:
1 2 3 4 5 |
chain=game action=mark-connection new-connection-mark=Game passthrough=yes protocol=tcp dst-address=198.91.132.0/24 dst-port=7777 comment="Fortnite" chain=game action=mark-connection new-connection-mark=Game passthrough=yes protocol=udp dst-address=192.240.155.0/24 dst-port=30000-30010 comment="Valorant" chain=game action=mark-connection new-connection-mark=Game passthrough=yes protocol=tcp dst-address=192.229.220.0/24 dst-port=3074 comment="Call of Duty: Warzone" chain=game action=mark-packet new-packet-mark=Game_pkt passthrough=no connection-mark=Game chain=prerouting action=jump jump-target=game |
POKER (Facebook)
1 2 3 |
chain=forward action=mark-connection new-connection-mark=Poker_con passthrough=yes protocol=tcp dst-address-list=LOAD POKER comment="POKER" chain=forward action=mark-connection new-connection-mark=Poker_con passthrough=yes protocol=tcp content=statics.poker.static.zynga.com chain=forward action=mark-packet new-packet-mark=Poker passthrough=no connection-mark=Poker_con |
BROWSING
1 2 |
chain=forward action=mark-connection new-connection-mark=http passthrough=yes protocol=tcp in-interface=WAN out-interface=Lan packet-mark=!Game_pkt connection-mark=!Game connection-bytes=-262146 comment="BROWSE" chain=forward action=mark-packet new-packet-mark=http_pkt passthrough=no protocol=tcp connection-mark=http |
LIMIT DOWNLOAD
1 2 |
chain=forward action=mark-connection new-connection-mark=Download passthrough=yes protocol=tcp in-interface=WAN out-interface=Lan packet-mark=!Game_pkt connection-mark=!Poker_con connection bytes=262146-4294967295 comment="LIMIT DOWNLOAD" chain=forward action=mark-packet new-packet-mark=Download_pkt passthrough=no packet-mark=!Game_pkt connection-mark=Download |
UPLOAD
1 |
chain=prerouting action=mark-packet new-packet-mark=Upload passthrough=no protocol=tcp src-address=192.168.0.0/24 in-interface=Lan packet-mark=!icmp_pkt comment="UPLOAD" |
QUEUE
1 2 3 4 5 |
queue type name="Download" kind=pcq pcq-rate=256000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000 name="Http" kind=pcq pcq-rate=1M pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000 name="Game" kind=pcq pcq-rate= pcq-limit=50 pcq-classifier=src-address,dst-address,src-port,dst-port pcq-total-limit=2000 name="Upload" kind=pcq pcq-rate= pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000 |
Queue Tree
1 2 3 4 5 6 7 |
name="Main Browse" parent=Lan limit-at= priority=8 max-limit=1M burst-limit= burst-threshold= burst-time=0s name="Browse" parent=Main Browse packet-mark=http_pkt limit-at= queue=Http priority=8 max-limit=1M burst-limit= burst-threshold= burst-time=0s name="Game" parent=global-total packet-mark=Game_pkt limit-at= queue=Game priority=1 max-limit= burst-limit= burst-threshold= burst-time=0s name="Poker" parent=global-out packet-mark=Poker limit-at= queue=Game priority=3 max-limit= burst-limit= burst-threshold= burst-time=0s name="Download" parent=global-out packet-mark=Download_pkt limit-at= queue=Download priority=8 max-limit=256k burst-limit= burst-threshold= burst-time=0s name="Main Upload" parent=global-in limit-at= priority=8 max-limit=256k burst-limit= burst-threshold= burst-time=0s name="Upload" parent=Main Upload packet-mark=Upload limit-at= queue=Upload priority=8 max-limit= burst-limit= burst-threshold= burst-time=0s |
Test Running di RB750 OS ver.5.12
ISP= SAPIDI EXECUTIVE 512 – 2M
Hasil Memisah Download, Browsing, dan Game dengan Mikrotik
BROWSING 1Mbs bagi rata sekampung (baca: satu jaringan)
DOWNLOAD 256Kbps bagi rata sekampung
GAME seadanya bandwidth sesuai kebutuhan sekampung
POKER seadanya bandwidth sesuai kebutuhan sekampung
UPLOAD seadanya bandwidth bagi rata sesuai kebutuhan sekampung
Untuk informasi lebih lanjut mengenai port game terbaru, kunjungi daftar port game online untuk Mikrotik.