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

Re: NAT



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





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