mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Josefsson <gandalf@wlug.westbo.se>
To: "J.A. Magallon" <jamagallon@able.es>
Cc: Lista Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: netfilter/iptables bug ?
Date: 02 Apr 2003 00:51:22 +0200	[thread overview]
Message-ID: <1049237482.25150.4.camel@tux.rsn.bth.se> (raw)
In-Reply-To: <20030401224446.GA4349@werewolf.able.es>

On Wed, 2003-04-02 at 00:44, J.A. Magallon wrote:
> Hi all...
> 
> I'm trying to do NAT from a internal eth1 to external eth0 (connected
> with a cable modem). Every doc I read says I should do:
> 
> iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
> 
> But I just keep getting:
> 
> iptables: Invalid argument
> 
> Kernel: 2.4.21-pre6 + -pre5-aa. iptables 1.2.7a.

Recompile iptables against your new kernel.
A major NAT patch (newnat) went into 2.4.20 which changed a lot of
structures. A recompile against a >= 2.4.20 kernel will get it working
again.

I suggest that you post further mail about iptables-problems to
netfilter@lists.netfilter.org as that's where you are most likely to get
help.

-- 
/Martin

  reply	other threads:[~2003-04-01 22:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-01 22:44 J.A. Magallon
2003-04-01 22:51 ` Martin Josefsson [this message]
2003-04-01 22:53   ` J.A. Magallon

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=1049237482.25150.4.camel@tux.rsn.bth.se \
    --to=gandalf@wlug.westbo.se \
    --cc=jamagallon@able.es \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®