headlinenews

kursor

Firefly Pointer 2

G

Settingan Mikrotik

Thursday, 22 October 2015

Yang mau icip-icip settingan Mikrotik model seperti ini. (he..he..) silahkan copy paste script di bawah ini diterminal mikrotik anda :

[admin@MikroTik] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
 #     NAME                             TYPE               MTU L2MTU  MAX-L2MTU
 0  R  modem                            ether                  1500
 1  R  hub                                 ether                   1500


/ip address
add address=192.168.1.243/24 disabled=no interface=modem network=192.168.1.0
add address=192.168.0.254/24 disabled=no interface=hub network=192.168.0.0

/ip firewall nat
add action=masquerade chain=srcnat comment=Masquerade disabled=no \
    out-interface=modem to-addresses=0.0.0.0

/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.254 \
    scope=30 target-scope=10

/ip dns
set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB \
    max-udp-packet-size=4096 servers=8.8.8.8,8.8.4.4

/ip firewall address-list
add address=31.13.24.0/21 disabled=no list=facebook
add address=31.13.64.0/19 disabled=no list=facebook
add address=31.13.64.0/24 disabled=no list=facebook
add address=31.13.65.0/24 disabled=no list=facebook
add address=31.13.66.0/24 disabled=no list=facebook
add address=31.13.68.0/24 disabled=no list=facebook
add address=31.13.69.0/24 disabled=no list=facebook
add address=31.13.70.0/24 disabled=no list=facebook
add address=31.13.71.0/24 disabled=no list=facebook
add address=31.13.72.0/24 disabled=no list=facebook
add address=31.13.73.0/24 disabled=no list=facebook
add address=31.13.74.0/24 disabled=no list=facebook
add address=31.13.75.0/24 disabled=no list=facebook
add address=31.13.76.0/24 disabled=no list=facebook
add address=31.13.77.0/24 disabled=no list=facebook
add address=31.13.78.0/24 disabled=no list=facebook
add address=31.13.79.0/24 disabled=no list=facebook
add address=31.13.80.0/24 disabled=no list=facebook
add address=31.13.81.0/24 disabled=no list=facebook
add address=31.13.82.0/24 disabled=no list=facebook
add address=31.13.83.0/24 disabled=no list=facebook
add address=31.13.84.0/24 disabled=no list=facebook
add address=31.13.85.0/24 disabled=no list=facebook
add address=31.13.86.0/24 disabled=no list=facebook
add address=31.13.96.0/19 disabled=no list=facebook
add address=66.220.144.0/21 disabled=no list=facebook
add address=66.220.152.0/21 disabled=no list=facebook
add address=69.63.176.0/21 disabled=no list=facebook
add address=69.63.176.0/24 disabled=no list=facebook
add address=69.63.184.0/21 disabled=no list=facebook
add address=69.171.224.0/20 disabled=no list=facebook
add address=69.171.239.0/24 disabled=no list=facebook
add address=69.171.240.0/20 disabled=no list=facebook
add address=69.171.255.0/24 disabled=no list=facebook
add address=74.119.76.0/22 disabled=no list=facebook
add address=103.4.96.0/22 disabled=no list=facebook
add address=173.252.64.0/19 disabled=no list=facebook
add address=173.252.70.0/24 disabled=no list=facebook
add address=173.252.96.0/19 disabled=no list=facebook
add address=204.15.20.0/22 disabled=no list=facebook

/ip firewall layer7-protocol
add name=fb regexp="^.*(facebook).*\$"
add name=High regexp="^.*get.+\\.(exe|rar|iso|zip|7zip|0[0-9][1-9]|flv|mkv|avi|m\
    p4|3gp|rmvb|mp3|img|dat|mov).*\$"
add name=Mid regexp="^.*get.+\\.(zip|rar|7z).*\$"
add name=End regexp="^.*get.+\\.(pdf|doc|docx|xlsx|xls|rtf|ppt|ppt).*\$"
add name=Video regexp="http/(0\\\\.9|1\\\\.0|1\\\\.1)[\\\\x09-\\\\x0d ][1-5][0-9\
    ][0-9][\\\\x09-\\\\x0d -~]*(content-type: video)"
add name=limit-youtube regexp="^.+(c.youtube.com|googlevideo.com|cdn.dailymotion\
    .com|metacafe.com|mccont.com).*\$"
add name=audio-video regexp="\\.(ac3|aif|iff|m3u|m4a|mid|mp3|mpa|wav|wma|3g2|3gp\
    |asf|asx|avi|flv|mov|mp4|mpg|mpeg|arm|ogg|vob|wmv|mus|m4v|f4v|mkv|ram|rmvb|m\
    p2|mpe)"
add name=video-movie regexp=movie|video|tube|porn
add name=youtube regexp=youtube.com|googlevideo.com

/ip firewall mangle
add action=mark-connection chain=forward comment=PING disabled=no \
    new-connection-mark=icmp passthrough=yes protocol=icmp
add action=mark-packet chain=forward connection-mark=icmp disabled=no \
    new-packet-mark=icmp passthrough=no protocol=icmp
add action=mark-connection chain=forward comment=DNS disabled=no dst-port=53 \
    new-connection-mark=dns passthrough=yes protocol=tcp
add action=mark-connection chain=forward disabled=no dst-port=53 \
    new-connection-mark=dns passthrough=yes protocol=udp
