Saturday, 28 September 2013

LoadBalancing PPC 3 Line LPSE Wajo

Posted By: Rufaidah-network - 17:36

Share

& Comment

/ip address
add address=192.168.25.1/30 disabled=no interface=WAN1 network=192.168.25.0
add address=192.168.26.1/30 disabled=no interface=WAN2 network=192.168.26.0
add address=192.168.27.1/30 disabled=no interface=WAN3 network=192.168.27.0
add address=192.168.40.1/25 disabled=no interface=LAN network=192.168.40.0

/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ISP1 routing-mark=to_LINE1 scope=30 \
    target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ISP2 routing-mark=to_LINE2 scope=30 \
    target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ISP3 routing-mark=to_LINE3 scope=30 \
    target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ISP1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ISP2 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ISP3 scope=30 target-scope=10

/ip firewall mangle
add action=mark-connection chain=input disabled=no in-interface=WAN1 new-connection-mark=LINE1_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=WAN2 new-connection-mark=LINE2_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=WAN3 new-connection-mark=LINE3_conn passthrough=yes
add action=mark-routing chain=output connection-mark=LINE1_conn disabled=no new-routing-mark=to_LINE1 passthrough=yes
add action=mark-routing chain=output connection-mark=LINE2_conn disabled=no new-routing-mark=to_LINE2 passthrough=yes
add action=mark-routing chain=output connection-mark=LINE3_conn disabled=no new-routing-mark=to_LINE3 passthrough=yes
add action=accept chain=prerouting disabled=no dst-address=192.168.25.0/30 in-interface=LAN
add action=accept chain=prerouting disabled=no dst-address=192.168.26.0/30 in-interface=LAN
add action=accept chain=prerouting disabled=no dst-address=192.168.27.0/30 in-interface=LAN
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    LINE1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    LINE2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    LINE3_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2
add action=mark-routing chain=prerouting connection-mark=LINE1_conn disabled=no in-interface=LAN new-routing-mark=to_LINE1 \
    passthrough=yes
add action=mark-routing chain=prerouting connection-mark=LINE2_conn disabled=no in-interface=LAN new-routing-mark=to_LINE2 \
    passthrough=yes
add action=mark-routing chain=prerouting connection-mark=LINE3_conn disabled=no in-interface=LAN new-routing-mark=to_LINE3 \
    passthrough=yes

About Rufaidah-network

Techism is an online Publication that complies Bizarre, Odd, Strange, Out of box facts about the stuff going around in the world which you may find hard to believe and understand. The Main Purpose of this site is to bring reality with a taste of entertainment

0 komentar:

Post a Comment

Copyright © Pembelajaran IT ™ is a registered trademark.

Designed by Templateism. Hosted on Blogger Platform.