Mikrotik - Load Balancing Di Game Center
modem 1
192.168.1.1
|
|
192.168.1.2
MIkrotik Load Balancingâ€â€Ã¢â‚¬â€œ192.168.0.254–hubâ€â€Ã¢â‚¬â€-Client
192.168.2.1
|
|
modem 2
192.168.2.2
Pc-Router Speknya
PIII -1Ghz-Memory 256Mhz -Hardisk 40 Gb
Konfigurasinya
1. Interface Konfigurasi
/ interface ethernet
set Modem1 name=â€ÂModem1? mtu=1500 mac-address=00:10:4B:0D:95:02 arp=enabled \
disable-running-check=yes auto-negotiation=yes full-duplex=yes \
cable-settings=default speed=100Mbps comment=â€Â†disabled=no
set Lan name=â€ÂLan†mtu=1500 mac-address=00:0D:88:B2:7D:50 arp=enabled \
disable-running-check=yes auto-negotiation=yes full-duplex=yes \
cable-settings=default speed=100Mbps comment=â€Â†disabled=no
set Modem2 name=â€ÂModem2? mtu=1500 mac-address=00:13:46:2C:DE:13 arp=enabled \
disable-running-check=yes auto-negotiation=yes full-duplex=yes \
cable-settings=default speed=100Mbps comment=â€Â†disabled=no
2. Ip Address Konfigurasi
/ ip address
add address=192.168.0.254/24 network=192.168.0.0 broadcast=192.168.0.255 \
interface=Lan comment=â€Â†disabled=no
add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.255 \
interface=Modem1 comment=â€Â†disabled=no
add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255 \
interface=Modem2 comment=â€Â†disabled=no
3. Routing IP
/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.2.1 scope=255 target-scope=10 \
routing-mark=odd comment=â€Â†disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 \
routing-mark=even comment=â€Â†disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 \
comment=â€Â†disabled=no
4. Mangle Marking Paket
/ ip firewall mangle
a. Load Balancing
add chain=prerouting in-interface=Lan connection-state=new nth=1,1,0 \
action=mark-connection new-connection-mark=odd passthrough=yes \
comment=â€ÂLoad Balancing†disabled=no
add chain=prerouting in-interface=Lan connection-mark=odd action=mark-routing \
new-routing-mark=odd passthrough=no comment=â€Â†disabled=no
add chain=prerouting in-interface=Lan connection-state=new nth=1,1,1 \
action=mark-connection new-connection-mark=even passthrough=yes comment=â€Â†\
disabled=no
add chain=prerouting in-interface=Lan connection-mark=even action=mark-routing \
new-routing-mark=even passthrough=no comment=â€Â†disabled=no
b. Turunin latensy ( ping ke dns )
add chain=prerouting src-address=192.168.0.0/24 protocol=icmp \
action=mark-connection new-connection-mark=ICMP-CM passthrough=yes \
comment=â€ÂToS†disabled=no
add chain=prerouting connection-mark=ICMP-CM action=mark-packet \
new-packet-mark=ICMP-PM passthrough=yes comment=â€Â†disabled=no
add chain=prerouting packet-mark=ICMP-PM action=change-tos new-tos=min-delay \
comment=â€Â†disabled=no
add chain=prerouting src-address=192.168.0.0/24 protocol=tcp dst-port=53 \
action=mark-connection new-connection-mark=DNS-CM passthrough=yes \
comment=â€Â†disabled=no
add chain=prerouting src-address=192.168.0.0/24 protocol=udp dst-port=53 \
action=mark-connection new-connection-mark=DNS-CM passthrough=yes \
comment=â€Â†disabled=no
add chain=prerouting connection-mark=DNS-CM action=mark-packet \
new-packet-mark=DNS-PM passthrough=yes comment=â€Â†disabled=no
add chain=prerouting packet-mark=DNS-PM action=change-tos new-tos=min-delay \
comment=â€Â†disabled=no
c. Tandain Services Yang mau di prioritykan
add chain=prerouting protocol=tcp dst-port=80 action=mark-connection \
new-connection-mark=http_conn passthrough=yes comment=â€ÂTandai Service†\
disabled=no
add chain=prerouting connection-mark=http_conn action=mark-packet \
new-packet-mark=http passthrough=no comment=â€Â†disabled=no
add chain=prerouting protocol=tcp dst-port=6000-7000 action=mark-connection \
new-connection-mark=irc_conn passthrough=yes comment=â€Â†disabled=no
add chain=prerouting connection-mark=irc_conn action=mark-packet \
new-packet-mark=irc passthrough=no comment=â€Â†disabled=no
add chain=prerouting protocol=tcp dst-port=5050-5061 action=mark-connection \
new-connection-mark=ym_conn passthrough=yes comment=â€Â†disabled=no
add chain=prerouting connection-mark=ym_conn action=mark-packet \
new-packet-mark=ym passthrough=no comment=â€Â†disabled=no
add chain=prerouting protocol=tcp dst-port=8291 action=mark-connection \
new-connection-mark=mt_conn passthrough=yes comment=â€Â†disabled=no
add chain=prerouting connection-mark=mt_conn action=mark-packet \
new-packet-mark=mt passthrough=no comment=â€Â†disabled=no
add chain=prerouting protocol=tcp dst-port=443 action=mark-connection \
new-connection-mark=http_conn passthrough=yes comment=â€Â†disabled=no
d. Optimasi Proxy pada paket mark
add chain=prerouting src-address=192.168.0.0/24 action=mark-packet \
new-packet-mark=Naik passthrough=no comment=â€ÂUp Traffic†disabled=yes
add chain=forward src-address=192.168.0.0/24 action=mark-connection \
new-connection-mark=Koneksi passthrough=yes comment=â€ÂConn-Mark†\
disabled=yes
add chain=output out-interface=Lan dst-address=192.168.0.0/24 \
action=mark-packet new-packet-mark=Turun passthrough=no comment=â€ÂDown-Via \
Proxy†disabled=yes
4. Filter Firewall
/ ip firewall filter
a. penentuan proteksi router
add chain=input connection-state=invalid action=drop comment=â€ÂDrop invalid \
connections†disabled=no
add chain=input connection-state=established action=accept comment=â€ÂAllow \
esatblished connections†disabled=no
add chain=input connection-state=related action=accept comment=â€ÂAllow related \
connections†disabled=no
add chain=input protocol=udp action=accept comment=â€ÂAllow UDP†disabled=no
add chain=input protocol=icmp action=accept comment=â€ÂAllow ICMP†disabled=no
add chain=input in-interface=!Modem1 action=accept comment=â€ÂAllow connection \
to router from local network†disabled=no
add chain=input in-interface=!Modem2 action=accept comment=â€Â†disabled=no
add chain=input action=accept comment=â€Â†disabled=no
add chain=forward in-interface=Lan protocol=tcp dst-port=6112 \
connection-limit=100,32 action=reject reject-with=icmp-network-unreachable \
comment=â€Â†disabled=no
b. penentuan proteksi dari akses gain ke router
add chain=input protocol=tcp psd=21,3s,3,1 action=add-src-to-address-list \
address-list=â€Âport scanners†address-list-timeout=2w comment=â€ÂPort \
scanners to list †disabled=no
add chain=input protocol=tcp tcp-flags=fin,!syn,!rst,!psh,!ack,!urg \
action=add-src-to-address-list address-list=â€Âport scanners†\
address-list-timeout=2w comment=â€ÂNMAP FIN Stealth scan†disabled=no
add chain=input protocol=tcp tcp-flags=fin,syn action=add-src-to-address-list \
address-list=â€Âport scanners†address-list-timeout=2w comment=â€ÂSYN/FIN \
scan†disabled=no
add chain=input protocol=tcp tcp-flags=syn,rst action=add-src-to-address-list \
address-list=â€Âport scanners†address-list-timeout=2w comment=â€ÂSYN/RST \
scan†disabled=no
add chain=input protocol=tcp tcp-flags=fin,psh,urg,!syn,!rst,!ack \
action=add-src-to-address-list address-list=â€Âport scanners†\
address-list-timeout=2w comment=â€ÂFIN/PSH/URG scan†disabled=no
add chain=input protocol=tcp tcp-flags=fin,syn,rst,psh,ack,urg \
action=add-src-to-address-list address-list=â€Âport scanners†\
address-list-timeout=2w comment=â€ÂALL/ALL scan†disabled=no
add chain=input protocol=tcp tcp-flags=!fin,!syn,!rst,!psh,!ack,!urg \
action=add-src-to-address-list address-list=â€Âport scanners†\
address-list-timeout=2w comment=â€ÂNMAP NULL scan†disabled=no
add chain=input src-address-list=â€Âport scanners†action=drop comment=â€Âdropping \ port scanners†disabled=no
c. Drop Port Aneh2
add chain=virus protocol=tcp dst-port=135-139 action=drop comment=â€ÂDrop \
Blaster Worm†disabled=no
add chain=virus protocol=udp dst-port=135-139 action=drop comment=â€ÂDrop \
Messenger Worm†disabled=no
add chain=virus protocol=tcp dst-port=445-3000 action=drop comment=â€ÂDrop \
Blaster Worm†disabled=no
add chain=virus protocol=udp dst-port=445-3000 action=drop comment=â€ÂDrop \
Blaster Worm†disabled=no
add chain=virus protocol=tcp dst-port=593 action=drop comment=â€Â________†\
disabled=no
add chain=virus protocol=udp dst-port=7000 action=drop comment=â€ÂSetan1? \
disabled=no
add chain=virus protocol=tcp dst-port=100-1000 action=drop comment=â€ÂSetan1? \
disabled=no
add chain=virus protocol=udp dst-port=100-1000 action=drop comment=â€ÂDrop \
Messenger Worm†disabled=no
add chain=virus protocol=tcp dst-port=1000-3000 action=drop comment=â€ÂSetan1? \
disabled=no
add chain=virus protocol=udp dst-port=1000-3000 action=drop comment=â€ÂDrop \
Messenger Worm†disabled=no
add chain=virus protocol=tcp dst-port=40000-50000 action=drop comment=â€ÂSetan1? \
disabled=no
add chain=virus protocol=udp dst-port=40000-50000 action=drop comment=â€ÂDrop \
Messenger Worm†disabled=no
add chain=virus protocol=tcp dst-port=7000 action=drop comment=â€ÂSetan1? \
disabled=no
add chain=virus protocol=udp dst-port=135-139 action=drop comment=â€ÂDrop \
Messenger Worm†disabled=no
add chain=virus protocol=tcp dst-port=7000 action=drop comment=â€ÂSetan1? \
disabled=no
add chain=virus protocol=tcp dst-port=25 action=drop comment=â€ÂDrop Blaster \
Worm†disabled=no
add chain=virus protocol=udp dst-port=135-139 action=drop comment=â€ÂDrop \
Messenger Worm†disabled=no
add chain=virus action=return comment=â€Â†disabled=no
add chain=virus protocol=tcp dst-port=110 action=drop comment=â€ÂDrop Blaster \
Worm†disabled=no
5. Proxy
a. Aktivasi proxy di ip web proxy
/ ip web-proxy
set enabled=yes src-address=0.0.0.0 port=8080 hostname=â€Âproxy.phonix.net†\
transparent-proxy=yes parent-proxy=0.0.0.0:0 \
cache-administrator=â€Âwebmaster@phonix.net†max-object-size=4096KiB \
cache-drive=system max-cache-size=unlimited max-ram-cache-size=unlimited
max-cache-size=unlimited max-ram-cache-size=unlimited –>> tegantung besar hardisk
b. memblok web disini
/ ip web-proxy access
add dst-port=23-25 action=deny comment=â€Âblock telnet & spam e-mail relaying†\
disabled=no
c. optimasi cache isi web
/ ip web-proxy cache
add action=allow comment=â€Â†disabled=no
add url=â€Âhttp*youtube*get_video*†action=allow comment=â€ÂYouTube†disabled=no
add url=â€Âhttp*friendster.com†action=allow comment=â€ÂFriendster†disabled=no
add url=â€Âhttp*pu.go.id†action=allow comment=â€ÂPU†disabled=no
add url=â€Âhttp*detik*com†action=allow comment=â€ÂDetik†disabled=no
add url=â€Âhttp*domai.com†action=allow comment=â€ÂDomai†disabled=no
add url=â€Âhttp*nigmae.net†action=allow comment=â€ÂNigmae†disabled=no
add url=â€Âhttp*kompas.com†action=allow comment=â€ÂKompas†disabled=no
add url=â€Âhttp*lalatx.com†action=allow comment=â€ÂLalatx†disabled=no
add url=â€Âhttp*yahoo.com†action=allow comment=â€ÂYahoo†disabled=no
add url=â€Âhttp*kapanlagi.com†action=allow comment=â€ÂKapanlagi†disabled=no
add url=â€Âhttp*plasa.com†action=allow comment=â€ÂPlasa†disabled=no
add url=â€Âhttp*kaskus.us†action=allow comment=â€ÂKaskus†disabled=no
add url=â€Âhttp*avaxhome*org†action=allow comment=â€ÂAvaxhome†disabled=no
add url=â€Âwww.worth1000.com†action=allow comment=â€ÂWorth1000? disabled=no
add action=allow comment=â€ÂAllow sado alahe†disabled=no
add url=â€Â:cgi-bin \\?†action=deny comment=â€Âdon’t cache dynamic http pages†\
disabled=no
6. Quee type
/ queue type
set default name=â€Âdefault†kind=pfifo pfifo-limit=50
set ethernet-default name=â€Âethernet-default†kind=pfifo pfifo-limit=50
set wireless-default name=â€Âwireless-default†kind=sfq sfq-perturb=5 \
sfq-allot=1514
set synchronous-default name=â€Âsynchronous-default†kind=red red-limit=60 \
red-min-threshold=10 red-max-threshold=50 red-burst=20 red-avg-packet=1000
set hotspot-default name=â€Âhotspot-default†kind=sfq sfq-perturb=5 \
sfq-allot=1514
a. pcq konsep
add name=â€Âpcq-download†kind=pcq pcq-rate=0 pcq-limit=50 \
pcq-classifier=dst-address pcq-total-limit=2000
add name=â€Âpcq-upload†kind=pcq pcq-rate=0 pcq-limit=50 \
pcq-classifier=src-address pcq-total-limit=2000
b. limit bw untuk icmp
add name=â€ÂPFIFO-64? kind=pfifo pfifo-limit=64
add name=â€Âdefault-small†kind=pfifo pfifo-limit=10
7. quee simple untuk bagi bw /pc
/ queue simple
add name=â€ÂPhonix.Net†dst-address=192.168.0.0/24 interface=Lan parent=none \
priority=1 queue=ethernet-default/ethernet-default limit-at=0/768000 \
max-limit=0/768000 total-queue=default disabled=no
add name=â€Â01? target-addresses=192.168.0.1/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â02? target-addresses=192.168.0.2/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â03? target-addresses=192.168.0.3/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â04? target-addresses=192.168.0.4/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â05? target-addresses=192.168.0.5/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â06? target-addresses=192.168.0.6/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â07? target-addresses=192.168.0.7/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â08? target-addresses=192.168.0.8/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â09? target-addresses=192.168.0.9/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â10? target-addresses=192.168.0.10/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â11? target-addresses=192.168.0.11/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â12? target-addresses=192.168.0.12/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â13? target-addresses=192.168.0.13/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â14? target-addresses=192.168.0.14/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â15? target-addresses=192.168.0.15/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=8/96000 \
total-queue=default disabled=no
add name=â€Â16? target-addresses=192.168.0.16/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â17? target-addresses=192.168.0.17/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â18? target-addresses=192.168.0.18/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net packet-marks=â€Â†priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â19? target-addresses=192.168.0.19/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â20? target-addresses=192.168.0.20/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â21? target-addresses=192.168.0.21/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â22? target-addresses=192.168.0.22/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net packet-marks=â€Â†priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â23? target-addresses=192.168.0.23/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â24? target-addresses=192.168.0.24/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
add name=â€Â25? target-addresses=192.168.0.25/32 dst-address=0.0.0.0/0 \
interface=Lan parent=Phonix.Net packet-marks=â€Â†priority=8 \
queue=ethernet-default/ethernet-default limit-at=0/16000 max-limit=0/96000 \
total-queue=default disabled=no
8. quee tree
/ queue tree
a. pcq
add name=â€Âdownstream†parent=Lan packet-mark=Turun limit-at=0 \
queue=pcq-download priority=1 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0s disabled=no
add name=â€Âupstream†parent=global-in packet-mark=Naik limit-at=0 \
queue=pcq-upload priority=1 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0s disabled=no
b. bw over untuk icmp / latensy
add name=â€ÂICMP†parent=global-in packet-mark=ICMP-PM limit-at=8000 \
queue=PFIFO-64 priority=1 max-limit=16000 burst-limit=0 burst-threshold=0 \
burst-time=0s disabled=no
add name=â€ÂDNS†parent=global-in packet-mark=DNS-PM limit-at=8000 \
queue=PFIFO-64 priority=1 max-limit=16000 burst-limit=0 burst-threshold=0 \
burst-time=0s disabled=no
Popularity: 1% [?]
3 Comments
Other Links to this Post
RSS feed for comments on this post. TrackBack URI


By vxtaqs tkyxohzew, January 1, 2008 @ 5:52 pm
oenjghv zwdscxiel sqga plzfvqwih izonhmcy smqbjlrve hwrbjsxac
By Dan, July 30, 2008 @ 10:04 pm
Wonderful and informative web site.I used information from that site its great.v
By jadul, July 31, 2008 @ 2:43 am
I hope this site is usefull for you all