Вы находитесь на странице: 1из 15

SETTINGAN

NAMA INTERFACE WAN ether1-TRUNK

SETTINGAN DARI ISP SATUAN


DOWNLOAD DARI ISP 20 M
UPLUAD DARI ISP 4 M

SETTINGAN DOWNLOAD SATUAN


HOTSPOT&CLIEN RUMAHAN DOWNLOAD 15 M
USER HOTSPOT DOWN 15 M
CLIEN RUMAHAN DOWN 15 M

SETTINGAN UPLUAD SATUAN


HOTSPOT&CLIEN RUMAHAN UPLUAD 3 M
USER HOTSPOT UP 2 M
CLIEN RUMAHAN UP 2 M

SETTINGAN GAME OTOMATIS DI KALKULASI DARI ISP SATUAN


1.SELAIN PORT UMUM RINGAN GAME ONLINE DOWN 5 M
2.SELAIN PORT UMUM RINGAN GAME ONLINE UP 1 M
3.PAKET ICMP 5 M
IP LOCAL

WAJIB 172 16 1 0/24


172 16 2 0/24
172 16 3 0/24
172 16 4 0/24
172 16 5 0/24
172 16 6 0/24
172 16 7 0/24
172 16 8 0/24
172 16 9 0/24
172 16 10 0/24
172 16 11 0/24
172 16 12 0/24
172 16 13 0/24
172 16 14 0/24
172 16 15 0/24
172 16 16 0/24
172 16 17 0/24
172 16 18 0/24
172 16 19 0/24
172 16 20 0/24
172 16 21 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=\
!ether1-TRUNK 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-TRUNK \
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=!ether1-TRUNK \
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-TRUNK 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=!ether1-TRUNK 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=!ether1-TRUNK protocol=udp
add action=mark-connection chain=prerouting dst-address-list="IP GAME ONLINE" \
in-interface=!ether1-TRUNK 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=ether1-TRUNK 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=ether1-TRUNK 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=!ether1-TRUNK
add action=mark-connection chain=prerouting dst-address-list=\
"IP BUKAN PORT UMUM" in-interface=!ether1-TRUNK new-connection-mark=BERAT \
passthrough=yes

/queue tree
add max-limit=15M name="7.HOTSPOT&CLIEN RUMAHAN DOWNLOAD" parent=global
add max-limit=3M name="8.HOTSPOT&CLIEN RUMAHAN UPLUAD" parent=global
add max-limit=5M 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=1M 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=15M name="1.USER HOTSPOT DOWN" parent=\
"7.HOTSPOT&CLIEN RUMAHAN DOWNLOAD" queue=pcq-download-default
add max-limit=2M name="1.USER HOTSPOT UP" parent=\
"8.HOTSPOT&CLIEN RUMAHAN UPLUAD" queue=pcq-upload-default
add max-limit=5M name="3.PAKET ICMP" packet-mark="ICMP DOWN" parent=global \
priority=1 queue=pcq-download-default

add max-limit=15M name="2.CLIEN RUMAHAN DOWN" parent=\


