In this article, I will show you how to block games using mikrotik router, the game includes PUBG, LOL, DOTA and so on.
Create Address List
Go to "IP" > "Firewall" > "Address Lists"
First you will name your IP Lan block. In this article I named it "Lan IP". My local network address is 192.168.1.0/24.
Create Raw Rule
Go to "IP" > "Firewall" > "Raw".
I will block "pubg mobile" first and you can easily do blocking with other games.
To block the pubg mobile I will create a list of IP addresses of pubg servers.
Next step I will create a rule. To do that you need a list like the one above, this list I put here, you can copy it:
TCP : 7889,10012,17500,18081
UDP : 8011,9030,10010-10650,11000-14000,17000,20000,20001,20002
TCP : 7006,14000,20561,39698,39779,39003
UDP : 7008,10000-10009,17000
TCP : 5500-5700,8001,30000-30300,9000-9010
UDP : 5000-5200,5500-5700,8001,30000-30300,9000-9010
TCP : 39190-39200,49001-49190
UDP : 40000-40010
TCP : 10001-10094
UDP : 10101-10201,10080-10110,17000-18000
GARENA LEAGUE OF LEGEND (LOL):
TCP : 2080-2099
UDP : 5100
TCP : 9100-9200,8230-8250,8110-8120,27000-28998
UDP : 27000-28998,39000
This is essentially how to get the IP address of the pubg servers, and memorize it on the mikrotik router.
You create two rules for TCP and UDP, and here is the list of PUBG server ip addresses that you will receive.
Every time someone play pubg mobile the server IP address will be stored here.
Create Mangle Rule
Go to "IP" > "Firewall" > "Mangle". Based on the list of available PUBG server ip addresses, you will block them. I will mark the connection of packets from the local area network to the PUBG server.
Chain : prerouting
Src.Address List : LAN-IP, Dst.Address List : PUBG_Mobile
Action : Mark Connection, New Connectiong Mark : PUBGM_Route
Create Filter Rule
Go to "IP" > "Firewall" >"Filter Rules"
Chain : forward, Connect Mark : PUBGM_Route
Action : drop
After creating the filter rule the pubg mobile will be blocked. For other games you do the same as above.