Labels

Selasa, 14 Mei 2013

Bukan Loadbalance

Langsung aja di mulai,,,,,
Sesajen Wajib
  1. Kopi Hitam
  2. Malboro 

Set Interface











IP Address











mangle nya,,,di copas aja :D
Mangle Game (simpan Paling atas, di bawah mangle proxy)
add action=mark-connection chain=prerouting comment=\
    |||||||||||||GAME||||||||||| disabled=no dst-port=40000-40010 \
    new-connection-mark=Game passthrough=yes protocol=udp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    39100,39110,39220,39190,49100 new-connection-mark=Game passthrough=yes \
    protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port="41130,41936,\
    40583,40440,40630,40676,40889,40275,41192,41710,40292,40679,40729" \
    new-connection-mark=Game passthrough=yes protocol=udp
add action=mark-connection chain=prerouting disabled=no dst-port=10001-10015 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=18901-18912 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=7777 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=1818 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=19101 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=27780 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=29000 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=22100 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=5121 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    6000-7000,8211 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=2001 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=9601-9602 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=8085 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=44405 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=13413 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=19000 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    5209,5208,667 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    10009,13008,16666,28012 new-connection-mark=Game passthrough=yes \
    protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    12020-12080,13000-13080 new-connection-mark=Game passthrough=yes \
    protocol=udp
add action=mark-connection chain=prerouting disabled=no dst-port=6000-6001 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=5340-5352 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    29000,29200,8081 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=10402 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=9600 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=15000-15002 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=16402-16502 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=5126 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=3010 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=11031 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=11100-11125 \
    new-connection-mark=Game passthrough=yes protocol=udp
add action=mark-connection chain=prerouting disabled=no dst-port=11400-11460 \
    new-connection-mark=Game passthrough=yes protocol=udp
add action=mark-connection chain=prerouting disabled=no dst-port=12011,12110 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=15001-15002 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    9999,42050-42055 new-connection-mark=Game passthrough=yes protocol=udp
add action=mark-connection chain=prerouting disabled=no dst-port=4300 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=5300 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=9351 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    27000-27050,8006,9061 new-connection-mark=Game passthrough=yes protocol=\
    udp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    40300-40700,41300-42000,42300-42600,43300-43400 new-connection-mark=Game \
    passthrough=yes protocol=udp
add action=mark-connection chain=prerouting disabled=no dst-port=\
    8001-8010,9015-9020,40300-40600,36567 new-connection-mark=Game \
    passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=6000-6400 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no dst-port=29000 \
    new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting connection-mark=Game disabled=no \
    in-interface=LAN new-routing-mark=Games passthrough=no
add action=mark-routing chain=prerouting disabled=no dst-port=843,9339,8890 \
    in-interface=LAN new-routing-mark=Poker passthrough=no \
    protocol=tcp
Mangle Untuk Hotspot
add action=jump chain=prerouting comment="Hotspot Jump Mangle" disabled=no \
    in-interface=to_hotspot jump-target=hotspot
add action=jump chain=postrouting disabled=no jump-target=hotspot \
    out-interface=to_hotspot
add action=mark-connection chain=prerouting comment="Hotspot Connections" \
    disabled=no dst-address=192.168.12.0/24 in-interface=to_hotspot \
    new-connection-mark=conn-up passthrough=yes
add action=mark-connection chain=postrouting disabled=no new-connection-mark=\
    conn-down out-interface=to_hotspot passthrough=yes src-address=\
    192.168.12.0/24
add action=mark-packet chain=prerouting comment="Hotspot Packets" \
    connection-mark=conn-up disabled=no new-packet-mark=packet-up \
    passthrough=yes
add action=mark-packet chain=postrouting connection-mark=conn-down disabled=\
    no new-packet-mark=packet-down passthrough=yes
add action=mark-packet chain=prerouting connection-mark=conn-up disabled=no \
    new-packet-mark=hotspot-up passthrough=no
add action=mark-packet chain=postrouting connection-mark=conn-down disabled=\
    no new-packet-mark=hotspot-down passthrough=no
add action=mark-packet chain=hotspot comment=Facebook disabled=no \
    dst-address-list=!warnet layer7-protocol=Facebook new-packet-mark=\
    facebook passthrough=no protocol=tcp
add action=mark-packet chain=hotspot comment=Download disabled=no \
    dst-address-list=!warnet layer7-protocol=Download new-packet-mark=\
    download passthrough=no protocol=tcp
add action=mark-packet chain=hotspot comment=Video disabled=no \
    dst-address-list=!warnet layer7-protocol=video new-packet-mark=video \
    passthrough=no protocol=tcp
add action=mark-packet chain=hotspot comment=Youtube disabled=no \
    dst-address-list=!warnet layer7-protocol=ytube new-packet-mark=youtube \
    passthrough=no protocol=tcp
hasil dari hotspot

















Layer7
/ip firewall layer7-protocol
add name=Download regexp="^.*get.+\\.(exe|rar|zip|7z|cab|asf|mov|wmv|mpg|mpeg|\
    mkv|avi|flv|pdf|wav|rm|mp3|mp4|ram|rmvb|dat|daa|iso|nrg|bin|vcd|mp2|3gp|mp\
    e|qt|raw|wma|ogg|doc|deb|tar|bzip|gzip|gzip2|0[0-9][0-9]).*\$"
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=ytube regexp="^.+(youtube).*\$"
add name=Facebook regexp=\
    "^.*get.+.facebook.com.*\$|^.*get.+.zynga.com.*\$|^.*get.+.fbcdn.net.*\$"
Untuk Queue Tree nya
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k \
    max-limit=1M name="Hotspot Browsing" packet-mark=hotspot-down parent=\
    "Hotspot Down" priority=2 queue=pcq-down-hotspot
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k \
    max-limit=1M name="Hotspot Facebook" packet-mark=facebook parent=\
    "Hotspot Down" priority=2 queue=pcq-down-hotspot
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k \
    max-limit=1M name="Hotspot Youtube" packet-mark=youtube,video parent=\
    "Hotspot Down" priority=8 queue=pcq-down-hotspot
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k \
    max-limit=1M name="Hotspot Download" packet-mark=download parent=\
    "Hotspot Down" priority=8 queue=pcq-down-hotspot
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k \
    max-limit=1M name="Hotspot Upload" packet-mark=hotspot-up parent=\
    "Hotspot Up" priority=8 queue=pcq-up-hotspot
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=yes limit-at=0 \
    max-limit=10M name="A PROXY" packet-mark=HIT parent=global-out priority=1 \
    queue=default

Hasilnya seperti ini

Untuk Routenya
Hasil dari semuanya

Note : 1 Mb speedy kalau di khususkan hanya untuk game saja mampu sampai 40 PC (posisi aman)
 















Tidak ada komentar:

Posting Komentar