hi kapil,
About the gatewaying prob U had.R U using a dialup
connection from server1.if so then is UR server2
having a private address.the all U need to do is just
4 steps.
1)enable forwarding on server1.
2)load the kernel modules for masquerading.
3) ask ipchains to masquerade all forward packets.
4) set default gateway in each client to IP address of
server1.
UR job is done .
just add this script to UR rc.local or at the end of
the rc.sysinit script.
add the foll line to /etc/sysconfig.network file on a
redhat system.
FORWARD_IPV4="yes"
if not using a redhat system enable ipforwarding in
the kerne by echo 1> /proc/sys/net/ipv4/ip_forward.
echo "Enabling Ip gateway"
/sbin/modprobe -s ip_masq_autofw.o
/sbin/modprobe -s ip_masq_mfw.o
/sbin/modprobe -s ip_masq_portfw.o
/sbin/modprobe -s ip_masq_user.o
/sbin/modprobe -s ip_masq_ftp.o
/sbin/modprobe -s ip_masq_raudio.o
/sbin/modprobe -s ip_masq_irc.o
/sbin/modprobe -s ip_masq_vdolive.o
/sbin/modprobe -s ip_masq_quake.o
/sbin/modprobe -s ip_masq_cuseeme.o
ipchains -F
ipchains -I forward -s 192.168.1.4/24 -j MASQ
set default gateway on all clients to server1.
This will act as a trans parent proxy and will forward
all packets without filtering.ermember that ipchains
-F flushes all exinting firewall rules so any
filtering is lost.
what this does is on server1 any incoming packets are
masqueraded and forwarded to the external interface
with server1's external iface's ip address etc.
if U have a static internet address for both servers
and server1 is a gateway then forwarding is just
enough
or U can forward thru' any router in case U use one.
all the best,
regards
sanjeev
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH