Scrip Part2 Modif

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

SETTINGAN

NAMA INTERFACE INTERNET ether01-VSA WAJIB

DOWNLOAD ALL SETTINGAN


TOTAL BANDWIDHT DOWNLOAD 500M
BROWSING & DOWNLOAD HOTSPOT/CLIEN RUMAHAN 450M
HOTSPOT ALL DOWNLOAD 450M
CLIEN RUMAHAN DOWN 450M
SELAIN PORT UMUM ( TRAFICK BERAT) DOWN 450M
SELAIN PORT UMUM (GAME ONLINE) DOWN 50M

UPLUAD ALL SETTINGAN


TOTAL BANDWIDHT UPLUAD 300M
BROWSING & DOWNLOAD HOTSPOT/CLIEN UPLUAD RUMAHAN 300M
HOTSPOT ALL UPLUAD 300M
CLIEN RUMAHAN UPLUAD 300M
SELAIN PORT UMUM ( TRAFICK BERAT ) UP 300M
SELAIN PORT RINGAN (GAME ONLINE ) UP 50M
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=\
!ether01-VSA 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=!ether01-VSA \
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=!ether01-VSA \
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=\
!ether01-VSA 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=!ether01-VSA new-connection-mark=\
"PORT SELAIN PORT UMUM ( GAME )" passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting connection-mark="!PORT UMUM" \
in-interface=!ether01-VSA 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=ether01-VSA \
passthrough=yes
add action=mark-packet chain=forward comment=\
"PACKET DOWNLOAD SELAIN PORT UMUM(GAME)" connection-mark=\
"PORT SELAIN PORT UMUM ( GAME )" in-interface=ether01-VSA 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=\
!ether01-VSA 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=\
!ether01-VSA protocol=udp
add action=mark-connection chain=prerouting dst-address-list=\
"IP BUKAN PORT UMUM" in-interface=!ether01-VSA 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=ether01-VSA \
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=ether01-VSA passthrough=\
yes
/queue tree
add max-limit=500M name="1.GLOBAL DOWNLOAD ALL" parent=global
add max-limit=300M name="2.GLOBAL ALL UPLUAD" parent=global
add max-limit=450M name="HOTSPOT-CLIEN ALL DOWNLOAD" parent="1.GLOBAL DOWNLOAD ALL" \
queue=pcq-download-default
add max-limit=300M name="HOTSPOT-CLIEN ALL UPLUAD" parent="2.GLOBAL ALL UPLUAD" \
queue=pcq-upload-default
/queue tree
add max-limit=50M name="SELAIN PORT UMUM RINGAN GAME ONLINE DOWN" packet-mark=\
"PORT SELAIN PORT UMUM(GAME) DOWN" parent="1.GLOBAL DOWNLOAD ALL" queue=\
pcq-download-default
add max-limit=450M name="SELAIN PORT UMUM BERAT" packet-mark=\
"SELAIN PORT UMUM BERAT (DOWNLOAD)" parent="HOTSPOT-CLIEN ALL DOWNLOAD" queue=\
pcq-download-default
add max-limit=300M 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=50M name="SELAIN PORT UMUM RINGAN GAME ONLINE UP" packet-mark=\
"PORT SELAIN PORT UMUM(GAME) UPLUAD" parent="2.GLOBAL ALL UPLUAD" queue=\
pcq-upload-default
add max-limit=450M name="CLIEN RUMAHAN DOWN" parent="HOTSPOT-CLIEN ALL DOWNLOAD" queue=\
pcq-download-default
add max-limit=300M name="CLIEN RUMAHAN UPLUAD" parent="HOTSPOT-CLIEN ALL UPLUAD" queue=\
pcq-upload-default
add max-limit=450M name="HOTSPOT ALL DOWNLOAD" packet-mark=\
"HOTSPOT ALL DOWNLOAD" parent="HOTSPOT-CLIEN ALL DOWNLOAD" queue=\
pcq-download-default
add max-limit=300M name="HOTSPOT ALL UPLUAD" packet-mark=\
"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 HOTSPOT ALL" \
in-interface=ether01-VSA 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=ether01-VSA src-address-list="IP HOTSPOT ALL"
/ip firewall address-list
add address="255.255.255.255" list="IP LOCAL" }
SILAHKAN MASUKAN IP HOTSPOT DENGAN FORMAT GLOBAL
CONTOH 192.168.5.0/24

10 0 0 0/8 HOTSPOT1

IP ADDRESS
ALL HOTSPOT
/ip firewall address-list
add address="10.0.0.0/8" list="IP HOTSPOT ALL" }
add address="..." list="IP HOTSPOT ALL" }
add address="..." list="IP HOTSPOT ALL" }
add address="..." list="IP HOTSPOT ALL" }
add address="..." list="IP HOTSPOT ALL" }
add address="..." list="IP HOTSPOT ALL" }
add address="..." list="IP HOTSPOT ALL" }
add address="..." list="IP HOTSPOT ALL" }
NAMA PENGGUNA
1 rido PPPOE
IP ADDRESS =BINDING,PPPOE,DYNAMIC IP 192 168

