Setting NAT
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy1
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy2
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy1
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy2
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy3
Setting Buat Mangle
add action=mark-connection chain=prerouting comment=”Ayo Dance” disabled=no dst-port=18900-18910 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Seal Online” disabled=no dst-port=1818 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Lineage 2″ disabled=no dst-port=7777 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=IDS disabled=no dst-port=2001 new-connection-mark=\
game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=PB-UDP disabled=no dst-port=40000-40010 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=PB-TCP disabled=no dst-port=39000-40000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Ghost Online” disabled=no dst-port=19101 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=RF-Elven disabled=no dst-port=27780 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Perfect World” disabled=no dst-port=29000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Rohan disabled=no dst-port=22100 new-connection-mark=\
game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Zeus RO” disabled=no dst-port=5121 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=DOTA disabled=no dst-port=6000-6125 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Crazy Kart” disabled=no dst-port=9600-9602 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”WOW AMPM” disabled=no dst-port=8085 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Drift City” disabled=no dst-port=11011-11041 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=GetAmped disabled=no dst-port=13413 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Yullgang disabled=no dst-port=19000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”RAN Online” disabled=no dst-port=5105 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Cross Fire TCP” disabled=no dst-port=\
10009,13008,16666,28012 new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Cross Fire UDP” disabled=no dst-port=\
12020-12080,13000-13080 new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=”War Rock” disabled=no dst-port=5340-5352 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Fast Black” disabled=no dst-port=6000-6001 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Rose Online” disabled=no dst-port=29200 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Crazy Kart 2″ disabled=no dst-port=9600 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Return of Warrior” disabled=no dst-port=10402 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Luna Online” disabled=no dst-port=15000-15002 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Runes of Magic” disabled=no dst-port=16400-16502 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Fresh Ragnarok PS” disabled=no dst-port=5171 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Tantra Online” disabled=no dst-port=3010 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Atlantica disabled=no dst-port=4300 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”ECO Online” disabled=no dst-port=12011,12110 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Cabal Indonesia” disabled=no dst-port=15000-15002 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Avalon disabled=no dst-port=9376-9377 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”X-Shot UDP” disabled=no dst-port=7777-7977,30000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=”3 Kingdoms” disabled=no dst-port=15000-15002 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=”Grand Chase TCP” disabled=no dst-port=\
9300,9400,9700 new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Grand Chase UDP” disabled=no dst-port=9401,9600 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=MAKO disabled=no dst-port=21000-21020 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting disabled=no connection-mark=game-online-indonesia \
new-routing-mark=game.route passthrough=no
/ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=ADSL-1 passthrough=yes connection-state=new in-interface=lokal nth=3,1 comment="" disabled=no
add action=mark-connection chain=prerouting comment=”Ayo Dance” disabled=no dst-port=18900-18910 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Seal Online” disabled=no dst-port=1818 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Lineage 2″ disabled=no dst-port=7777 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=IDS disabled=no dst-port=2001 new-connection-mark=\
game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=PB-UDP disabled=no dst-port=40000-40010 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=PB-TCP disabled=no dst-port=39000-40000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Ghost Online” disabled=no dst-port=19101 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=RF-Elven disabled=no dst-port=27780 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Perfect World” disabled=no dst-port=29000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Rohan disabled=no dst-port=22100 new-connection-mark=\
game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Zeus RO” disabled=no dst-port=5121 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=DOTA disabled=no dst-port=6000-6125 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Crazy Kart” disabled=no dst-port=9600-9602 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”WOW AMPM” disabled=no dst-port=8085 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Drift City” disabled=no dst-port=11011-11041 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=GetAmped disabled=no dst-port=13413 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Yullgang disabled=no dst-port=19000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”RAN Online” disabled=no dst-port=5105 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Cross Fire TCP” disabled=no dst-port=\
10009,13008,16666,28012 new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Cross Fire UDP” disabled=no dst-port=\
12020-12080,13000-13080 new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=”War Rock” disabled=no dst-port=5340-5352 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Fast Black” disabled=no dst-port=6000-6001 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Rose Online” disabled=no dst-port=29200 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Crazy Kart 2″ disabled=no dst-port=9600 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Return of Warrior” disabled=no dst-port=10402 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Luna Online” disabled=no dst-port=15000-15002 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Runes of Magic” disabled=no dst-port=16400-16502 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Fresh Ragnarok PS” disabled=no dst-port=5171 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Tantra Online” disabled=no dst-port=3010 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Atlantica disabled=no dst-port=4300 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”ECO Online” disabled=no dst-port=12011,12110 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Cabal Indonesia” disabled=no dst-port=15000-15002 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=Avalon disabled=no dst-port=9376-9377 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”X-Shot UDP” disabled=no dst-port=7777-7977,30000 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=”3 Kingdoms” disabled=no dst-port=15000-15002 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=”Grand Chase TCP” disabled=no dst-port=\
9300,9400,9700 new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”Grand Chase UDP” disabled=no dst-port=9401,9600 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=MAKO disabled=no dst-port=21000-21020 \
new-connection-mark=game-online-indonesia passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting disabled=no connection-mark=game-online-indonesia \
new-routing-mark=game.route passthrough=no
/ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=ADSL-1 passthrough=yes connection-state=new in-interface=lokal nth=3,1 comment="" disabled=no
/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=jalur-1 passthrough=no in-interface=lokal connection-mark=ADSL-1 comment="" disabled=no
/ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=ADSL-2 passthrough=yes connection-state=new in-interface=lokal nth=3,2 comment="" disabled=no
/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=jalur-2 passthrough=no in-interface=lokal connection-mark=ADSL-2 comment="" disabled=no
/ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=ADSL-3 passthrough=yes connection-state=new in-interface=lokal nth=3,1 comment="" disabled=no
/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=jalur-3 passthrough=no in-interface=lokal connection-mark=ADSL-3 comment="" disabled=no
maka akan menjadi seperti ini
/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=jalur-3 passthrough=no in-interface=lokal connection-mark=ADSL-3 comment="" disabled=no
maka akan menjadi seperti ini
Setting Routenya
/ ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark=jalur-1 comment="" disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=192.168.2.1 scope=255 target-scope=10 routing-mark=jalur-2 comment="" disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark=jalur-1 comment="" disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=192.168.2.1 scope=255 target-scope=10 routing-mark=jalur-2 comment="" disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=255 target-scope=10 routing-mark=game route comment="" disabled=no
/ ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 comment="primary connection" disabled=no
di NTh nya kok new-routing-mark=jalur-3 , di route nya routing-mark=game route ..... masih belajaran juga ya om
BalasHapusiya om saya masih belajar,,, silahkan di lihat om jalur 3 untuk apa,,
Hapussaya pakai 2 modem satu untuk browsing satu lagi untuk games anehnya game poinblank tidak masuk jalur game apa yng salah dengan settingan mikrotiknya
BalasHapusgame berdasarkan port+IP ngga? baiknya sih game berdasarkan port dan IP gamesnya
BalasHapus/ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=ADSL-3 passthrough=yes connection-state=new in-interface=lokal nth=3,1 comment="" disabled=no
Hapus/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=jalur-3 passthrough=no in-interface=lokal connection-mark=ADSL-3 comment="" disabled=no
-->nth=3,1 emang seperti itu ya?
Pertamax
BalasHapus#ganteng
Halo gan, boleh nanya mangle untuk browsing client per ip nya? saat ini topologi saya sama dengan yang agan buat tetapi saya masih bingung dengan mangle browsing per ipnya. Mohon bantuannya
BalasHapus