View difference between Paste ID: 3bTQ2aAy and wxhFJJTR
SHOW: | | - or go back to the newest paste.
1
#asumsi ether1 = WAN
2
# ip games online copas di https://pastebin.com/UXupwxrd
3
/ip firewall layer7-protocol
4
add name=streaming regexp="^.+(mp4|3gp|flv|mkv)"
5
add name=youtube regexp="r[0-9]+---[a-z]+-+[a-z0-9-]+\\.googlevideo\\.com"
6
7
8
/ip firewall address-list
9
add address=10.0.0.0/8 list=private-lokal
10
add address=172.16.0.0/12 list=private-lokal
11
add address=192.168.0.0/16 list=private-lokal
12
13
/ip firewall mangle
14
add action=accept chain=input dst-address-list=private-lokal src-address-list=private-lokal
15
add action=accept chain=prerouting dst-address-list=private-lokal src-address-list=private-lokal
16
add action=accept chain=forward dst-address-list=private-lokal src-address-list=private-lokal
17
add action=accept chain=postrouting dst-address-list=private-lokal src-address-list=private-lokal
18
add action=accept chain=output dst-address-list=private-lokal src-address-list=private-lokal
19
add action=jump chain=input comment=qos-down in-interface=ether1 jump-target=qos-down
20
add action=jump chain=prerouting comment=qos-down in-interface=ether1 jump-target=qos-down
21
add action=jump chain=forward comment=qos-down in-interface=ether1 jump-target=qos-down
22
add action=mark-packet chain=qos-down comment=vip-down new-packet-mark=vip-down passthrough=no port=53,5353,8291 protocol=tcp
23
add action=mark-packet chain=qos-down comment=vip-down new-packet-mark=vip-down passthrough=no port=53,5353,8291 protocol=udp
24
add action=mark-packet chain=qos-down comment=vip-down new-packet-mark=vip-down passthrough=no protocol=igmp
25
add action=mark-packet chain=qos-down comment=vip-down new-packet-mark=vip-down passthrough=no protocol=icmp
26
add action=mark-packet chain=qos-down comment=port-down new-packet-mark=port-down passthrough=no port=21,22,2222,5938,8729,2001,2002,2003,8033,8123 protocol=tcp
27
add action=mark-packet chain=qos-down comment=port-down new-packet-mark=port-down passthrough=no port=21,22,2222,5938,8729,2001,2002,2003,8033,8123 protocol=udp
28
add action=mark-packet chain=qos-down comment=patch-game-down connection-rate=512k-100M new-packet-mark=patch-game-down passthrough=no src-address-list=games
29
add action=mark-packet chain=qos-down comment=streaming-down layer7-protocol=streaming new-packet-mark=streaming-down passthrough=no
30
add action=mark-packet chain=qos-down comment=streaming-down new-packet-mark=streaming-down passthrough=no port=182,1935,8777 protocol=tcp
31
add action=mark-packet chain=qos-down comment=streaming-down new-packet-mark=streaming-down passthrough=no port=182,1935,8777 protocol=udp
32
add action=mark-packet chain=qos-down comment=youtube-down layer7-protocol=youtube new-packet-mark=youtube-down passthrough=no
33
add action=mark-packet chain=qos-down comment=con-byte-down connection-rate=512k-100M new-packet-mark=con-byte-down passthrough=no
34
add action=mark-packet chain=qos-down comment=games-down new-packet-mark=games-down passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=\
35
    tcp src-address-list=games
36
add action=mark-packet chain=qos-down comment=games-down new-packet-mark=games-down passthrough=no port=!21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=\
37
    udp src-address-list=games
38
add action=mark-packet chain=qos-down comment=browsing-down new-packet-mark=browsing-down passthrough=no port=80,443,5050,8080 protocol=tcp
39
add action=mark-packet chain=qos-down comment=browsing-down new-packet-mark=browsing-down passthrough=no port=80,443,5050,8080 protocol=udp
40
add action=mark-packet chain=qos-down comment=unknown-down new-packet-mark=unknown-down passthrough=no
41
add action=return chain=qos-down comment=qos-down
42
add action=jump chain=forward comment=qos-up jump-target=qos-up out-interface=ether1
43
add action=jump chain=postrouting comment=qos-up jump-target=qos-up out-interface=ether1
44
add action=jump chain=output comment=qos-up jump-target=qos-up out-interface=ether1
45
add action=mark-packet chain=qos-up comment=vip-up new-packet-mark=vip-up passthrough=no port=53,5353,8291 protocol=tcp
46
add action=mark-packet chain=qos-up comment=vip-up new-packet-mark=vip-up passthrough=no port=53,5353,8291 protocol=udp
47
add action=mark-packet chain=qos-up comment=vip-up new-packet-mark=vip-up passthrough=no protocol=igmp
48
add action=mark-packet chain=qos-up comment=vip-up new-packet-mark=vip-up passthrough=no protocol=icmp
49
add action=mark-packet chain=qos-up comment=port-up new-packet-mark=port-up passthrough=no port=21,22,2222,5938,8729,2001,2002,2003,8033,8123 protocol=tcp
50
add action=mark-packet chain=qos-up comment=port-up new-packet-mark=port-up passthrough=no port=21,22,2222,5938,8729,2001,2002,2003,8033,8123 protocol=udp
51
add action=mark-packet chain=qos-up comment=patch-game-up connection-rate=512k-100M dst-address-list=games new-packet-mark=patch-game-up passthrough=no
52
add action=mark-packet chain=qos-up comment=streaming-up layer7-protocol=streaming new-packet-mark=streaming-up passthrough=no
53
add action=mark-packet chain=qos-up comment=streaming-up new-packet-mark=streaming-up passthrough=no port=182,1935,8777 protocol=tcp
54
add action=mark-packet chain=qos-up comment=streaming-up new-packet-mark=streaming-up passthrough=no port=182,1935,8777 protocol=udp
55
add action=mark-packet chain=qos-up comment=youtube-up layer7-protocol=youtube new-packet-mark=youtube-up passthrough=no
56
add action=mark-packet chain=qos-up comment=con-byte-up connection-rate=512k-100M new-packet-mark=con-byte-up passthrough=no
57
add action=mark-packet chain=qos-up comment=games-up dst-address-list=games new-packet-mark=games-up passthrough=no port=\
58
    !21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=tcp
