Script

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 17

SETTINGAN

NAMA INTERFACE INTERNET ether1

DOWNLOAD ALL SETTINGAN


TOTAL BANDWIDHT DOWNLOAD 20M
BROWSING & DOWNLOAD HOTSPOT/CLIEN RUMAHAN 16M
HOTSPOT ALL DOWNLOAD 14M
CLIEN RUMAHAN DOWN 10M
SELAIN PORT UMUM ( TRAFICK BERAT) DOWN 4M
SELAIN PORT UMUM (GAME ONLINE) DOWN 7M

UPLUAD ALL SETTINGAN


TOTAL BANDWIDHT UPLUAD 4M
BROWSING & DOWNLOAD HOTSPOT/CLIEN UPLUAD RUMAHAN 3M
HOTSPOT ALL UPLUAD 2M
CLIEN RUMAHAN UPLUAD 2M
SELAIN PORT UMUM ( TRAFICK BERAT ) UP 1M
SELAIN PORT RINGAN (GAME ONLINE ) UP 2M
BY EGA CHANEL
PENULISAN MB/KB HARUS MENGGUNAKAN HURUF KAPITAL
/ip firewall mangle
add action=mark-connection chain=prerouting comment="PORT UMUM " dst-port=\
21,22,23,81,88,5050,843,182,8777,1935,53,8000-8081,443,80 in-interface=\
!ether1 new-connection-mark="PORT UMUM" passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=\
67,5228,35915,39397,110,5060,6666,3478,66,53 in-interface=!ether1 \
new-connection-mark="PORT UMUM" passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=\
67,5228,35915,39397,110,5060,6666,3478,66,53 in-interface=!ether1 \
new-connection-mark="PORT UMUM" passthrough=yes protocol=udp
add action=mark-connection chain=prerouting dst-port=\
21,22,23,81,88,5050,843,182,8777,1935,53,8000-8081,443,80 in-interface=\
!ether1 new-connection-mark="PORT UMUM" passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=\
"PORT SELAIN PORT UMUM ( GAME )" connection-mark="!PORT UMUM" \
in-interface=!ether1 new-connection-mark=\
"PORT SELAIN PORT UMUM ( GAME )" passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting connection-mark="!PORT UMUM" \
in-interface=!ether1 new-connection-mark=\
"PORT SELAIN PORT UMUM ( GAME )" passthrough=yes protocol=udp
add action=mark-packet chain=forward comment=\
"PACKET UPLUAD SELAIN PORT UMUM(GAME)" connection-mark=\
"PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=\
"PORT SELAIN PORT UMUM (GAME) UPLUAD" out-interface=ether1 \
passthrough=yes
add action=mark-packet chain=forward comment=\
"PACKET DOWNLOAD SELAIN PORT UMUM (GAME)" connection-mark=\
"PORT SELAIN PORT UMUM ( GAME )" in-interface=ether1 new-packet-mark=\
"PORT SELAIN PORT UMUM (GAME) DOWN" passthrough=yes
add action=add-dst-to-address-list address-list="IP BUKAN PORT UMUM" \
address-list-timeout=1d chain=prerouting comment=\
"KONEKSI SELAIN PORT UMUM (1MBPS+)" connection-mark="!PORT UMUM" \
connection-rate=1M-100M dst-address-list="!IP LOCAL" in-interface=\
!ether1 protocol=tcp
add action=add-dst-to-address-list address-list="IP BUKAN PORT UMUM" \
address-list-timeout=1d chain=prerouting connection-mark="!PORT UMUM" \
connection-rate=1M-100M dst-address-list="!IP LOCAL" in-interface=\
!ether1 protocol=udp
add action=mark-connection chain=prerouting dst-address-list=\
"IP BUKAN PORT UMUM" in-interface=!ether1 new-connection-mark=\
"PORT SELAIN PORT UMUM ( KONEKSI BERAT )" passthrough=yes
add action=mark-packet chain=forward connection-mark=\
"PORT SELAIN PORT UMUM ( KONEKSI BERAT )" in-interface=ether1 \
new-packet-mark="SELAIN PORT UMUM BERAT (DOWNLOAD)" passthrough=yes
add action=mark-packet chain=forward connection-mark=\
"PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"SELAIN PORT UMUM BERAT (UPLUAD)" out-interface=ether1 passthrough=\
yes
/queue tree
add max-limit=20M name="1.GLOBAL DOWNLOAD ALL" parent=global
add max-limit=4M name="2.GLOBAL ALL UPLUAD" parent=global
add max-limit=16M name="HOTSPOT/CLIEN ALL DOWNLOAD" parent="1.GLOBAL DOWNLOAD ALL" packet-mark=\
"HOTSPOT ALL DOWNLOAD" queue=\
pcq-download-default
add max-limit=3M name="HOTSPOT/CLIEN ALL UPLUAD" parent="2.GLOBAL ALL UPLUAD" packet-mark=\
"HOTSPOT ALL UPLOAD" queue=\
pcq-upload-default
/queue tree
add max-limit=7M name="PORT RINGAN (GAME) DOWN" packet-mark=\
"PORT SELAIN PORT UMUM (GAME) DOWN" parent="1.GLOBAL DOWNLOAD ALL" queue=\
pcq-download-default
add max-limit=4M name="SELAIN PORT UMUM BERAT DOWN" packet-mark=\
"SELAIN PORT UMUM BERAT (DOWNLOAD)" parent="HOTSPOT/CLIEN ALL DOWNLOAD" queue=\
pcq-download-default
add max-limit=1M name="SELAIN PORT UMUM BERAT UP" packet-mark=\
"SELAIN PORT UMUM BERAT (UPLUAD)" parent="HOTSPOT/CLIEN ALL UPLUAD" queue=\
pcq-upload-default
add max-limit=2M name="PORT RINGAN (GAME) UP" packet-mark=\
"PORT SELAIN PORT UMUM (GAME) UPLUAD" parent="2.GLOBAL ALL UPLUAD" queue=\
pcq-upload-default
add max-limit=10M name="CLIEN RUMAHAN DOWN" parent="HOTSPOT/CLIEN ALL DOWNLOAD" queue=\
pcq-download-default
add max-limit=2M name="CLIEN RUMAHAN UPLUAD" parent="HOTSPOT/CLIEN ALL UPLUAD" queue=\
pcq-upload-default
add max-limit=14M name="HOTSPOT ALL DOWNLOAD" parent="HOTSPOT/CLIEN ALL DOWNLOAD" queue=\
pcq-download-default
add max-limit=2M name="HOTSPOT ALL UPLUAD" parent="HOTSPOT/CLIEN ALL UPLUAD" queue=\
pcq-upload-default
/ip firewall mangle
add action=mark-packet chain="HOTSPOT ALL DOWNLOAD" comment=\
"HOTSPOT ALL DOWNLOAD" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"HOTSPOT ALL DOWNLOAD" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address-list="IP LOCAL" \
in-interface=ether1 jump-target="HOTSPOT ALL DOWNLOAD"
add action=mark-packet chain="HOTSPOT ALL UPLUAD" comment=\
"HOTSPOT ALL UPLUAD" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"HOTSPOT ALL UPLUAD" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" jump-target="HOTSPOT ALL UPLUAD" \
out-interface=ether1 src-address-list="IP LOCAL"
/ip firewall address-list
add address="255.255.255.255" list="IP LOCAL" }
NAMA HOTSPOT
1 Hotspot1
IP ADDRESS LOCAL HOTSPOT/CLIEN= 192

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