"7.HOTSPOT&CLIEN RUMAHAN DOWNLOAD" queue=pcq-download-default
add max-limit=2M 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=172.16.1.0/24 list="IP LOCAL"
add address=172.16.2.0/24 list="IP LOCAL"
add address=172.16.3.0/24 list="IP LOCAL"
add address=172.16.4.0/24 list="IP LOCAL"
add address=172.16.5.0/24 list="IP LOCAL"
add address=172.16.6.0/24 list="IP LOCAL"
add address=172.16.7.0/24 list="IP LOCAL"
add address=172.16.8.0/24 list="IP LOCAL"
add address=172.16.9.0/24 list="IP LOCAL"
add address=172.16.10.0/24 list="IP LOCAL"
add address=172.16.11.0/24 list="IP LOCAL"
add address=172.16.12.0/24 list="IP LOCAL"
add address=172.16.13.0/24 list="IP LOCAL"
add address=172.16.14.0/24 list="IP LOCAL"
add address=172.16.15.0/24 list="IP LOCAL"
add address=172.16.16.0/24 list="IP LOCAL"
add address=172.16.17.0/24 list="IP LOCAL"
add address=172.16.18.0/24 list="IP LOCAL"
add address=172.16.19.0/24 list="IP LOCAL"
add address=172.16.20.0/24 list="IP LOCAL"
add address=172.16.21.0/24 list="IP LOCAL"
SETTINGAN PROFIL HOTSPOT
DOWNLOAD PER USER 3M
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=3M 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")]
NO NAMA CLIEN IP DOWN UP
1 EGA_MULYA 192.168.55.51 2M 3M
2 rido 192.168.55.56 2M 3M
3 kampret 192.168.55.55 2M 3M
4 aja 192.168.55.59 2M 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=EGA_MULYADOWN connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address=192.168.55.51 in-interface=\
ether1-TRUNK new-packet-mark=EGA_MULYADOWN packet-mark="!ICMP DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment=EGA_MULYAUP connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=EGA_MULYAUP out-interface=\
ether1-TRUNK packet-mark="!ICMP DOWN" passthrough=yes src-address=\
192.168.55.51

/queue tree
add max-limit=2M name=EGA_MULYADOWN packet-mark=EGA_MULYADOWN parent="2.CLIEN RUMAHAN DOWN" \
queue=pcq-download-default
add max-limit=3M name=EGA_MULYAUP packet-mark=EGA_MULYAUP parent="2.CLIEN RUMAHAN UP" queue=\
pcq-upload-default

/ip firewall mangle


add action=mark-packet chain=forward comment=ridoDOWN connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address=192.168.55.56 in-interface=\
ether1-TRUNK new-packet-mark=ridoDOWN packet-mark="!ICMP DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment=ridoUP connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=ridoUP out-interface=\
ether1-TRUNK packet-mark="!ICMP DOWN" passthrough=yes src-address=\
192.168.55.56

/queue tree
add max-limit=2M name=ridoDOWN packet-mark=ridoDOWN parent="2.CLIEN RUMAHAN DOWN" \
queue=pcq-download-default
add max-limit=3M name=ridoUP packet-mark=ridoUP parent="2.CLIEN RUMAHAN UP" queue=\
pcq-upload-default

/ip firewall mangle


add action=mark-packet chain=forward comment=kampretDOWN connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address=192.168.55.55 in-interface=\
ether1-TRUNK new-packet-mark=kampretDOWN packet-mark="!ICMP DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment=kampretUP connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=kampretUP out-interface=\
ether1-TRUNK packet-mark="!ICMP DOWN" passthrough=yes src-address=\
192.168.55.55

/queue tree
add max-limit=2M name=kampretDOWN packet-mark=kampretDOWN parent="2.CLIEN RUMAHAN DOWN" \
queue=pcq-download-default
add max-limit=3M name=kampretUP packet-mark=kampretUP parent="2.CLIEN RUMAHAN UP" queue=\
pcq-upload-default
/ip firewall mangle
add action=mark-packet chain=forward comment=ajaDOWN connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" dst-address=192.168.55.59 in-interface=\
ether1-TRUNK new-packet-mark=ajaDOWN packet-mark="!ICMP DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment=ajaUP connection-mark=\
"!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=ajaUP out-interface=\
ether1-TRUNK packet-mark="!ICMP DOWN" passthrough=yes src-address=\
192.168.55.59

/queue tree
add max-limit=2M name=ajaDOWN packet-mark=ajaDOWN parent="2.CLIEN RUMAHAN DOWN" \
queue=pcq-download-default
add max-limit=3M name=ajaUP packet-mark=ajaUP 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=\
ether1-TRUNK 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=\
ether1-TRUNK 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

Вам также может понравиться