Hello guys,

I have this config in my ipchain both eth0 and eth1 has a public
ip. Is it correct? I want all traffic from 192.168.100.0/24 will pass thru
eth0 and 192.168.101.0/24 will also pass thru eth1.

thanks in advance.

/sbin/ifconfig eth0:0 192.168.100.1 netmask 255.255.255.0 up
/sbin/route add -net 192.168.100.0 netmask 255.255.255.0 dev eth0:0
/sbin/ifconfig eth1:0 192.168.101.1 netmask 255.255.255.0 up
/sbin/route add -net 192.168.101.0 netmask 255.255.255.0 dev eth1:0

/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.100.0/24 -d 0/0 -j MASQ
/sbin/ipchains -A forward -j MASQ -s 192.168.100.0/24 -d 0.0.0.0/0
/sbin/ipchains -A forward -s 192.168.101.0/24 -d 0/0 -j MASQ
/sbin/ipchains -A forward -j MASQ -s 192.168.101.0/24 -d 0.0.0.0/0

/sbin/depmod -a > /dev/null 2>&1
/sbin/modprobe ip_masq_ftp > /dev/null 2>&1
/sbin/modprobe ip_masq_raudio > /dev/null 2>&1
/sbin/modprobe ip_masq_irc > /dev/null 2>&1
/sbin/modprobe ip_masq_icq > /dev/null 2>&1
/sbin/modprobe ip_masq_quake > /dev/null 2>&1
/sbin/modprobe ip_masq_user > /dev/null 2>&1
/sbin/modprobe ip_masq_vdolive > /dev/null 2>&1
/sbin/modprobe ip_masq_cuseeme > /dev/null 2>&1

echo 1 > /proc/sys/net/ipv4/ip_forward


- - - - - - - - - - - - - - - -
a l l a n  t. p a r r e n o
OneVirtual Internet - Iloilo
--
Make the first effort to work toward greatness.  You will learn a lot as
you go, and perfect your approach. The important thing now is to get
started and keep going.



Reply via email to