Re: NAT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2002-12-02 at 14:00, Eric Bourque wrote:
> > computer running windows 98.  How can I set up the NAT to share my
> > internet.  I do not know anything about NAT except that windows did it
> 
> Assume eth0 is connected to the internet, and eth1 is connected to your
> local net. Add the following to rc.local in /etc/rc.d:
> 
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>

That isn't the "Red Hat way".

Edit /etc/sysctl.conf and so that ip_forward line reads:

net.ipv4.ip_forward = 1

Then run:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
service iptables save

If you would like FTP to work, then stick:

modprobe ip_nat_ftp
modprobe ip_conntrack_ftp

in /etc/rc.local

Dax



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux