On Tue,Oct 03, 2000, the greycells of Nilesh Barot expressed:
> it is very easy to configure your linux box as router
> u should user ipchains
> only one rule of ipchain will full fiii ur requirement
>
> here in your case the ipchain rule should as follow
>
> ipchains -A forward -s 192.168.1.0/24 -j MASQ
>
> after doing this u should also enable ipv4 forwarding from
> /proc/sys/net/ipv4/ip_forward
>
> thats alll
That's *NOT* all. You should have /etc/sysctl.conf with entries
something like this :
# Disables packet forwarding
net.ipv4.ip_forward = 1
# Enables source route verification
net.ipv4.conf.all.rp_filter = 1
# Disables automatic defragmentation (needed for masquerading, LVS)
net.ipv4.ip_always_defrag = 0
# Disables the magic-sysrq key
kernel.sysrq = 0
>
>
> Nilesh Barot
Peace.
Amar :)
--
/\ |\/| /\ r e |\| d r /\
http://www.crosswinds.net/~amargod
http://amar.gnu-linux.net
----------------------------------------------
LIH is all for free speech. But it was created
for a purpose. Violations of the rules of
this list will result in stern action.