Script
Script
Script
NAMA HOTSPOT
2 Hotspot2
IP ADDRESS LOCAL HOTSPOT/CLIEN= 192
DOWNLOAD UPLUAD
Limit At down max download Limit At upluad maximal upluad
168 10 0/24
10M 11M 2M 2M
DOWNLOAD UPLUAD
Limit At down max download Limit At upluad maximal upluad
168 20 0/24
15M 17M 2M 3M
/ip firewall address-list
add address="192.168.10.0/24" list="IP LOCAL" }
/ip firewall mangle
add action=mark-packet chain="down-hotspot/clien-192.168.10.0/24" comment=\
"down-hotspot/clien-192.168.10.0/24" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"down-hotspot/clien-192.168.10.0/24" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address="192.168.10.0/24" in-interface=\
ether1 jump-target="down-hotspot/clien-192.168.10.0/24"
add action=mark-packet chain="up-hotspot/clien-192.168.10.0/24" comment=\
"up-hotspot/clien-192.168.10.0/24" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"up-hotspot/clien-192.168.10.0/24" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" jump-target="up-hotspot/clien-192.168.10.0/24" \
out-interface=ether1 src-address="192.168.10.0/24" }
/queue tree
add limit-at=10M max-limit=11M name="Down-192.168.10.0/24-Hotspot1" packet-mark=\
"down-hotspot/clien-192.168.10.0/24" parent="HOTSPOT ALL DOWNLOAD" queue=\
pcq-download-default
add limit-at=2M max-limit=2M name="Up-192.168.10.0/24-Hotspot1" packet-mark=\
"up-hotspot/clien-192.168.10.0/24" parent="HOTSPOT ALL UPLUAD" queue=\
pcq-upload-default
/queue tree
add limit-at=15M max-limit=17M name="Down-192.168.20.0/24-Hotspot2" packet-mark=\
"down-hotspot/clien-192.168.20.0/24" parent="HOTSPOT ALL DOWNLOAD" queue=\
pcq-download-default
add limit-at=2M max-limit=3M name="Up-192.168.20.0/24-Hotspot2" packet-mark=\
"up-hotspot/clien-192.168.20.0/24" parent="HOTSPOT ALL UPLUAD" queue=\
pcq-upload-default
1
2
NAMA PENGGUNA
1 PPPoE-Rumah1
IP ADDRESS =BINDING,PPPOE,DYNAMIC IP 192 168
NAMA PENGGUNA
2 PPPoE-Andi
IP ADDRESS =BINDING,PPPOE,DYNAMIC IP 192 168
DOWNLOAD UPLUAD
Limit At down max download Limit At upluad maximal upluad
99 10
10M 11M 2M 2M
DOWNLOAD UPLUAD
Limit At down max download Limit At upluad maximal upluad
99 11
10M 11M 2M 2M
/ip firewall address-list
add address="192.168.99.10" list="IP LOCAL" }
/ip firewall mangle
add action=mark-packet chain="down-hotspot/clien-192.168.99.10" comment=\
"down-hotspot/clien-192.168.99.10" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"down-hotspot/clien-192.168.99.10" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address="192.168.99.10" in-interface=\
ether1 jump-target="down-hotspot/clien-192.168.99.10"
add action=mark-packet chain="up-hotspot/clien-192.168.99.10" comment=\
"up-hotspot/clien-192.168.99.10" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"up-hotspot/clien-192.168.99.10" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" jump-target="up-hotspot/clien-192.168.99.10" \
out-interface=ether1 src-address="192.168.99.10" }
/queue tree
add limit-at=10M max-limit=11M name="Down-192.168.99.10-PPPoE-Rumah1" packet-mark=\
"down-hotspot/clien-192.168.99.10" parent="CLIEN RUMAHAN DOWN" queue=\
pcq-download-default
add limit-at=2M max-limit=2M name="Up-192.168.99.10-PPPoE-Rumah1" packet-mark=\
"up-hotspot/clien-192.168.99.10" parent="CLIEN RUMAHAN UPLUAD" queue=\
pcq-upload-default
/queue tree
add limit-at=10M max-limit=11M name="Down-192.168.99.11-PPPoE-Andi" packet-mark=\
"down-hotspot/clien-192.168.99.11" parent="CLIEN RUMAHAN DOWN" queue=\
pcq-download-default
add limit-at=2M max-limit=2M name="Up-192.168.99.11-PPPoE-Andi" packet-mark=\
"up-hotspot/clien-192.168.99.11" parent="CLIEN RUMAHAN UPLUAD" queue=\
pcq-upload-default
1