0% found this document useful (0 votes)
56 views14 pages

Routing 2isp

The document defines traffic shaping queues and bandwidth limits for different types of traffic on a network terminal. It creates queues for total download traffic, total upload traffic, hotspot download traffic, hotspot upload traffic, and client home download and upload traffic. It also defines interfaces, firewall address lists for private, telco, and social media addresses, and a scheduler to remove user configurations on startup.

Uploaded by

KangGuru GoBlog
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views14 pages

Routing 2isp

The document defines traffic shaping queues and bandwidth limits for different types of traffic on a network terminal. It creates queues for total download traffic, total upload traffic, hotspot download traffic, hotspot upload traffic, and client home download and upload traffic. It also defines interfaces, firewall address lists for private, telco, and social media addresses, and a scheduler to remove user configurations on startup.

Uploaded by

KangGuru GoBlog
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

TEMPEL DI TERMINAL

/queue tree
add max-limit=50M name="1.TOTAL TRAFFIC DOWN" parent=global queue=pcq-download-default
add max-limit=10M name="2.TOTAL TRAFFIC UPLOAD" parent=global queue=pcq-upload-default
add max-limit=40M name="4.HOTSPOT DOWN" parent="1.TOTAL TRAFFIC DOWN" queue=pcq-download-default
add max-limit=8M name="5.HOTSPOT UP" parent="2.TOTAL TRAFFIC UPLOAD" queue=pcq-upload-default
add max-limit=10M name="7.CLIENT RUMAHAN DOWN" parent="1.TOTAL TRAFFIC DOWN" queue=pcq-download-default
add max-limit=2M name="8.CLIENT RUMAHAN UPLOAD" parent="2.TOTAL TRAFFIC UPLOAD" queue=pcq-upload-default

/interface list
add name=INTERNET

/interface list member


add interface=ether1 list=INTERNET
add interface=ether2 list=INTERNET

/system scheduler
add name=deluser-startup on-event="/ip firewall mangle remove [find where comment=\"user_hotspot\"]\r\n/queu tree remove [find where
comment=\"user_hotspot\"]" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup

/ip firewall address-list


