All of lore.kernel.org
 help / color / mirror / Atom feed
* setting up network sharing
@ 2004-10-15 23:26 vineet bhargava
  2004-10-16  0:03 ` Jason Opperisano
  0 siblings, 1 reply; 3+ messages in thread
From: vineet bhargava @ 2004-10-15 23:26 UTC (permalink / raw)
  To: netfilter

Hi all,

I am having trouble setting up internet conenction sharing
on an embedded device. I am running linux kernel v2.4.18
with iptables and netfilter support. 

When I try to run this command -
iptables --table nat --append POSTROUTING --out-interface
wlan0 -j MASQUERADE

I am getting the following error -
iptables v1.2.2: Couldn't load target `MASQUERADE':File not
found

Try `iptables -h' or 'iptables --help' for more information.

Any pointers/ideas on this would be much appreciated.

Thanks,
Vineet



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setting up network sharing
  2004-10-15 23:26 setting up network sharing vineet bhargava
@ 2004-10-16  0:03 ` Jason Opperisano
  2004-10-16 17:52   ` Jose Maria Lopez
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Opperisano @ 2004-10-16  0:03 UTC (permalink / raw)
  To: netfilter

On Fri, Oct 15, 2004 at 04:26:50PM -0700, vineet bhargava wrote:
> Hi all,
> 
> I am having trouble setting up internet conenction sharing
> on an embedded device. I am running linux kernel v2.4.18
> with iptables and netfilter support. 
> 
> When I try to run this command -
> iptables --table nat --append POSTROUTING --out-interface
> wlan0 -j MASQUERADE
> 
> I am getting the following error -
> iptables v1.2.2: Couldn't load target `MASQUERADE':File not
> found

first off--that is an *_ANCIENT_* version of iptables...1.2.8/1.2.9 is
the oldest version i still see in use regularly, as SuSE and RH are
keeping them around...however--the current version is 1.2.11...

anyways--it sounds like you compiled a custom kernel w/o MASQUERADE
support.  does your kernel config have the following set:

  CONFIG_IP_NF_TARGET_MASQUERADE=m

the 'm' would be for a modular kernel, a non-modular kernel would have
it set to 'y'

if you do have that set in your kernel, and your kernel is modular,
check the output of:

  lsmod | grep ipt_MASQUERADE

and if you don't see any output, try loading it with:

  modprobe ipt_MASQUERADE

the module in question should be located at:

/lib/modules/`uname -r`/kernel/net/ipv4/netfilter/ipt_MASQUERADE.o

HTH...

-j

-- 
Jason Opperisano <opie@817west.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setting up network sharing
  2004-10-16  0:03 ` Jason Opperisano
@ 2004-10-16 17:52   ` Jose Maria Lopez
  0 siblings, 0 replies; 3+ messages in thread
From: Jose Maria Lopez @ 2004-10-16 17:52 UTC (permalink / raw)
  To: netfilter@lists.netfilter.org

El sáb, 16 de 10 de 2004 a las 02:03, Jason Opperisano escribió:

> first off--that is an *_ANCIENT_* version of iptables...1.2.8/1.2.9 is
> the oldest version i still see in use regularly, as SuSE and RH are
> keeping them around...however--the current version is 1.2.11...
> 
> anyways--it sounds like you compiled a custom kernel w/o MASQUERADE
> support.  does your kernel config have the following set:
> 
>   CONFIG_IP_NF_TARGET_MASQUERADE=m
> 
> the 'm' would be for a modular kernel, a non-modular kernel would have
> it set to 'y'
> 
> if you do have that set in your kernel, and your kernel is modular,
> check the output of:
> 
>   lsmod | grep ipt_MASQUERADE
> 
> and if you don't see any output, try loading it with:
> 
>   modprobe ipt_MASQUERADE
> 
> the module in question should be located at:
> 
> /lib/modules/`uname -r`/kernel/net/ipv4/netfilter/ipt_MASQUERADE.o
> 
> HTH...
> 
> -j

Or maybe he doesn't have the support in the userspace iptables
tool.

-- 
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-16 17:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 23:26 setting up network sharing vineet bhargava
2004-10-16  0:03 ` Jason Opperisano
2004-10-16 17:52   ` Jose Maria Lopez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.