Skip to contentSkip to conversation

How to share intrenet connection through NAT

DISCUSSION prasanna 1 participant 1 message Dec 17, 2003 netfilter

lore
Share & tools
lore

prasanna

author
#0 lore raw

Hi,
I am using redhat 9. I connected internet to this machine. I like
to share my internet to local machines through NAT. How to configurethe NAT?

I tried this

modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

And put gateway as linux machine in local machine
But unsucessfull

Please help with script

Thanks & Regards,
Sureshprasanna M.K
BharatPlanet Consulting Ltd.
http://www.bharatplanet.co.in

An SEI-CMM Level 2 Company