add address=0.0.0.0/8 list=private-lokal
add address=10.0.0.0/8 list=private-lokal
add address=100.64.0.0/10 list=private-lokal
add address=127.0.0.0/8 list=private-lokal
add address=169.254.0.0/16 list=private-lokal
add address=172.16.0.0/12 list=private-lokal
add address=192.0.0.0/24 list=private-lokal
add address=192.0.2.0/24 list=private-lokal
add address=192.168.0.0/16 list=private-lokal
add address=198.18.0.0/15 list=private-lokal
add address=198.51.100.0/24 list=private-lokal
add address=203.0.113.0/24 list=private-lokal
add address=224.0.0.0/3 list=private-lokal
add address=36.64.0.0/16 list=ggc-telkom
add address=36.65.0.0/16 list=ggc-telkom
add address=36.66.0.0/16 list=ggc-telkom
add address=36.67.0.0/16 list=ggc-telkom
add address=36.68.0.0/16 list=ggc-telkom
add address=36.69.0.0/16 list=ggc-telkom
add address=36.70.0.0/16 list=ggc-telkom
add address=36.71.0.0/16 list=ggc-telkom
add address=36.72.0.0/16 list=ggc-telkom
add address=36.73.0.0/16 list=ggc-telkom
add address=36.74.0.0/16 list=ggc-telkom
add address=36.75.0.0/16 list=ggc-telkom
add address=36.76.0.0/16 list=ggc-telkom
add address=36.77.0.0/16 list=ggc-telkom
add address=36.78.0.0/16 list=ggc-telkom
add address=36.79.0.0/16 list=ggc-telkom
add address=36.80.0.0/16 list=ggc-telkom
add address=36.81.0.0/16 list=ggc-telkom
add address=36.82.0.0/16 list=ggc-telkom
add address=36.83.0.0/16 list=ggc-telkom
add address=36.84.0.0/16 list=ggc-telkom
add address=36.85.0.0/16 list=ggc-telkom
add address=36.86.0.0/16 list=ggc-telkom
add address=36.87.0.0/16 list=ggc-telkom
add address=36.88.0.0/16 list=ggc-telkom
add address=36.89.0.0/16 list=ggc-telkom
add address=36.90.0.0/16 list=ggc-telkom
add address=61.5.0.0/17 list=ggc-telkom
add address=61.94.0.0/16 list=ggc-telkom
add address=110.136.0.0/16 list=ggc-telkom
add address=110.137.0.0/16 list=ggc-telkom
add address=110.138.0.0/16 list=ggc-telkom
add address=110.139.0.0/16 list=ggc-telkom
add address=118.96.0.0/16 list=ggc-telkom
add address=118.97.0.0/16 list=ggc-telkom
add address=118.98.0.0/17 list=ggc-telkom
add address=125.160.0.0/16 list=ggc-telkom
add address=125.162.0.0/16 list=ggc-telkom
add address=125.164.0.0/16 list=ggc-telkom
add address=125.165.0.0/16 list=ggc-telkom
add address=125.167.0.0/16 list=ggc-telkom
add address=180.241.0.0/16 list=ggc-telkom
add address=180.242.0.0/16 list=ggc-telkom
add address=180.243.0.0/16 list=ggc-telkom
add address=180.244.0.0/16 list=ggc-telkom
add address=180.245.0.0/16 list=ggc-telkom
add address=180.246.0.0/16 list=ggc-telkom
add address=180.247.0.0/16 list=ggc-telkom
add address=180.248.0.0/16 list=ggc-telkom
add address=180.249.0.0/16 list=ggc-telkom
add address=180.250.0.0/16 list=ggc-telkom
add address=180.251.0.0/16 list=ggc-telkom
add address=180.252.0.0/16 list=ggc-telkom
add address=180.253.0.0/16 list=ggc-telkom
add address=180.254.0.0/16 list=ggc-telkom
add address=222.124.0.0/16 list=ggc-telkom
add address=216.239.32.0/19 list=ggc-telkom
add address=216.58.192.0/19 list=ggc-telkom
add address=172.217.0.0/16 list=ggc-telkom
add address=74.125.0.0/16 list=ggc-telkom
add address=31.13.24.0/21 comment="Facebook Ireland" list=sosmed
add address=31.13.64.0/18 comment="Facebook Ireland" list=sosmed
add address=31.13.64.0/19 comment="Facebook Ireland" list=sosmed
add address=31.13.64.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.65.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.66.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.67.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.68.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.69.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.70.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.71.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.72.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.73.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.74.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.75.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.76.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.78.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.80.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.81.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.82.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.83.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.84.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.85.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.86.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.87.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.90.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.91.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.92.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.94.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.95.0/24 comment="Facebook Ireland" list=sosmed
add address=31.13.96.0/19 comment="Facebook Ireland" list=sosmed
add address=45.64.40.0/22 comment="Facebook Singapore Pte Ltd. Singapore" list=sosmed
add address=66.220.144.0/20 comment="Facebook, Inc. United States" list=sosmed
add address=66.220.144.0/21 comment="Facebook, Inc. United States" list=sosmed
add address=66.220.152.0/21 comment="Facebook, Inc. United States" list=sosmed
add address=69.63.176.0/20 comment="Facebook, Inc. United States" list=sosmed
add address=69.63.176.0/21 comment="Facebook, Inc. United States" list=sosmed
add address=69.63.184.0/21 comment="Facebook, Inc. United States" list=sosmed
add address=69.171.224.0/19 comment="Facebook, Inc. United States" list=sosmed
add address=69.171.224.0/20 comment="Facebook, Inc. United States" list=sosmed
add address=69.171.239.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=69.171.240.0/20 comment="Facebook, Inc. United States" list=sosmed
add address=69.171.255.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=74.119.76.0/22 comment="Facebook, Inc. United States" list=sosmed
add address=103.4.96.0/22 comment=" Temasek Avenue Singapore" list=sosmed
add address=157.240.0.0/17 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.1.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.2.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.3.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.6.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.7.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.8.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.9.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.10.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.11.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.12.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.13.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.14.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.15.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.16.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.18.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.20.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.21.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=157.240.22.0/24 comment="Facebook, Inc. United States" list=sosmed
add address=173.252.64.0/19 comment="Facebook, Inc. United States" list=sosmed
add address=173.252.88.0/21 comment="Facebook, Inc. United States" list=sosmed
add address=173.252.96.0/19 comment="Facebook, Inc. United States" list=sosmed
add address=179.60.192.0/22 comment="Edge Network Services Ltd United States" list=sosmed
add address=179.60.192.0/24 comment="Edge Network Services Ltd United States" list=sosmed
add address=179.60.193.0/24 comment="Edge Network Services Ltd United States" list=sosmed
add address=179.60.195.0/24 comment="Edge Network Services Ltd United States" list=sosmed
add address=185.60.216.0/22 comment="Facebook Ireland" list=sosmed
add address=185.60.216.0/24 comment="Facebook Ireland" list=sosmed
add address=185.60.218.0/24 comment="Facebook Ireland" list=sosmed
add address=185.60.219.0/24 comment="Facebook Ireland" list=sosmed
add address=204.15.20.0/22 comment="Facebook, Inc. United States" list=sosmed
add address=64.63.0.0/18 comment="MoPub, Inc. United States" list=sosmed
add address=69.195.160.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.162.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.163.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.164.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.165.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.166.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.168.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.169.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.171.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.172.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.173.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.175.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.176.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.177.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.178.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.179.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.180.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.181.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.182.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.184.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.185.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.186.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.187.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.188.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.189.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.190.0/24 comment="Twitter Inc. United States" list=sosmed
add address=69.195.191.0/24 comment="Twitter Inc. United States" list=sosmed
add address=103.252.112.0/23 comment="60 Robinson Road, #11-02 BEA Building, Singapore 068892. Singapore" list=sosmed
add address=103.252.114.0/23 comment="60 Robinson Road, #11-02 BEA Building, Singapore 068892. Singapore" list=sosmed

