Blocking PUBG Mobile by using firewall raw rules and DNS manipulation can provide a more effective block on traffic, as raw rules are processed early in the packet processing chain. Using raw rules combined with DNS blackholing is a robust method to achieve this.
Step-by-Step Guide to Block PUBG Mobile using Firewall Raw Rules and DNS
Since PUBG Mobile may use several domains and IP ranges, here's how you can block known domains and redirect DNS queries to invalid IPs.
1. DNS Redirection and Static Entries
First, ensure all DNS queries go through your MikroTik router to manipulate DNS responses.
- Redirect DNS Traffic to Local DNS:
/ip firewall nat
add chain=dstnat action=redirect to-ports=53 protocol=udp dst-port=53 comment="Redirect UDP DNS"
add chain=dstnat action=redirect to-ports=53 protocol=tcp dst-port=53 comment="Redirect TCP DNS"
- Static DNS Entries to Blackhole PUBG Mobile Domains:
Add known PUBG Mobile-related domains to your DNS settings, redirecting them to an invalid IP address such as 127.0.0.1.
/ip dns static
add name="pubgmobile.com" address=127.0.0.1
add name="igamecj.com" address=127.0.0.1
add name="proximabeta.com" address=127.0.0.1
add name="dynamodb.pughb.com" address=127.0.0.1
add name="tencentgames.helpshift.com" address=127.0.0.1
add name="reportlog.tmgp.qq.com" address=127.0.0.1
- Block External DNS Requests:
Ensure that devices cannot bypass your DNS settings by accessing external DNS servers.
/ip firewall filter
add chain=forward action=drop protocol=tcp dst-port=53 comment="Block external TCP DNS requests"
add chain=forward action=drop protocol=udp dst-port=53 comment="Block external UDP DNS requests"
2. Create Firewall Address Lists for PUBG Mobile
Identify and add known IP ranges used by PUBG Mobile to your address lists.
/ip firewall address-list
add address=47.252.0.0/16 comment="PUBG Mobile" list=pubg
add address=47.74.0.0/16 comment="PUBG Mobile" list=pubg
add address=39.98.0.0/16 comment="PUBG Mobile" list=pubg
add address=45.124.0.0/16 comment="PUBG Mobile" list=pubg
add address=101.32.0.0/16 comment="PUBG Mobile" list=pubg
Regularly update this list based on monitoring results, as game server IP ranges can frequently change.
3. Use Firewall Raw Rules to Block Traffic to/from PUBG Mobile
Using raw rules can help to block traffic more effectively and with less load on the router.
/ip firewall raw
add action=drop chain=prerouting src-address-list=pubg comment="Block outbound PUBG Mobile traffic"
add action=drop chain=prerouting dst-address-list=pubg comment="Block inbound PUBG Mobile traffic"
Combined Example Script
Here is a combined script that incorporates both DNS redirection and static entries, external DNS blocking, address lists, and raw firewall rules.
# Redirect DNS traffic to local DNS
/ip firewall nat
add chain=dstnat action=redirect to-ports=53 protocol=udp dst-port=53 comment="Redirect UDP DNS"
add chain=dstnat action=redirect to-ports=53 protocol=tcp dst-port=53 comment="Redirect TCP DNS"
# Set static DNS entries for PUBG Mobile
/ip dns static
add name="pubgmobile.com" address=127.0.0.1
add name="igamecj.com" address=127.0.0.1
add name="proximabeta.com" address=127.0.0.1
add name="dynamodb.pughb.com" address=127.0.0.1
add name="tencentgames.helpshift.com" address=127.0.0.1
add name="reportlog.tmgp.qq.com" address=127.0.0.1
# Block external DNS servers from being used
/ip firewall filter
add chain=forward action=drop protocol=tcp dst-port=53 comment="Block external TCP DNS requests"
add chain=forward action=drop protocol=udp dst-port=53 comment="Block external UDP DNS requests"
# Create address lists for PUBG Mobile IP ranges
/ip firewall address-list
add address=47.252.0.0/16 comment="PUBG Mobile" list=pubg
add address=47.74.0.0/16 comment="PUBG Mobile" list=pubg
add address=39.98.0.0/16 comment="PUBG Mobile" list=pubg
add address=45.124.0.0/16 comment="PUBG Mobile" list=pubg
add address=101.32.0.0/16 comment="PUBG Mobile" list=pubg
# Use raw rules to block PUBG Mobile traffic
/ip firewall raw
add action=drop chain=prerouting src-address-list=pubg comment="Block outbound PUBG Mobile traffic"
add action=drop chain=prerouting dst-address-list=pubg comment="Block inbound PUBG Mobile traffic"
Maintenance and Monitoring
-
Regular Updates:
- PUBG Mobile’s IP ranges and domains can change frequently. Regularly update your address lists and DNS static entries.
-
Monitoring:
- Use network monitoring tools to identify any new IP addresses or domains used by PUBG Mobile that need to be blocked.
-
Testing:
- After configuring these rules, test by attempting to connect to PUBG Mobile to ensure the block is effective.
-
Performance:
- Monitor the performance of your MikroTik router after applying these rules to ensure there is no degradation in network performance.
By following these steps, you should be able to effectively block PUBG Mobile on your MikroTik router. Regular updates and monitoring are essential to maintain an effective block as the server addresses and domains used by the game may change.