Re: NAT

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

 



On Mon, 2002-12-02 at 17:47, Dax Kelson wrote:
> On Mon, 2002-12-02 at 14:00, Eric Bourque wrote:
> > 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

You learn something every day. I've been running this way for quite a
while, but didn't realize that redhat had an /etc/sysctl.conf file, nor
did I know about the saving tables functionality. Cool.

Cheers,

Eric
-- 
Eric Bourque
Ph.D. Candidate, Centre for Intelligent Machines, McGill University.

PGP Fingerprint : B57E FA15 E100 4C20 538F  56F0 78B9 582D 75C0 CFE0



-- 
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