add address=104.244.40.0/24 comment="Twitter Inc. United States" list=sosmed


add address=104.244.41.0/24 comment="Twitter Inc. United States" list=sosmed
add address=104.244.42.0/24 comment="Twitter Inc. United States" list=sosmed
add address=104.244.43.0/24 comment="Twitter Inc. United States" list=sosmed
add address=104.244.44.0/24 comment="Twitter Inc. United States" list=sosmed
add address=104.244.45.0/24 comment="Twitter Inc. United States" list=sosmed
add address=104.244.46.0/24 comment="Twitter Inc. United States" list=sosmed
add address=104.244.47.0/24 comment="Twitter Inc. United States" list=sosmed
add address=185.45.5.0/24 comment="Twitter International Company Ireland" list=sosmed
add address=185.45.6.0/23 comment="Twitter International Company Ireland" list=sosmed
add address=188.64.224.0/24 comment="Heron SAS France" list=sosmed
add address=188.64.225.0/24 comment="Heron SAS France" list=sosmed
add address=188.64.226.0/23 comment="Heron SAS France" list=sosmed
add address=188.64.226.0/24 comment="Heron SAS France" list=sosmed
add address=188.64.227.0/24 comment="Heron SAS France" list=sosmed
add address=188.64.228.0/24 comment="Heron SAS France" list=sosmed
add address=188.64.229.0/24 comment="Heron SAS France" list=sosmed
add address=192.44.69.0/24 comment="Crashlytics, Inc United States" list=sosmed
add address=192.133.76.0/22 comment="Twitter Inc. United States" list=sosmed
add address=192.133.76.0/23 comment="Twitter Inc. United States" list=sosmed
add address=199.16.156.0/22 comment="Twitter Inc. United States" list=sosmed
add address=199.16.156.0/23 comment="Twitter Inc. United States" list=sosmed
add address=199.59.148.0/22 comment="Twitter Inc. United States" list=sosmed
add address=199.96.56.0/23 comment="Twitter Inc. United States" list=sosmed
add address=199.96.56.0/24 comment="Twitter Inc. United States" list=sosmed
add address=199.96.57.0/24 comment="Twitter Inc. United States" list=sosmed
add address=199.96.58.0/23 comment="Twitter Inc. United States" list=sosmed
add address=199.96.60.0/23 comment="Twitter Inc. United States" list=sosmed
add address=199.96.60.0/24 comment="Twitter Inc. United States" list=sosmed
add address=199.96.61.0/24 comment="Twitter Inc. United States" list=sosmed
add address=199.96.62.0/23 comment="Twitter Inc. United States" list=sosmed
add address=202.160.128.0/24 comment="Twitter Asia Pacific Pte. Ltd. Singapore" list=sosmed
add address=202.160.129.0/24 comment="Twitter Asia Pacific Pte. Ltd. Singapore" list=sosmed
add address=202.160.130.0/24 comment="Twitter Asia Pacific Pte. Ltd. Singapore" list=sosmed
add address=202.160.131.0/24 comment="Twitter Asia Pacific Pte. Ltd. Singapore" list=sosmed
add address=209.237.192.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.193.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.194.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.195.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.196.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.197.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.198.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.199.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.200.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.201.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.204.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.205.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.206.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.207.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.208.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.209.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.210.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.211.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.212.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.213.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.214.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.215.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.216.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.217.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.218.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.219.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.220.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.221.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.222.0/24 comment="Twitter Inc. United States" list=sosmed
add address=209.237.223.0/24 comment="Twitter Inc. United States" list=sosmed
add address=whatsapp.com comment=whatsapp list=sosmed
add address=whatsapp.net comment=whatsapp list=sosmed
add address=instagram.com comment=instagram list=sosmed

