IP address
wan1 : 10.10.10.0/29
wan2 :
11.11.11.0/29
lan :
192.168.1.0/24
Bandwidh :
Wan1 :
1M
Sebelumnya sudah disetting IP NAT dan
DNS
1.
Seting Mangle
/ip firewall mangle
;;; LoadBalacing
chain=prerouting action=mark-connection new-connection-mark=conn-lb-wan1
passthrough=yes connection-state=new protocol=tcp src-address=192.168.1.0/24
in-interface=lan-eth3 dst-port=80 per-connection-classifier=both-addresses-and-ports:2/0
chain=prerouting action=mark-connection
new-connection-mark=conn-lb-wan2 passthrough=yes connection-state=new
protocol=tcp src-address=192.168.1.0/24
in-interface=lan-eth3 dst-port=80 per-connection-classifier=both-addresses-and-ports:2/1
chain=prerouting action=mark-routing
new-routing-mark=route-lb1-wan1 passthrough=no src-address=192.168.1.0/24
in-interface=lan-eth3 connection-mark=conn-lb-wan1
chain=prerouting action=mark-routing
new-routing-mark=route-lb2-wan2 passthrough=no src-address=192.168.1.0/24
in-interface=lan-eth3 connection-mark=conn-lb-wan2
2.
Setting Ip Route
;;;Default Route
add disabled=no
distance=1 dst-address=0.0.0.0/0 gateway=10.10.10.1 check-gateway=ping scope=30 target-scope=10
;;;Load Balancing
add disabled=no distance=1 dst-address=0.0.0.0/0
gateway=10.10.10.1 routing-mark= route-lb1-wan1
check-gateway=ping scope=255
target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0
gateway=11.11.11.1 routing-mark=route-lb2-wan2
check-gateway=ping scope=255
target-scope=10
;;;Fail Over
add disabled=no
distance=2 dst-address=0.0.0.0/0 gateway=11.11.11.1 check-gateway=ping scope=30 target-scope=10
Terimakasih sudah mengunjungi blog saya
Terimakasih J
0 comments:
Post a Comment