/ip firewall address-list


add address="192.168.20.0/24" list="IP LOCAL" }
/ip firewall mangle
add action=mark-packet chain="down-hotspot/clien-192.168.20.0/24" comment=\
"down-hotspot/clien-192.168.20.0/24" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"down-hotspot/clien-192.168.20.0/24" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address="192.168.20.0/24" in-interface=\
ether1 jump-target="down-hotspot/clien-192.168.20.0/24"
add action=mark-packet chain="up-hotspot/clien-192.168.20.0/24" comment=\
"up-hotspot/clien-192.168.20.0/24" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"up-hotspot/clien-192.168.20.0/24" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" jump-target="up-hotspot/clien-192.168.20.0/24" \
out-interface=ether1 src-address="192.168.20.0/24" }

/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

/ip firewall address-list


add address="192.168.99.11" list="IP LOCAL" }
/ip firewall mangle
add action=mark-packet chain="down-hotspot/clien-192.168.99.11" comment=\
"down-hotspot/clien-192.168.99.11" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"down-hotspot/clien-192.168.99.11" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address="192.168.99.11" in-interface=\
ether1 jump-target="down-hotspot/clien-192.168.99.11"
add action=mark-packet chain="up-hotspot/clien-192.168.99.11" comment=\
"up-hotspot/clien-192.168.99.11" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"up-hotspot/clien-192.168.99.11" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" jump-target="up-hotspot/clien-192.168.99.11" \
out-interface=ether1 src-address="192.168.99.11" }

/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

You might also like