add action=mark-packet chain=forward connection-mark=dns disabled=no \
    new-packet-mark=dns passthrough=no
add action=mark-connection chain=forward comment=GAME disabled=no dst-port=\
    7052,7413,7414 new-connection-mark=game passthrough=yes protocol=tcp
add action=mark-packet chain=forward connection-mark=game disabled=no \
    new-packet-mark=game passthrough=no
add action=mark-connection chain=forward comment=FB disabled=no \
    dst-address-list=facebook new-connection-mark=facebook passthrough=yes \
    protocol=tcp
add action=mark-connection chain=forward disabled=no layer7-protocol=fb \
    new-connection-mark=facebook passthrough=yes protocol=tcp
add action=mark-packet chain=forward connection-mark=facebook disabled=no \
    new-packet-mark=facebook passthrough=no
add action=mark-connection chain=forward comment=LIMIT disabled=no \
    layer7-protocol=End new-connection-mark=conn_limit packet-mark=!game \
    passthrough=yes src-address=192.168.0.0/24
add action=mark-connection chain=forward disabled=no layer7-protocol=High \
    new-connection-mark=conn_limit packet-mark=!game passthrough=yes \
    src-address=192.168.0.0/24
add action=mark-connection chain=forward disabled=no layer7-protocol=Mid \
    new-connection-mark=conn_limit packet-mark=!game passthrough=yes \
    src-address=192.168.0.0/24
add action=mark-connection chain=forward disabled=no layer7-protocol=Video \
    new-connection-mark=conn_limit packet-mark=!game passthrough=yes \
    src-address=192.168.0.0/24
add action=mark-connection chain=forward disabled=no layer7-protocol=\
    audio-video new-connection-mark=conn_limit packet-mark=!game passthrough=\
    yes src-address=192.168.0.0/24
add action=mark-connection chain=forward disabled=no layer7-protocol=\
    limit-youtube new-connection-mark=conn_limit packet-mark=!game \
    passthrough=yes src-address=192.168.0.0/24
add action=mark-connection chain=forward disabled=no layer7-protocol=\
    video-movie new-connection-mark=conn_limit packet-mark=!game passthrough=\
    yes src-address=192.168.0.0/24
add action=mark-connection chain=forward disabled=no layer7-protocol=youtube \
    new-connection-mark=conn_limit packet-mark=!game passthrough=yes \
    src-address=192.168.0.0/24
add action=mark-packet chain=forward connection-mark=conn_limit disabled=no \
    new-packet-mark=limit passthrough=no
add action=mark-connection chain=forward comment=BROWSING disabled=no \
    new-connection-mark=conn packet-mark=!game passthrough=yes src-address=\
    192.168.0.0/24
add action=mark-packet chain=forward connection-mark=conn disabled=no \
    new-packet-mark=conn passthrough=no

/queue type
set 0 kind=pfifo name=default pfifo-limit=50
set 1 kind=pfifo name=ethernet-default pfifo-limit=50
set 2 kind=sfq name=wireless-default sfq-allot=1514 sfq-perturb=5
set 3 kind=red name=synchronous-default red-avg-packet=1000 red-burst=20 \
    red-limit=60 red-max-threshold=50 red-min-threshold=10
set 4 kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=5
add kind=pcq name=pcq-download pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32
    pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=pcq-upload pcq-burst-rate=0 pcq-burst-threshold=0 \
    pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
    pcq-dst-address6-mask=128 pcq-limit=50 pcq-rate=0 pcq-src-address-mask=32
    pcq-src-address6-mask=128 pcq-total-limit=2000
set 7 kind=none name=only-hardware-queue
set 8 kind=mq-pfifo mq-pfifo-limit=50 name=multi-queue-ethernet-default
set 9 kind=pfifo name=default-small pfifo-limit=10

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=1200k name=Packet-Download packet-mark="" parent=hub \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=300k name=Packet-Upload packet-mark="" parent=modem \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Icmp. packet-mark=icmp parent=Packet-Upload priority=\
    1 queue=pcq-upload
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Game packet-mark=game parent=Packet-Download \
    priority=3 queue=pcq-download
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Game. packet-mark=game parent=Packet-Upload priority=\
    3 queue=pcq-upload
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Dns packet-mark=dns parent=Packet-Download priority=2 \
    queue=pcq-download
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Dns. packet-mark=dns parent=Packet-Upload priority=2 \
    queue=pcq-upload
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=1M name=Down packet-mark="" parent=Packet-Download priority=\
    8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=200k name=Up packet-mark="" parent=Packet-Upload priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Icmp packet-mark=icmp parent=Packet-Download \
    priority=1 queue=pcq-download
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=FB packet-mark=facebook parent=Down priority=1 queue=\
    pcq-download
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=FB. packet-mark=facebook parent=Up priority=1 queue=\
    pcq-upload
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Client packet-mark="" parent=Down priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Client. packet-mark="" parent=Up priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=conn packet-mark=conn parent=Client priority=1 queue=\
    pcq-download
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=750k name=limit packet-mark=limit parent=Client priority=8 \
    queue=pcq-download
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=150k name=limit. packet-mark=limit parent=Client. priority=8 \
    queue=pcq-upload
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=conn. packet-mark=conn parent=Client. priority=1 \
    queue=pcq-upload









No comments :

Post a Comment