0% found this document useful (0 votes)
319 views

Script Game

This firewall configuration marks traffic from specific IP addresses and ports for routing to a VPN or with specific DSCP values. It marks traffic for games like Mobi-Legend, Free Fire, and PUBG by adding connection marks and routing marks to identify and prioritize game traffic for quality of service.

Uploaded by

BuanaNetPbun
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
319 views

Script Game

This firewall configuration marks traffic from specific IP addresses and ports for routing to a VPN or with specific DSCP values. It marks traffic for games like Mobi-Legend, Free Fire, and PUBG by adding connection marks and routing marks to identify and prioritize game traffic for quality of service.

Uploaded by

BuanaNetPbun
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

/ip firewall mangle

add action=accept chain=forward dst-address-list=localip src-address-list=\


localip
add action=accept chain=postrouting dst-address-list=localip src-address-list=\
localip
add action=accept chain=prerouting dst-address-list=localip src-address-list=\
localip
add action=mark-routing chain=prerouting comment=vpnegy dst-address-list=\
speedtest new-routing-mark=tovpnegy passthrough=yes
add action=mark-routing chain=output comment=vpnegy connection-mark=vpnegy \
new-routing-mark=tovpnegy passthrough=no
add action=mark-connection chain=input comment=vpnegy in-interface="ether 1" \
new-connection-mark=vpnegy passthrough=yes
add action=mark-connection chain=prerouting comment=ping-icmp \
new-connection-mark=icmp-conn passthrough=yes protocol=icmp src-address=\
10.10.3.0/24
add action=mark-routing chain=prerouting new-routing-mark=game-routing \
passthrough=yes protocol=icmp src-address=10.10.3.0/24
add action=mark-packet chain=prerouting connection-mark=icmp-conn \
new-packet-mark=icmp-p passthrough=yes
add action=change-dscp chain=prerouting new-dscp=0 packet-mark=icmp-p \
passthrough=yes
add action=mark-connection chain=prerouting comment=dns dst-port=53 \
new-connection-mark=dns-conn passthrough=yes protocol=udp src-address=\
10.10.3.0/24
add action=mark-routing chain=prerouting dst-port=53 new-routing-mark=\
game-routing passthrough=yes protocol=udp src-address=10.10.3.0/24
add action=mark-packet chain=prerouting connection-mark=dns-conn \
new-packet-mark=dns-p passthrough=yes
add action=change-dscp chain=prerouting new-dscp=0 packet-mark=dns-p \
passthrough=yes
add action=mark-routing chain=prerouting comment=Mobi-Legend dst-port=\
30100-30250 new-routing-mark=game-routing passthrough=yes protocol=tcp \
src-address=10.10.3.0/24
add action=mark-routing chain=prerouting dst-port=30091-30099 new-routing-mark=\
game-routing passthrough=yes protocol=udp src-address=10.10.3.0/24
add action=mark-routing chain=prerouting dst-port=30091-30099 new-routing-mark=\
game-routing passthrough=yes protocol=tcp src-address=10.10.3.0/24
add action=mark-routing chain=prerouting dst-port=5001-5300 new-routing-mark=\
game-routing passthrough=yes protocol=udp src-address=10.10.3.0/24
add action=mark-routing chain=prerouting dst-port=5001-5300 new-routing-mark=\
game-routing passthrough=yes protocol=tcp src-address=10.10.3.0/24
add action=mark-routing chain=prerouting dst-port=5500-5600 new-routing-mark=\
game-routing passthrough=yes protocol=tcp src-address=10.10.3.0/24
add action=mark-routing chain=prerouting dst-port=10000-10200 new-routing-mark=\
game-routing passthrough=yes protocol=udp src-address=10.10.3.0/24
add action=mark-connection chain=forward dst-port=30100-30250 \
new-connection-mark=mobi-conn passthrough=yes protocol=tcp src-address=\
10.10.3.0/24
add action=mark-connection chain=forward dst-port=30091-30099 \
new-connection-mark=mobi-conn passthrough=yes protocol=udp src-address=\
10.10.3.0/24
add action=mark-connection chain=forward dst-port=30091-30099 \
new-connection-mark=mobi-conn passthrough=yes protocol=tcp src-address=\
10.10.3.0/24
add action=mark-connection chain=forward dst-port=5001-5300 \
new-connection-mark=mobi-conn passthrough=yes protocol=udp src-address=\
10.10.3.0/24
add action=mark-connection chain=forward dst-port=5001-5300 \
new-connection-mark=mobi-conn passthrough=yes protocol=tcp src-address=\
10.10.3.0/24
add action=mark-connection chain=forward dst-port=5500-5600 \
new-connection-mark=mobi-conn passthrough=yes protocol=tcp src-address=\
10.10.3.0/24
add action=mark-connection chain=forward dst-port=10000-10200 \
new-connection-mark=mobi-conn passthrough=yes protocol=udp src-address=\
10.10.3.0/24
add action=mark-packet chain=forward connection-mark=mobi-conn new-packet-mark=\
mobi-packet passthrough=no
add action=mark-routing chain=prerouting comment=Free-Fire dst-port=5200-5360 \
new-routing-mark=game-routing passthrough=yes protocol=tcp src-address=\
192.168.40.0/24
add action=mark-routing chain=prerouting dst-port=10000-10100 new-routing-mark=\
game-routing passthrough=yes protocol=tcp src-address=192.168.7.0/24
add action=mark-routing chain=prerouting dst-port=14000-14100 new-routing-mark=\
game-routing passthrough=yes protocol=tcp src-address=192.168.7.0/24
add action=mark-routing chain=prerouting dst-port=39000-39700 new-routing-mark=\
game-routing passthrough=yes protocol=tcp src-address=192.168.7.0/24
add action=mark-routing chain=prerouting dst-port=39000-39700 new-routing-mark=\
game-routing passthrough=yes protocol=udp src-address=192.168.7.0/24
add action=mark-connection chain=forward dst-port=5200-5360 \
new-connection-mark=freefire-conn passthrough=yes protocol=tcp src-address=\
192.168.7.0/24
add action=mark-connection chain=forward dst-port=10000-10100 \
new-connection-mark=freefire-conn passthrough=yes protocol=tcp src-address=\
192.168.7.0/24
add action=mark-connection chain=forward dst-port=14000-14100 \
new-connection-mark=freefire-conn passthrough=yes protocol=tcp src-address=\
192.168.7.0/24
add action=mark-connection chain=forward dst-port=39000-39700 \
new-connection-mark=freefire-conn passthrough=yes protocol=tcp src-address=\
192.168.7.0/24
add action=mark-connection chain=forward dst-port=39000-39700 \
new-connection-mark=freefire-conn passthrough=yes protocol=udp src-address=\
192.168.7.0/24
add action=mark-packet chain=forward connection-mark=freefire-conn \
new-packet-mark=freefire-packet passthrough=no
add action=mark-routing chain=prerouting comment=PUBG dst-port=6500-7500 \
new-routing-mark=game-routing passthrough=yes protocol=udp src-address=\
10.10.3.0/24
add action=mark-routing chain=prerouting dst-port=16500-17500 new-routing-mark=\
game-routing passthrough=yes protocol=tcp src-address=10.10.3.0/24
add action=mark-connection chain=forward dst-port=6500-7500 \
new-connection-mark=pubg-conn passthrough=yes protocol=udp src-address=\
10.10.3.0/24
add action=mark-connection chain=forward dst-port=16500-17500 \
new-connection-mark=pubg-conn passthrough=yes protocol=tcp src-address=\
10.10.3.0/24
add action=mark-packet chain=forward connection-mark=pubg-conn new-packet-mark=\
pubg-packet passthrough=no

You might also like