grabber link rapidshare | download | Trik Download | mp3-college | Lingua | Random Teks | my community | visitor


September 26, 2009

load balance mt

Filed under: network, mikrotik

Load Balance Versi-1
Code:

/ip firewall mangle
add action=mark-connection chain=prerouting comment="Load Balance" connection-state=new disabled=no in-interface=HotSpot new-connection-mark=Line-1 nth=3,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=Line-1 disabled=no in-interface=HotSpot new-routing-mark=Line-1 passthrough=no

add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=HotSpot new-connection-mark=Line-2 nth=2,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=Line-2 disabled=no in-interface=HotSpot new-routing-mark=Line-2 passthrough=no

add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=HotSpot new-connection-mark=Line-3 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=Line-3 disabled=no in-interface=HotSpot new-routing-mark=Line-3 passthrough=no

Load Balance Versi-2
Code:

/ip firewall mangle
add action=mark-connection chain=prerouting comment="Load Balance" connection-state=new in-interface=HotSpot new-connection-mark=Line-1 nth=3,1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=Line-1 in-interface=HotSpot new-routing-mark=Line-1 passthrough=yes

add action=mark-connection chain=prerouting comment="" connection-state=new in-interface=HotSpot new-connection-mark=Line-2 nth=3,2 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=Line-2 in-interface=HotSpot new-routing-mark=Line-2 passthrough=yes

add action=mark-connection chain=prerouting comment="" connection-state=new in-interface=HotSpot new-connection-mark=Line-3 nth=3,3 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=Line-3 in-interface=HotSpot new-routing-mark=Line-3 passthrough=yes

Load Balance Untuk Proxy Versi-1
Code:

/ip firewall mangle
add action=mark-connection chain=output comment="Proxy Load Balance " connection-state=new new-connection-mark=koneksi-proxy-1 nth=3,1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=koneksi-proxy-1 new-routing-mark=Line-1 passthrough=no

add action=mark-connection chain=output comment="" connection-state=new disabled=no new-connection-mark=koneksi-proxy-2 nth=2,1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=koneksi-proxy-2 new-routing-mark=Line-2 passthrough=no

add action=mark-connection chain=output comment="" connection-state=new disabled=no new-connection-mark=koneksi-proxy-3 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=koneksi-proxy-3 new-routing-mark=Line-3 passthrough=no

Mangle untuk Queue
Code:

/ip firewall mangle
add action=mark-connection chain=prerouting comment="Mangle for Queue" disabled=no new-connection-mark=koneksi-klien passthrough=yes src-address="IP Lokal"
add action=mark-packet chain=prerouting connection-mark=koneksi-klien in-interface=HotSpot new-packet-mark=paket-upload passthrough=no
add action=mark-packet chain=prerouting connection-mark=koneksi-klien new-packet-mark=paket-download passthrough=no
add action=mark-packet chain=output connection-mark=koneksi-klien dscp=4 new-packet-mark=paket-hit-download out-interface=HotSpot passthrough=no
add action=mark-packet chain=output connection-mark=koneksi-klien disabled=no new-packet-mark=paket-download out-interface=HotSpot passthrough=no

Code:

/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ADSL-1 routing-mark=Line-1
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ADSL-2 routing-mark=Line-2
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ADSL-3 routing-mark=Line-3
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ADSL-1

Setelah sukses route jangan sampai kelupaan, ntar ga bisa jalan internetnya yaitu disini…

Code:

/ip proxy
set always-from-cache=yes cache-administrator=Akangage@ei-ji.net cache-drive=system cache-hit-dscp=4 cache-on-disk=yes enabled=yes max-cache-size=unlimited \
max-client-connections=600 max-fresh-time=3d max-server-connections=600 parent-proxy=0.0.0.0 parent-proxy-port=0 port=8888 serialize-connections=no \
src-address=0.0.0.0

Comments »

The URI to TrackBack this entry is: http://curutz.blogsome.com/2009/09/26/load-balance-mt/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.