NAMA PENGGUNA
2 ega PPPOE
IP ADDRESS =BINDING,PPPOE,DYNAMIC IP 192 168

NAMA PENGGUNA
3 riko PPPOE
IP ADDRESS =BINDING,PPPOE,DYNAMIC IP 192 168

NAMA PENGGUNA
4 abil PPPOE
IP ADDRESS =BINDING,PPPOE,DYNAMIC IP 192 168

NAMA PENGGUNA
5 aldi PPPOE
IP ADDRESS =BINDING,PPPOE,DYNAMIC IP 192 168

KET:
LIMIT AT minimal bandwidh yg akan di berikan pada saat trafick padat
max adalah maximal bandwidht yg akan di berikan ketika trafick sepi
DOWNLOAD UPLUAD
Limit At down max download Limit At upluad maximal upluad
4 3
120K 2M 156K 1M

DOWNLOAD UPLUAD
Limit At down max download Limit At upluad maximal upluad
4 4
100K 2M 156K 1M

DOWNLOAD UPLUAD
Limit At down max download Limit At upluad maximal upluad
4 5
128K 2M 128K 1M

DOWNLOAD UPLUAD
Limit At down max download Limit At upluad maximal upluad
4 6
100K 2M 128K 1M

DOWNLOAD UPLUAD
Limit At down max download Limit At upluad maximal upluad
4 7
80K 2M 90K 1M
/ip firewall address-list
add address="192.168.4.3" list="IP LOCAL" }
/ip firewall mangle
add action=mark-packet chain="down-hotspot/clien-192.168.4.3" comment=\
"down-hotspot/clien-192.168.4.3" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"down-hotspot/clien-192.168.4.3" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address="192.168.4.3" in-interface=\
ether01-VSA jump-target="down-hotspot/clien-192.168.4.3"
add action=mark-packet chain="up-hotspot/clien-192.168.4.3" comment=\
"up-hotspot/clien-192.168.4.3" connection-mark=\
"!PORT SELAIN PORT UMUM ( KONEKSI BERAT )" new-packet-mark=\
"up-hotspot/clien-192.168.4.3" passthrough=yes
add action=jump chain=forward connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" jump-target="up-hotspot/clien-192.168.4.3" \
out-interface=ether01-VSA src-address="192.168.4.3" }

/queue tree
add limit-at=120K max-limit=2M name="down-hotspot/clien-192.168.4.3-rido PPPOE" packet-mark=\
"down-hotspot/clien-192.168.4.3" parent="CLIEN RUMAHAN DOWN" queue=\
pcq-download-default
add limit-at=156K max-limit=1M name="up-hotspot/clien-192.168.4.3-rido PPPOE" packet-mark=\
"up-hotspot/clien-192.168.4.3" parent="CLIEN RUMAHAN UPLUAD" queue=\
pcq-upload-default

/ip firewall address-list


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

/queue tree
add limit-at=100K max-limit=2M name="down-hotspot/clien-192.168.4.4-ega PPPOE" packet-mark=\
"down-hotspot/clien-192.168.4.4" parent="CLIEN RUMAHAN DOWN" queue=\
pcq-download-default
add limit-at=156K max-limit=1M name="up-hotspot/clien-192.168.4.4-ega PPPOE" packet-mark=\
"up-hotspot/clien-192.168.4.4" parent="CLIEN RUMAHAN UPLUAD" queue=\
pcq-upload-default

/ip firewall address-list


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

/queue tree
add limit-at=128K max-limit=2M name="down-hotspot/clien-192.168.4.5-riko PPPOE" packet-mark=\
"down-hotspot/clien-192.168.4.5" parent="CLIEN RUMAHAN DOWN" queue=\
pcq-download-default
add limit-at=128K max-limit=1M name="up-hotspot/clien-192.168.4.5-riko PPPOE" packet-mark=\
"up-hotspot/clien-192.168.4.5" parent="CLIEN RUMAHAN UPLUAD" queue=\
pcq-upload-default

/ip firewall address-list


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

/queue tree
add limit-at=100K max-limit=2M name="down-hotspot/clien-192.168.4.6-abil PPPOE" packet-mark=\
"down-hotspot/clien-192.168.4.6" parent="CLIEN RUMAHAN DOWN" queue=\
pcq-download-default
add limit-at=128K max-limit=1M name="up-hotspot/clien-192.168.4.6-abil PPPOE" packet-mark=\
"up-hotspot/clien-192.168.4.6" parent="CLIEN RUMAHAN UPLUAD" queue=\
pcq-upload-default

/ip firewall address-list


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

/queue tree
add limit-at=80K max-limit=2M name="down-hotspot/clien-192.168.4.7-aldi PPPOE" packet-mark=\
"down-hotspot/clien-192.168.4.7" parent="CLIEN RUMAHAN DOWN" queue=\
pcq-download-default
add limit-at=90K max-limit=1M name="up-hotspot/clien-192.168.4.7-aldi PPPOE" packet-mark=\
"up-hotspot/clien-192.168.4.7" parent="CLIEN RUMAHAN UPLUAD" queue=\
pcq-upload-default
1

2
3

4
4

You might also like