[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: gateway
Hi,
>>"Sunil" == Sunil Sarat <sunil@xxxxxxxxxxxxxxx> writes:
Sunil> Hi, I have a linux machine with 2 cards installed. Both are
Sunil> connected to two different networks. I've compiled my kernel
Sunil> so as to enable ip forwarding. Now in the 192.168.x.x network
Sunil> I've configured a win9x machine with my linux machine as a
Sunil> default gateway. But still the win9x machine is unable to
Sunil> contact the server in 202.x.x.x network. Thanks in advance
Two things:
a) You need to use ipfwadm/ipchains to enable forwarding (you can set up
a packet filtering firewhile while you are at ti ;-)
b) # turn on forwarding for 2.1 kernels
if [ -e /proc/sys/net/ipv4/ip_forward ]; then
echo "1" > /proc/sys/net/ipv4/ip_forward
fi
manoj
ps: How to check if ipmasq has indeed been built into the kernel.
- ------------------------------------------------------------------------------
# check to see if kernel has masquerade built in
if [ ! -e /proc/net/ip_forward -a ! -e /proc/sys/net/ipv4/ip_forward ]; then
echo "IP Forwarding has not been enabled in the kernel."
exit 1
fi
if [ ! -e /proc/net/ip_masquerade ]; then
echo "IP Masquerade has not been enabled in the kernel."
exit 1
fi
- --
"Pessimists have already begun to worry about what is going to
replace automation." John Tudor
Manoj Srivastava <srivasta@xxxxxxxxxx> <http://www.debian.org/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
- --NAA12471.927226742/montblanc.cs.uiuc.edu--
- --------------------------------------------------------------------
To unsubscribe send an email to majordomo@xxxxxxxxx with the word
'unsubscribe linux-india' (without the quotes) in the body of the email.
------------------------------