Features Title Here. Consectetur adipisicing

Features Content Here. Sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Load Balancing Speedy 4 Line + mikrotik system

Monday, 12 November 2012


identity set name=ACS_Balancing
Password/system password set password=katroklondo

Interface
/interface set ether1 name=speedy1
/interface set ether2 name=speedy2
/interface set ether3 name=speedy3
/interface set ether4 name=speedy4
/interface set ether5 name=localip

Address
/ip address add address=192.168.1.5/24 interface=speedy1
/ip address add address=192.168.2.5/24 interface=speedy2
/ip address add address=192.168.3.5/24 interface=speedy3
/ip address add address=192.168.4.5/24 interface=speedy4
/ip address add address=192.168.10.1/24 interface=local

comment="mikrotik 1 ke mikrotik 2"ip dns
/ip dns set allow-remote-requests=yes
/ip dns set primary-dns=203.130.193.74
/ip dns set secondary-dns=202.134.0.156

IP Firewall
/ip firewall filter add chain=input action=accept protocol=icmp/ip firewall filter add chain=input action=accept connection-state=established in-interface=speedy1/ip firewall filter add chain=input action=accept connection-state=related in-interface=speedy1/ip firewall filter add chain=input action=drop in-interface=speedy1/ip firewall filter add chain=input

action=accept connection-state=established in-interface=speedy2/ip firewall filter add chain=input action=accept connection-state=related in-interface=speedy2/ip firewall filter add chain=input action=drop in-interface=speedy2/ip firewall filter add chain=input action=accept

connection-state=established in-interface=speedy3/ip firewall filter add chain=input action=accept connection-state=related in-interface=speedy3/ip firewall filter add chain=input action=drop in-interface=speedy3/ip firewall filter add chain=input action=accept connection-

state=established in-interface=speedy4/ip firewall filter add chain=input action=accept connection-state=related in-interface=speedy4/ip firewall filter add chain=input action=drop in-interface=speedy4









Setting Buat Mangle
/ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=Athlon1 passthrough=yesconnection-state=new in-interface=local nth=4,1 comment="" disabled=no/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=Athlon1 passthrough=no in-interface=local connection-mark=Athlon1 comment="" disabled=no/ip firewall mangle add chain=prerouting action=mark-connection new-connection-

mark=Athlon2 passthrough=yesconnection-state=new in-interface=local nth=3,1 comment="" disabled=no/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=Athlon2 passthrough=no in-interface=local connection-mark=Athlon2 comment="" disabled=no/ip firewall mangle add chain=prerouting action=mark-connection new-connection-

mark=Athlon3 passthrough=yesconnection-state=new in-interface=local nth=2,1 comment="" disabled=no/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=Athlon3 passthrough=no in-interface=local connection-mark=Athlon3 comment="" disabled=no/ip firewall mangle add chain=prerouting action=mark-connection new-connection-

mark=Athlon4 passthrough=yesconnection-state=new in-interface=local nth=1,1 comment="" disabled=no/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=Athlon4 passthrough=no in-interface=local connection-mark=Athlon4 comment="" disabled=no

Setting NAT
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy1
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy2
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy3
/ip firewall nat add chain=srcnat action=masquerade out-interface=speedy4
/ip firewall nat add chain=srcnat action=masquerade src-address="192.168.10.0/24"Setting

Routenya
/ ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark=Athlon1comment="" disabled=no/ ip route add dst-address=0.0.0.0/0 gateway=192.168.2.1 scope=255 target-scope=10 routing-
mark=Athlon2comment="" disabled=no/ ip route add dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=255 target-scope=10 routing-
mark=Athlon3comment="" disabled=no/ ip route add dst-address=0.0.0.0/0 gateway=192.168.4.1 scope=255 target-scope=10 routing-
mark=Athlon4comment="" disabled=no/ ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 comment="primary connection"disabled=no

0 comments:

Post a Comment