add address=192.168.10.0/24 list="IP LOCAL"


add address=128.128.128.0/24 list="IP LOCAL"
add address=128.129.0.0/24 list="IP LOCAL"
add address=128.130.0.0/24 list="IP LOCAL"
add address=129.131.0.0/24 list="IP LOCAL"
add address=129.132.0.0/24 list="IP LOCAL"
ROUTING
/ip firewall mangle
add action=mark-routing chain=prerouting comment=GAME dst-address-list="IP GAME ONLINE" new-routing-mark=GAME passthrough=no src-address-list="IP
LOCAL"
add action=mark-routing chain=prerouting comment=Routing dst-address-list=sosmed new-routing-mark=WAN2 passthrough=no src-address-list="IP LOCAL"
add action=mark-routing chain=prerouting dst-address-list=ggc-telkom new-routing-mark=WAN2 passthrough=no src-address-list="IP LOCAL"

add action=mark-connection chain=prerouting comment=K_WAN2 dst-address-list=!private-lokal dst-address-type=!local new-connection-mark=K_WAN2


passthrough=yes per-connection-classifier=src-address-and-port:7/0 src-address-list=private-lokal
add action=mark-connection chain=prerouting dst-address-list=!private-lokal dst-address-type=!local new-connection-mark=K_WAN2 passthrough=yes per-
connection-classifier=src-address-and-port:7/1 src-address-list=private-lokal
add action=mark-connection chain=prerouting dst-address-list=!private-lokal dst-address-type=!local new-connection-mark=K_WAN2 passthrough=yes per-
connection-classifier=src-address-and-port:7/2 src-address-list=private-lokal
add action=mark-connection chain=prerouting comment=K_WAN2 dst-address-list=!private-lokal dst-address-type=!local new-connection-mark=K_WAN2
passthrough=yes per-connection-classifier=src-address-and-port:7/3 src-address-list=private-lokal
add action=mark-connection chain=prerouting dst-address-list=!private-lokal dst-address-type=!local new-connection-mark=K_WAN2 passthrough=yes per-
connection-classifier=src-address-and-port:7/4 src-address-list=private-lokal
add action=mark-connection chain=prerouting dst-address-list=!private-lokal dst-address-type=!local new-connection-mark=K_WAN2 passthrough=yes per-
connection-classifier=src-address-and-port:7/5 src-address-list=private-lokal
add action=mark-connection chain=prerouting comment=K_WAN1 dst-address-list=!private-lokal dst-address-type=!local new-connection-mark=K_WAN1
passthrough=yes per-connection-classifier=src-address-and-port:7/6 src-address-list=private-lokal