59
add action=mark-packet chain=qos-up comment=games-up dst-address-list=games new-packet-mark=games-up passthrough=no port=\
60
    !21,22,23,80,81,88,5050,843,443,182,8777,1935,8000-8081 protocol=udp
61
add action=mark-packet chain=qos-up comment=browsing-up new-packet-mark=browsing-up passthrough=no port=80,443,5050,8080 protocol=tcp
62
add action=mark-packet chain=qos-up comment=browsing-up new-packet-mark=browsing-up passthrough=no port=80,443,5050,8080 protocol=udp
63
add action=mark-packet chain=qos-up comment=unknown-up new-packet-mark=unknown-up passthrough=no
64
add action=return chain=qos-up comment=qos-up
65
66
67
/queue tree
68
add max-limit=1G name=QUALITY-OF-SERVICES parent=global queue=default
69
add max-limit=1G name=01.INCOMING parent=QUALITY-OF-SERVICES queue=default
70
add limit-at=64k max-limit=1G name=I.01.VIP packet-mark=vip-down parent=01.INCOMING priority=1 queue=default
71
add limit-at=5M max-limit=1G name=I.02.GAMES-ONLINE packet-mark=games-down parent=01.INCOMING priority=3 queue=default
72
add limit-at=50M max-limit=1G name=I.03.BUKAN-GAMES parent=01.INCOMING queue=default
73
add limit-at=1M max-limit=1G name=I.04.BROWSING packet-mark=browsing-down parent=I.03.BUKAN-GAMES priority=4 queue=pcq-download-default
74
add limit-at=5M max-limit=1G name=I.05.PATCH-GAMES packet-mark=patch-game-down parent=I.03.BUKAN-GAMES priority=4 queue=pcq-download-default
75
add limit-at=1M max-limit=1G name=I.06.PORT-SPESIAL packet-mark=port-down parent=I.03.BUKAN-GAMES priority=4 queue=pcq-download-default
76
add limit-at=1M max-limit=1G name=I.07.YOUTUBE packet-mark=youtube-down parent=I.03.BUKAN-GAMES priority=5 queue=pcq-download-default
77
add limit-at=1M max-limit=1G name=I.08.STREAMING packet-mark=streaming-down parent=I.03.BUKAN-GAMES priority=6 queue=pcq-download-default
78
add limit-at=1M max-limit=1G name=I.09.DOWNLOAD packet-mark=con-byte-down parent=I.03.BUKAN-GAMES priority=7 queue=pcq-download-default
79
add limit-at=1M max-limit=1G name=I.10.UNKNOWN packet-mark=unknown-down parent=I.03.BUKAN-GAMES queue=pcq-download-default
80
add max-limit=1G name=02.OUTGOING parent=QUALITY-OF-SERVICES queue=default
81
add limit-at=64k max-limit=1G name=O.01.VIP packet-mark=vip-up parent=02.OUTGOING priority=1 queue=default
82
add limit-at=1M max-limit=1G name=O.02.GAMES-ONLINE packet-mark=games-up parent=02.OUTGOING priority=3 queue=default
83
add limit-at=20M max-limit=1G name=O.03.BUKAN-GAMES parent=02.OUTGOING queue=default
84
add limit-at=1M max-limit=1G name=O.04.BROWSING packet-mark=browsing-up parent=O.03.BUKAN-GAMES priority=4 queue=pcq-upload-default
85
add limit-at=1M max-limit=1G name=O.05.PATCH-GAMES packet-mark=patch-game-up parent=O.03.BUKAN-GAMES priority=4 queue=pcq-upload-default
86
add limit-at=1M max-limit=1G name=O.06.PORT-SPESIAL packet-mark=port-up parent=O.03.BUKAN-GAMES priority=4 queue=pcq-upload-default
87
add limit-at=1M max-limit=1G name=O.07.YOUTUBE packet-mark=youtube-up parent=O.03.BUKAN-GAMES priority=5 queue=pcq-upload-default
88
add limit-at=1M max-limit=1G name=O.08.STREAMING packet-mark=streaming-up parent=O.03.BUKAN-GAMES priority=6 queue=pcq-upload-default
89
add limit-at=1M max-limit=1G name=O.09.UPLOAD packet-mark=con-byte-up parent=O.03.BUKAN-GAMES priority=7 queue=pcq-upload-default
90
add limit-at=1M max-limit=1G name=O.10.UNKNOWN packet-mark=unknown-up parent=O.03.BUKAN-GAMES queue=pcq-upload-default