iptables & masquerading...

Michael K. Johnson johnsonm at redhat.com
Fri Aug 8 21:02:19 UTC 2003


On Fri, Aug 08, 2003 at 04:51:03PM -0400, Jean-Francois Bélanger wrote:
> Just use :
> 
> /sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -o ppp0 -j SNAT
> --to-source [net_ip_adr] 
> 
> Work fine whit this.

It's a good workaround, but it's not the same; SNAT is for static
IPs and MASQUERADE is for dynamic IPs.  We'll have newer kernels
out in a bit, or it will probably work if you simply rebuild the
existing one -- just rpmbuild --rebuild --target <arch> kernel*src.rpm

michaelkjohnson

 "He that composes himself is wiser than he that composes a book."
 Linux Application Development                     -- Ben Franklin
 http://people.redhat.com/johnsonm/lad/





More information about the test mailing list