Update aja, menggunakan Shorewall versi 4.4.x dan Mandriva linux > 2010.0, termasuk juga Mandriva Linux 2010.1 Spring.
Langsung aja :
Misal :
eth0 : 192.168.10.250 netmask 255.255.255.0 gateway 192.168.10.1 >> ISP1
eth2 : 192.168.100.250 netmask 255.255.255.0 gateway 192.168.100.1 >> ISP2
eth1 : 192.168.1.1 netmask 255.255.255.0 >> Local / LAN
edit file /etc/shorewall/interfaces
net eth0 detect ...
net eth2 detect ...
loc eth1 detect ...
edit file /etc/shorewall/providers
ISP1 1 1 main eth0 192.168.10.1 track,balance eth1
ISP2 2 2 main eth2 192.168.100.1 track,balance eth1
edit file /etc/shorewall/policy
net net DROP
#bagian yang penting, yang berubah dari versi sebelumnya
edit file /etc/shorewall/masq
eth0 0.0.0.0/0 192.168.10.250
eth2 0.0.0.0/0 192.168.100.250
atau
eth0 192.168.1.0/24 192.168.10.250
eth0 192.168.100.250 192.168.10.250
eth2 192.168.1.0/24 192.168.100.250
eth2 192.168.10.250 192.168.100.250
done
referensi sebelumnya :
http://bayu.blitar.org/index.php/shorewall-load-balancing/
http://bayu.blitar.org/index.php/shorewall-loadbalancing-with-3-speedy/
2 comments:
eth1 192.168.10.100 192.168.1.100
eth1 192.168.100.100 192.168.1.100
eth1 eth0 192.168.1.100
eth2 192.168.1.100 192.168.10.100
eth2 192.168.100.100 192.168.10.100
eth2 eth0 192.168.10.100
[Data]
comment = Data Pelanggan
path = /home/admin/data/pelanggan
public = yes
guest ok = yes
writable = yes
read only = no
browseable = yes
Post a Comment