add action=mark-routing chain=prerouting comment=ROUTE connection-mark=K_WAN2 dst-address-list=!private-lokal new-routing-mark=R-K_WAN2


passthrough=no src-address-list=private-lokal
add action=mark-routing chain=prerouting connection-mark=K_WAN1 dst-address-list=!private-lokal new-routing-mark=R-K_WAN1 passthrough=no src-address-
list=private-lokal

/ip route
add check-gateway=ping distance=1 gateway=192.168.0.1 routing-mark=GAME
add check-gateway=ping distance=2 gateway=192.168.1.1 routing-mark=WAN2
add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=R-K_WAN2
add check-gateway=ping distance=1 gateway=192.168.0.1 routing-mark=R-K_WAN1
add check-gateway=ping distance=1 gateway=192.168.1.1
add check-gateway=ping distance=1 gateway=192.168.0.1

RAW
/ip firewall raw
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="COD MOBILE" \  
dst-address-list="!IP LOCAL" dst-port=7500-7700,17000-20100 protocol=udp \  
src-address-list="IP LOCAL"            
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="Free Fire" \    
dst-address-list="!IP LOCAL" dst-port=10000-10110 protocol=udp \    
src-address-list="IP LOCAL"            
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="Free Fire" \    
dst-address-list="!IP LOCAL" dst-port=10001-10007 protocol=udp \    
src-address-list="IP LOCAL"            
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="Free Fire" \    
dst-address-list="!IP LOCAL" dst-port=39001-39012 protocol=tcp \    
src-address-list="IP LOCAL"            
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment=Vainglory \    
dst-address-list="!IP LOCAL" dst-port=7000-8020 protocol=tcp \    
src-address-list="IP LOCAL"            
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment=Vainglory content=\  
.superevil.net dst-address-list="!IP LOCAL" src-address-list="IP LOCAL"  
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="Mobile Legends" \  
dst-address-list="!IP LOCAL" dst-port=30000-30150,5000-5555,9001 \    
protocol=udp src-address-list="IP LOCAL"        
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="Mobile Legends" \  
dst-address-list="!IP LOCAL" dst-port=30000-30150,5000-5555,9001 \    
protocol=tcp src-address-list="IP LOCAL"        
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="Mobile Legends" \  
content=.youngjoygame.com dst-address-list="!IP LOCAL" src-address-list=\  
"IP LOCAL"              
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting content=.youngjoygame.com \  
dst-address-list="!IP LOCAL" src-address-list="IP LOCAL"      
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="PUBG Mobile" \  
dst-address-list="!IP LOCAL" dst-port="10426-10491,10010,10013,10612,17000\  
,20000-20009,12235,13748,13972,13894,11455,10096,10039" protocol=udp \  
src-address-list="IP LOCAL"            
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="PUBG Mobile" \  
dst-address-list="!IP LOCAL" dst-port=10012,17500 protocol=tcp \    
src-address-list="IP LOCAL"            
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="PUBG Mobile" content=\
.igamecj.com dst-address-list="!IP LOCAL" src-address-list="IP LOCAL"    
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment="PUBG Mobile" content=\
tencentgames.helpshift.com dst-address-list="!IP LOCAL" src-address-list=\  
"IP LOCAL"              
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting content=.igamecj.com \    
dst-address-list="!IP LOCAL" src-address-list="IP LOCAL"      
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting content=\      
tencentgames.helpshift.com dst-address-list="!IP LOCAL" src-address-list=\  
"IP LOCAL"              
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment=Garena content=\  
.garenanow.com dst-address-list="!IP LOCAL" src-address-list="IP LOCAL"  
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting dst-address-list="!IP LOCAL" \  
dst-port=7086-7995,12070-12460,41182-42474 protocol=udp src-address-list=\  
"IP LOCAL"              
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting comment=COC dst-address-list=\  
"!IP LOCAL" dst-port=9339 protocol=tcp src-address-list="IP LOCAL"    
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \    
address-list-timeout=5m1s chain=prerouting dst-address-list="!IP LOCAL" \  
dst-port=65000-65090 protocol=tcp src-address-list="IP LOCAL"    

