🚫

Blocking Online Game Traffic with Mikrotik

Feb 4, 2025

How to Block Online Game Traffic Using Mikrotik

Introduction

  • Purpose: Discuss how to block online game traffic in networks (offices, schools).
  • Target Audience: Network admins who want to restrict online gaming during work/class hours.
  • Popular Online Games: PUBG Mobile, Mobile Legends, Free Fire, etc.

Preparation Steps

  • Network Topology: Using hAP-AC-Lite as the gateway router.
    • ether1: Connected to the internet.
    • Wireless interface: Distributes internet to clients.
  • Ensure the router (hAP-AC-Lite) has basic configuration settings in place.
  • Configuration Details: Link to previous video for basic setup in description.

Monitoring Online Traffic Using Torch

  • Use Mikrotik’s Torch tool to monitor online game connections.
  • Purpose of Torch: Identify game protocols, IP addresses, and ports used by online games.
  • Example: Monitoring Mobile Legends game traffic.
    • Observed protocols: TCP (ports 5222, 30102) and UDP (port 9992).

Firewall Filter Configuration

Steps to Add Firewall Rules

  1. Access Firewall Filter: Go to IP > Firewall.
  2. Add New Rule:
    • Chain Parameters: Use Chain Forward (since traffic goes through the router).
    • Protocol: Start with TCP first.
    • Ports: Specify ports (e.g., 30021, 5222, 30102).
    • In. Interface: Set to Bridge1 (where local network traffic comes from).
    • Time Parameter: Define operating hours (e.g., 08:00 to 16:00 on weekdays).
    • Action: Set to Drop to reject packets based on the specified parameters.
  3. Add Second Rule for UDP:
    • Same steps, but specify UDP ports (e.g., 61577, 61388, 9992).
    • Same In. Interface and Time Parameter as TCP rule.

Testing the Configuration

  • Close Mobile Legends application on the mobile device.
  • Attempt to re-enter the game while monitoring the firewall rules in Winbox.
  • Successful blocking confirmed if the game does not load.

Conclusion

  • Successfully blocked Mobile Legends and similar games using Mikrotik firewall filter.
  • For further learning, consider registering for Mikrotik training.
  • Check links in the description for training schedules and product purchases.

Call to Action

  • Encourage viewers to like, comment, subscribe, and share the video for broader reach.