You are on page 1of 4

INPUT DATA

NAMA INTERFACE WAN ether1-ISP


BANDWIDHT DOWNLOAD DARI ISP 13M
BANDWIDHT UPLOAD DARI ISP 2M

ALOKASI BUAT GAME DOWNLOAD 2M


ALOKASI BUAT GAME UPLOAD 2M

INTERFACE WAN WAJIB DIISI DAN JANGAN PAKE SPASI


IP LOKAL PPPOE DAN HOTSPOT
192 168 12 0/23
192 168 100 0/24
/ip firewall mangle
add action=mark-connection chain=prerouting comment=GAME dst-address-list=\
games new-connection-mark=game passthrough=yes src-address-list=lokal
add action=mark-packet chain=forward connection-mark=game in-interface=\
ether1-ISP new-packet-mark="GAME DOWNLOAD" passthrough=yes
add action=mark-packet chain=forward connection-mark=game new-packet-mark=\
"GAME UPLOAD" out-interface=ether1-ISP passthrough=yes
add action=mark-connection chain=prerouting comment=\
"LEMPAR KONEKSI KALAU UPDATE GAME" connection-bytes=200000-999000000 \
dst-address-list=games new-connection-mark=GAME passthrough=yes \
src-address-list=lokal
add action=mark-connection chain=prerouting comment=BROWSING dst-port=\
21,22,23,81,88,5050,843,182,8777,1935,53,8000-8081,80,443 \
new-connection-mark=browsing passthrough=yes protocol=tcp \
src-address-list=lokal
add action=mark-connection chain=prerouting dst-port=\
21,22,23,81,88,5050,843,182,8777,1935,53,8000-8081,80,443 \
new-connection-mark=browsing passthrough=yes protocol=udp \
src-address-list=lokal
add action=mark-connection chain=prerouting dst-port=\
67,5228,35915,39397,110,5060,6666,3478,66,53 new-connection-mark=browsing \
passthrough=yes protocol=tcp src-address-list=lokal
add action=mark-connection chain=prerouting dst-port=\
67,5228,35915,39397,110,5060,6666,3478,66,53 new-connection-mark=browsing \
passthrough=yes protocol=udp src-address-list=lokal
add action=mark-packet chain=forward connection-mark=browsing in-interface=\
ether1-ISP new-packet-mark="BROWSING DOWNLOAD" passthrough=yes
add action=mark-packet chain=forward connection-mark=browsing \
new-packet-mark="BROWSING UPLOAD" out-interface=ether1-ISP passthrough=\
yes

/ip firewall address-list


add address=192.168.12.0/23 list=lokal
add address=192.168.100.0/24 list=lokal
add address= list=lokal
add address= list=lokal
add address= list=lokal
add address= list=lokal
add address= list=lokal
add address= list=lokal
add address= list=lokal
add address= list=lokal

/queue simple
add max-limit=2M/13M name=2.ALL-TRAFIK packet-marks=\
"BROWSING DOWNLOAD,BROWSING UPLOAD" target=\
"192.168.12.0/23,192.168.100.0/24,"
add max-limit=2M/2M name=1.GAME packet-marks="GAME DOWNLOAD,GAME UPLOAD" \
priority=1/1 target="192.168.12.0/23,192.168.100.0/24,"
add name=ALL-CLIENT parent=2.ALL-TRAFIK target=\
"192.168.12.0/23,192.168.100.0/24,"

/queue tree
add name=DOWNLOAD parent=global
add name=UPLOAD parent=global
add max-limit=2M name="1.GAME DOWNLOAD" packet-mark="GAME DOWNLOAD" parent=\
DOWNLOAD priority=1 queue=pcq-download-default
add max-limit=13M name="2.BROWSING DOWNLOAD" packet-mark="BROWSING DOWNLOAD" \
parent=DOWNLOAD queue=pcq-download-default
add max-limit=2M name="1.GAME UPLOAD" packet-mark="GAME UPLOAD" parent=UPLOAD \
priority=1 queue=pcq-upload-default
add max-limit=2M name="2.BROWSING UPLOAD" packet-mark="BROWSING UPLOAD" \
parent=UPLOAD queue=pcq-upload-default

You might also like