SCRIPT ON LOGin PADA USER PROFIL HOTSPOT

:local datetime [/system clock get date];


:local timedate [/system clock get time];
[/ip firewall mangle add action=mark-packet chain=forward comment=user_hotspot dst-address="$address" in-interface-list=\ INTERNET new-packet-mark=("paket-dow
[/ip firewall mangle add action=mark-packet chain=forward comment=user_hotspot new-packet-mark=("paket-up"."$address") out-interface-list=\ INTERNET passthrou
[/queue tree add max-limit=2M name=("$user-hotspot"." ->down "."$address") comment="user_hotspot" packet-mark=("paket-down"."$address") parent="4.HOTSPOT
[/queue tree add max-limit=1M name=("$user-hotspot"." ->upload "."$address") comment="user_hotspot" packet-mark=("paket-up"."$address") parent="5.HOTSPOT U

SCRIPT ON LOGOUT PADA USER PROFIL HOTSPOT

/queue tree remove [find packet-mark=("paket-down"."$address")] ;


/queue tree remove [find packet-mark=("paket-up"."$address")] ;
/ip firewall mangle remove [find where new-packet-mark=("paket-down"."$address")]
/ip firewall mangle remove [find where new-packet-mark=("paket-up"."$address")]

/ip firewall mangle              


add action=mark-packet chain=forward comment=PODO_WARKOP_DOWN dst-
address=192.168.10.14\
in-interface-list=INTERNET new-packet-mark=PODO_WARKOP_DOWN passthrough=yes
add action=mark-packet chain=forward comment=PODO_WARKOP_UP new-packet-
mark=PODO_WARKOP_UP \
out-interface-list=INTERNET passthrough=yes src-address=192.168.10.14  
                 
/queue tree              
add max-limit=5M name=PODO_WARKOP_DOWN packet-mark=PODO_WARKOP_DOWN parent=\
"7.CLIENT RUMAHAN DOWN" queue=pcq-download-default    
add max-limit=2K name=PODO_WARKOP_UP packet-mark=PODO_WARKOP_UP parent=\
"8.CLIENT RUMAHAN UPLOAD" queue=pcq-upload-default      

/ip firewall mangle              


add action=mark-packet chain=forward comment=PODO_RUMAH_DOWN dst-
address=192.168.10.20\
in-interface-list=INTERNET new-packet-mark=PODO_RUMAH_DOWN passthrough=yes
add action=mark-packet chain=forward comment=PODO_RUMAH_UP new-packet-
mark=PODO_RUMAH_UP \
out-interface-list=INTERNET passthrough=yes src-address=192.168.10.20  
                 
/queue tree              
add max-limit=2m name=PODO_RUMAH_DOWN packet-mark=PODO_RUMAH_DOWN parent=\
"7.CLIENT RUMAHAN DOWN" queue=pcq-download-default    
add max-limit=768K name=PODO_RUMAH_UP packet-mark=PODO_RUMAH_UP parent=\
"8.CLIENT RUMAHAN UPLOAD" queue=pcq-upload-default      

You might also like