Sunteți pe pagina 1din 16

SETTINGAN

NAMA INTERFACE WAN 3.INTERNET

SETTINGAN DARI ISP SATUAN


DOWNLOAD DARI ISP 50 M
UPLUAD DARI ISP 20 M

SETTINGAN DOWNLOAD SATUAN


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

SETTINGAN UPLUAD SATUAN


HOTSPOT&CLIEN RUMAHAN UPLUAD 10 M
USER HOTSPOT UP 10 M
CLIEN RUMAHAN UP 10 M

SETTINGAN GAME OTOMATIS DI KALKULASI DARI ISP SATUAN


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

WAJIB 192 168 23 0/24


192 168 24 0/24
192 168 25 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=\
!3.INTERNET 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=!3.INTERNET \
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=!3.INTERNET \
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=\
!3.INTERNET 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=!3.INTERNET 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=!3.INTERNET protocol=udp
add action=mark-connection chain=prerouting dst-address-list="IP GAME ONLINE" \
in-interface=!3.INTERNET 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=3.INTERNET 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=3.INTERNET 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=!3.INTERNET
add action=mark-connection chain=prerouting dst-address-list=\
"IP BUKAN PORT UMUM" in-interface=!3.INTERNET new-connection-mark=BERAT \
passthrough=yes

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

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


"7.HOTSPOT&CLIEN RUMAHAN DOWNLOAD" queue=pcq-download-default
add max-limit=10M 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.23.0/24 list="IP LOCAL"
add address=192.168.24.0/24 list="IP LOCAL"
add address=192.168.25.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"
add address=... list="IP LOCAL"
SETTINGAN PROFIL HOTSPOT
DOWNLOAD PER USER 3M
UPLUAD PER USER 2M
: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=2M 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=\ 3.INTERNET new-packet-mark=("paket-down"."$address")
\ "!PORT SELAIN PORT UMUM ( GAME )" new-packet-mark=("paket-up"."$address") out-interface=\ 3.INTERNET packet-mark="!ICMP DOW
pot" packet-mark=("paket-down"."$address") parent="1.USER HOTSPOT DOWN"];
spot" packet-mark=("paket-up"."$address") parent="1.USER HOTSPOT UP"];
paket-down"."$address") packet-mark="!ICMP DOWN" \ passthrough=yes];
packet-mark="!ICMP DOWN" passthrough=yes src-address=\ "$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=\
3.INTERNET 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=\
3.INTERNET 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=\
3.INTERNET 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=\
3.INTERNET 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=\
3.INTERNET 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=\
3.INTERNET 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=\
3.INTERNET 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=\
3.INTERNET 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=\
3.INTERNET 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=\
3.INTERNET 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

S-ar putea să vă placă și