Minggu, 22 November 2009

Load Balancing 3 Koneksi Internet

ip route add dst-address=0.0.0.0/0 gateway 192.168.1.1 scope=255
target-scope=10 routing-mark=satu 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=dua comment="" disabled=no

ip route add dst-address=0.0.0.0/0 gateway 110.76.151.225 scope=255
target-scope=10 routing-mark=tiga comment="" disabled=no




ip firewall mangle add chain=prerouting in-interface=LAN
connection-state=new nth=2,3,0 action=mark-connection
new-connection-mark=satu passthrough=yes comment="load balancing"
disabled=no

ip firewall mangle add chain=prerouting in-interface=LAN
connection-mark=satu action=mark-routing new-routing-mark=satu
passthrough=no comment="" disabled=no

ip firewall mangle add chain=prerouting in-interface=LAN
connection-state=new nth=2,3,1 action=mark-connection
new-connection-mark=dua passthrough=yes comment="" disabled=no

ip firewall mangle add chain=prerouting in-interface=LAN connection-mark=dua
action=mark-routing new-routing-mark=dua passthrough=no comment=""
disabled=no

ip firewall mangle add chain=prerouting in-interface=LAN
connection-state=new nth=2,3,2 action=mark-connection
new-connection-mark=tiga passthrough=yes comment="" disabled=no

ip firewall mangle add chain=prerouting in-interface=LAN
connection-mark=tiga action=mark-routing new-routing-mark=tiga
passthrough=no comment="" disabled=no




ip firewall nat add chain=srcnat out-interface=Speedy1 action=masquerade

ip firewall nat add chain=srcnat out-interface=FajarNet action=masquerade

ip firewall nat add chain=srcnat out-interface=Speedy2 action=masquerade

Tidak ada komentar: