From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: setting up network sharing
Date: Fri, 15 Oct 2004 20:03:24 -0400 [thread overview]
Message-ID: <20041016000324.GA9058@bender.817west.com> (raw)
In-Reply-To: <29c1c2ca23d24.416ffa4a@usc.edu>
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>
next prev parent reply other threads:[~2004-10-16 0:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-15 23:26 setting up network sharing vineet bhargava
2004-10-16 0:03 ` Jason Opperisano [this message]
2004-10-16 17:52 ` Jose Maria Lopez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041016000324.GA9058@bender.817west.com \
--to=opie@817west.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.