problem with uclibc and iptables

Hufnus tonyb at thekrnl.sysdev.org
Tue May 9 21:47:33 UTC 2006


On Tue, 09 May 2006 19:07:26 +0000
"Section One" <section_one_ at hotmail.com> wrote:

> this work great but when i do a:
> 
> /># iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
> iptables: Invalid argument

I dont know if you might be having other problems, but when I
do that type of MASQUERADE, I always use the -s option to
specify the addresses of my internal net:

$IPC -t nat -A POSTROUTING -o $EXTIF -s $INTNET -j MASQUERADE

where IPC=iptables
      EXTIF=eth0
      INTNET=192.168.1.255/24  (my eth1 localnet)

TonyB


--
  __      __  _     I N C.               http://www.sysdev.org
/ __|\\// __||  \  __   __          /         tonyb at sysdev.org
\__ \ \/\__ \||)|/ O_)\/ /        \/  System Tools / Utilities
|___/ || ___/|_ /\___|\_/        WIntel / Linux Device Drivers




More information about the uClibc mailing list