Sunday, January 29, 2012

Marking Game Online Di Mikrotik

Marking beberapa koneksi game online di mikrotik dengan speedy dan wireless ( 2 Provider). Disini kita akan mengarahkan koneksi beberapa game ke koneksi wireless sedangkan speedy dipergunakan untuk browsing.
Game yang dimarking:
- Pointblank
- Lostsaga
- Dota
- Freestyle
- CSO

Berikut Rule2nya :
/ ip firewall mangle
add chain=prerouting in-interface=lan protocol=tcp dst-port=39190-49100 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="PB" disabled=no


 add chain=prerouting in-interface=lan protocol=tcp dst-port=9376-9377 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="AVALON " disabled=no
 add chain=prerouting in-interface=lan protocol=tcp dst-port=9300-9700 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Grand Chase " disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=9600 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="CrazyKart 2" disabled=no
 add chain=prerouting in-interface=lan protocol=tcp dst-port=8085 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="WOW AMPM" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=7341-7451 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="X-SHOT" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=7777 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Lineage2" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=5126-5171 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Fresh Ragnarok" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=5121 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Zeus RO" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=5105 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="RAN Online" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=4300 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Atlantica Online" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=3010 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Tantra Online" disabled=no
 add chain=prerouting in-interface=lan protocol=tcp dst-port=2001 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Idol Street" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=1818 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Seal Online" disabled=no
 add chain=prerouting in-interface=lan protocol=udp dst-port=39190-49100 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="PB" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=10002-10020 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="freestyle" disabled=no
add chain=prerouting in-interface=lan protocol=udp dst-port=10002-10020 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="freestyle" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=14009 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Lostsaga" disabled=no
add chain=prerouting in-interface=lan protocol=udp dst-port=14009 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="Lostsaga" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=47611 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="CSO" disabled=no
add chain=prerouting in-interface=lan protocol=udp dst-port=47611 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="CSO" disabled=no
add chain=prerouting in-interface=lan protocol=tcp dst-port=6000-6152 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="dota" disabled=no
add chain=prerouting in-interface=lan protocol=udp dst-port=6000-6152 action=mark-connection \
    new-connection-mark=game passthrough=yes comment="dota" disabled=no
add chain=prerouting in-interface=lan connection-mark=game action=mark-routing new-routing-mark=game \
    passthrough=no comment="game" disabled=no
add chain=prerouting connection-mark=!game action=mark-connection new-connection-mark=speedy \
    passthrough=yes comment="mark connection speedy" disabled=no
add chain=prerouting connection-mark=speedy action=mark-packet new-packet-mark=speedy passthrough=no \
    comment="" disabled=no

/ ip firewall nat
add chain=srcnat src-address-list=ipwarnet action=masquerade comment="" disabled=no

/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.144.65 scope=255 target-scope=10 routing-mark=game \
    comment="mlink" disabled=no
add dst-address=0.0.0.0/0 gateway=125.165.124.1 scope=255 target-scope=10 comment="speedy" \
    disabled=no

/ queue simple
add name="warnet" dst-address=0.0.0.0/0 interface=all parent=none packet-marks=speedy direction=both \
    priority=8 queue=default-small/default-small limit-at=0/0 max-limit=512000/2000000 \
    total-queue=default-small disabled=no
add name="kom7" target-addresses=192.168.1.9/32 dst-address=0.0.0.0/0 interface=all parent=warnet \
    packet-marks=speedy direction=both priority=3 queue=default-small/default-small \
    limit-at=50000/100000 max-limit=128000/400000 total-queue=default-small disabled=no
add name="kom1" target-addresses=192.168.1.3/32 dst-address=0.0.0.0/0 interface=all parent=warnet \
    packet-marks=speedy direction=both priority=3 queue=default-small/default-small \
    limit-at=50000/100000 max-limit=128000/400000 total-queue=default-small disabled=no
add name="kom14" target-addresses=192.168.1.16/32 dst-address=0.0.0.0/0 interface=all parent=warnet \
    packet-marks=speedy direction=both priority=3 queue=default-small/default-small \
    limit-at=50000/100000 max-limit=128000/400000 total-queue=default-small disabled=no
add name="kom2" target-addresses=192.168.1.4/32 dst-address=0.0.0.0/0 interface=all parent=warnet \
    packet-marks=speedy direction=both priority=3 queue=default-small/default-small \
    limit-at=50000/100000 max-limit=128000/400000 total-queue=default-small disabled=no
add name="kom4" target-addresses=192.168.1.6/32 dst-address=0.0.0.0/0 interface=all parent=warnet \
    packet-marks=speedy direction=both priority=3 queue=default-small/default-small \
    limit-at=50000/100000 max-limit=128000/400000 total-queue=default-small disabled=no
add name="kom5" target-addresses=192.168.1.7/32 dst-address=0.0.0.0/0 interface=all parent=warnet \
    packet-marks=speedy direction=both priority=3 queue=default-small/default-small \
    limit-at=50000/100000 max-limit=128000/400000 total-queue=default-small disabled=no
add name="kom6" target-addresses=192.168.1.8/32 dst-address=0.0.0.0/0 interface=all parent=warnet \
    packet-marks=speedy direction=both priority=3 queue=default-small/default-small \
    limit-at=50000/100000 max-limit=128000/400000 total-queue=default-small disabled=no
add name="kom8" target-addresses=192.168.1.10/32 dst-address=0.0.0.0/0 interface=all parent=warnet \
    packet-marks=speedy direction=both priority=3 queue=default-small/default-small \
    limit-at=50000/100000 max-limit=128000/400000 total-queue=default-small disabled=no

Selamat Mencoba

No comments:

Post a Comment