Shorewall Loadbalancing with 3 Speedy
sebelumnya http://bayu.blitar.org/index.php/shorewall-load-balancing/
dimana dengan 2 Speedy (re-fixed)
eth0 – LAN – 192.168.0.1
eth1 – Speedy1 – 192.168.1.10 – gw 192.168.1.1
eth2 – Speedy2 – 192.168.10.10 – gw 192.168.10.1
——————————————————————–
/etc/shorewall/interfaces
loc eth0 detect
net eth1 detect
net eth2 detect
——————————————————————–
/etc/shorewall/providers
Speedy1 1 1 main 192.168.1.1 track,balance eth0
Speedy2 2 2 main 192.168.10.1 track,balance eth0
———————————————————————-
/etc/shorewall/masq
eth1 192.168.10.10 192.168.1.10
eth1 eth0 192.168.1.10
eth2 192.168.1.10 192.168.10.10
eth2 eth0 192.168.10.10
eth1 eth2 192.168.1.10
eth2 eth1 192.168.10.10
———————————————————————-
3 Speedy
Misal :
eth0 – LAN – 10.10.10.1
eth1 – Speedy1 - 192.168.1.100 - gw 192.168.1.254
eth2 - Speedy2 - 192.168.10.100 - gw 192.168.10.254
eth3 - Speedy3 - 192.168.100.100 – gw 192.168.100.254
———————————————————————-
/etc/shorewall/interfaces
loc eth0 detect
net eth1 detect
net eth2 detect
net eth3 detect
———————————————————————-
/etc/shorewall/providers
Speedy1 1 1 main 192.168.1.100 track,balance eth0
Speedy2 2 2 main 192.168.10.100 track,balance eth0
Speedy3 3 3 main 192.168.100.100 track,balance eth0
———————————————————————-
/etc/shorewall/masq
eth1 192.168.10.100 192.168.1.100
eth1 192.168.100.100 192.168.1.100
eth1 eth0
eth2 192.168.1.100 192.168.10.100
eth2 192.168.100.100 192.168.10.100
eth2 eth0
eth3 192.168.1.100 192.168.100.100
eth3 192.168.10.100 192.168.100.100
eth3 eth0
———————————————————————-
done.
kunci nya hanya dengan seperti diatas. untuk koneksi Speedy or ISP lain yg lebih dari 2.
4 Comments on “Shorewall Loadbalancing with 3 Speedy”
mas kenapa /etc/shorewall/policy nya ngak di posting sekalian. ^_*
gk ada perubahan untuk file /etc/shorewall/policy, masi standar bawaan distro
—-
#SOURCE DEST POLICY LOG LIMIT: CONNLIMIT:
# LEVEL BURST MASK
loc net ACCEPT
loc fw ACCEPT
fw loc ACCEPT
fw net ACCEPT
net all DROP info
all all REJECT info
#LAST LINE — DO NOT REMOVE