SETTINGAN
NAMA INTERFACE WAN inet
SETTINGAN DARI ISP SATUAN
DOWNLOAD DARI ISP 10 M
UPLUAD DARI ISP 4 M
SETTINGAN DOWNLOAD SATUAN
HOTSPOT&CLIEN RUMAHAN DOWNLOAD 8 M
USER HOTSPOT DOWN 4 M
CLIEN RUMAHAN DOWN 4 M
SETTINGAN UPLUAD SATUAN
HOTSPOT&CLIEN RUMAHAN UPLUAD 4 M
USER HOTSPOT UP 1 M
CLIEN RUMAHAN UP 1 M
SETTINGAN GAME OTOMATIS DI KALKULASI DARI ISP SATUAN
1.SELAIN PORT UMUM RINGAN GAME ONLINE DOWN 2 M
2.SELAIN PORT UMUM RINGAN GAME ONLINE UP 0 M
3.PAKET ICMP 2 M
IP LOCAL
WAJIB 192 168 20 0/24
192 168 30 0/24
192 168 40 0/24
192 168 3 0/24
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
/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=\
!inet 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=!inet \
new-connection-mark="PORT UMUM" passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting connection-state="" dst-port=\
67,5228,35915,39397,110,5060,6666,3478,66,53 in-interface=!inet \
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=\
!inet new-connection-mark="PORT UMUM" passthrough=yes protocol=udp
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \
address-list-timeout=1s chain=prerouting comment=\
"port selain umum ringan(game)" connection-mark="!PORT UMUM" \
dst-address-list="!IP LOCAL" in-interface=!inet protocol=tcp
add action=add-dst-to-address-list address-list="IP GAME ONLINE" \
address-list-timeout=1s chain=prerouting connection-mark="!PORT UMUM" \
dst-address-list="!IP LOCAL" in-interface=!inet protocol=udp
add action=mark-connection chain=prerouting dst-address-list="IP GAME ONLINE" \
in-interface=!inet new-connection-mark="PORT SELAIN PORT UMUM ( GAME )" \
passthrough=yes
add action=mark-packet chain=forward connection-mark=\
"PORT SELAIN PORT UMUM ( GAME )" in-interface=inet new-packet-mark=\
"PORT SELAIN PORT UMUM(GAME) DOWN" passthrough=yes
add action=mark-packet chain=forward connection-mark=\
"PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=\
"PORT SELAIN PORT UMUM(GAME) UPLUAD" out-interface=inet passthrough=yes
add action=mark-connection chain=prerouting comment=icmp new-connection-mark=\
ICMP passthrough=yes protocol=icmp
add action=mark-packet chain=forward connection-mark=ICMP new-packet-mark=\
"ICMP DOWN" passthrough=yes
add action=add-dst-to-address-list address-list="IP BUKAN PORT UMUM" \
address-list-timeout=1s chain=prerouting comment="selain umum(berat)" \
connection-mark="!PORT UMUM" connection-rate=200k-100M dst-address-list=\
"!IP LOCAL" in-interface=!inet
add action=mark-connection chain=prerouting dst-address-list=\
"IP BUKAN PORT UMUM" in-interface=!inet new-connection-mark=BERAT \
passthrough=yes
/queue tree
add max-limit=8M name="7.HOTSPOT&CLIEN RUMAHAN DOWNLOAD" parent=global
add max-limit=4M name="8.HOTSPOT&CLIEN RUMAHAN UPLUAD" parent=global
add max-limit=2M name="1.SELAIN PORT UMUM RINGAN GAME ONLINE DOWN" \
packet-mark="PORT SELAIN PORT UMUM(GAME) DOWN" parent=global priority=1 \
queue=pcq-download-default
add max-limit=0M name="2.SELAIN PORT UMUM RINGAN GAME ONLINE UP" \
packet-mark="PORT SELAIN PORT UMUM(GAME) UPLUAD" parent=global priority=1 \
queue=pcq-upload-default
add max-limit=4M name="1.USER HOTSPOT DOWN" parent=\
"7.HOTSPOT&CLIEN RUMAHAN DOWNLOAD" queue=pcq-download-default
add max-limit=1M name="1.USER HOTSPOT UP" parent=\
"8.HOTSPOT&CLIEN RUMAHAN UPLUAD" queue=pcq-upload-default
add max-limit=2M name="3.PAKET ICMP" packet-mark="ICMP DOWN" parent=global \
priority=1 queue=pcq-download-default
add max-limit=4M name="2.CLIEN RUMAHAN DOWN" parent=\
"7.HOTSPOT&CLIEN RUMAHAN DOWNLOAD" queue=pcq-download-default
add max-limit=1M name="2.CLIEN RUMAHAN UP" parent=\
"8.HOTSPOT&CLIEN RUMAHAN UPLUAD" queue=pcq-upload-default
/system scheduler
add name=deluser-startup on-event="/ip firewall mangle remove [find where comm\
ent=\"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=192.168.20.0/24 list="IP LOCAL"
add address=192.168.30.0/24 list="IP LOCAL"
add address=192.168.40.0/24 list="IP LOCAL"
add address=192.168.3.0/24 list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
add address=... list="IP LOCAL"
SETTINGAN PROFIL HOTSPOT
DOWNLOAD PER USER 1M
UPLUAD PER USER 1M
:local datetime [/system clock get date];
:local timedate [/system clock get time];
[/ip firewall mangle add action=mark-packet chain=forward comment=user_hotspot connection-mark=\ "!PORT SELAIN PORT U
[/ip firewall mangle add action=mark-packet chain=forward comment=user_hotspot connection-mark=\ "!PORT SELAIN PORT U
[/queue tree add max-limit=1M name=("$user-hotspot"." ->down "."$address") comment="user_hotspot" packet-mark=("pake
[/queue tree add max-limit=1M name=("$user-hotspot"." ->upluad "."$address") comment="user_hotspot" packet-mark=("pa
/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")]
\ "!PORT SELAIN PORT UMUM ( GAME )" dst-address="$address" in-interface=\ inet new-packet-mark=("paket-down"."$address") packet-
\ "!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=("paket-up"."$address") out-interface=\ inet packet-mark="!ICMP DOWN" pas
pot" packet-mark=("paket-down"."$address") parent="1.USER HOTSPOT DOWN"];
spot" packet-mark=("paket-up"."$address") parent="1.USER HOTSPOT UP"];
own"."$address") packet-mark="!ICMP DOWN" \ passthrough=yes];
mark="!ICMP DOWN" passthrough=yes src-address=\ "$address"];
NO NAMA CLIEN IP DOWN UP
1 Heri 192.168.20.0/24 2M 1M
2 Dar 192.168.30.0/24 2M 1M
3 Farah 192.168.40.0/24 4M 1M
4 Laptop2 192.168.3.8 5M 3M
5 tes 192.168.55.54 2M 3M
Nama clien tidak boleh pakai spasi
gantikan spasi dengan format berikut ini :
_ dan -
/ip firewall mangle
add action=mark-packet chain=forward comment=HeriDOWN connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address=192.168.20.0/24 in-interface=\
inet new-packet-mark=HeriDOWN packet-mark="!ICMP DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment=HeriUP connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=HeriUP out-interface=\
inet packet-mark="!ICMP DOWN" passthrough=yes src-address=\
192.168.20.0/24
/queue tree
add max-limit=2M name=HeriDOWN packet-mark=HeriDOWN parent="2.CLIEN RUMAHAN DOWN" \
queue=pcq-download-default
add max-limit=1M name=HeriUP packet-mark=HeriUP parent="2.CLIEN RUMAHAN UP" queue=\
pcq-upload-default
/ip firewall mangle
add action=mark-packet chain=forward comment=DarDOWN connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address=192.168.30.0/24 in-interface=\
inet new-packet-mark=DarDOWN packet-mark="!ICMP DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment=DarUP connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=DarUP out-interface=\
inet packet-mark="!ICMP DOWN" passthrough=yes src-address=\
192.168.30.0/24
/queue tree
add max-limit=2M name=DarDOWN packet-mark=DarDOWN parent="2.CLIEN RUMAHAN DOWN" \
queue=pcq-download-default
add max-limit=1M name=DarUP packet-mark=DarUP parent="2.CLIEN RUMAHAN UP" queue=\
pcq-upload-default
/ip firewall mangle
add action=mark-packet chain=forward comment=FarahDOWN connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address=192.168.40.0/24 in-interface=\
inet new-packet-mark=FarahDOWN packet-mark="!ICMP DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment=FarahUP connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=FarahUP out-interface=\
inet packet-mark="!ICMP DOWN" passthrough=yes src-address=\
192.168.40.0/24
/queue tree
add max-limit=4M name=FarahDOWN packet-mark=FarahDOWN parent="2.CLIEN RUMAHAN DOWN" \
queue=pcq-download-default
add max-limit=1M name=FarahUP packet-mark=FarahUP parent="2.CLIEN RUMAHAN UP" queue=\
pcq-upload-default
/ip firewall mangle
add action=mark-packet chain=forward comment=Laptop2DOWN connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address=192.168.3.8 in-interface=\
inet new-packet-mark=Laptop2DOWN packet-mark="!ICMP DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment=Laptop2UP connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=Laptop2UP out-interface=\
inet packet-mark="!ICMP DOWN" passthrough=yes src-address=\
192.168.3.8
/queue tree
add max-limit=5M name=Laptop2DOWN packet-mark=Laptop2DOWN parent="2.CLIEN RUMAHAN DOWN" \
queue=pcq-download-default
add max-limit=3M name=Laptop2UP packet-mark=Laptop2UP parent="2.CLIEN RUMAHAN UP" queue=\
pcq-upload-default
/ip firewall mangle
add action=mark-packet chain=forward comment=tesDOWN connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address=192.168.55.54 in-interface=\
inet new-packet-mark=tesDOWN packet-mark="!ICMP DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment=tesUP connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=tesUP out-interface=\
inet packet-mark="!ICMP DOWN" passthrough=yes src-address=\
192.168.55.54
/queue tree
add max-limit=2M name=tesDOWN packet-mark=tesDOWN parent="2.CLIEN RUMAHAN DOWN" \
queue=pcq-download-default
add max-limit=3M name=tesUP packet-mark=tesUP parent="2.CLIEN RUMAHAN UP" queue=\
pcq-upload-default
1
3
4