Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Joel Newkirk <netfilter@newkirk.us>
To: Steffen Schoenwiese <ss310636@inf.tu-dresden.de>,
	netfilter@lists.netfilter.org
Subject: Re: Problem with DNAT
Date: Sun, 10 Nov 2002 22:38:58 -0500	[thread overview]
Message-ID: <200211101421.20026.netfilter@newkirk.us> (raw)
In-Reply-To: <200211092136.46643.ss310636@inf.tu-dresden.de>

On Saturday 09 November 2002 03:36 pm, Steffen Schoenwiese wrote:
> > > I have some problems with iptables 1.2.7a. Some of my rules which
> > > worked well with iptables 1.2.5 produce an error message "iptables:
> > > Invalid argument". The specific rules look like this:
> > >
> > > iptables -t nat -A OUTPUT -p tcp -d <ip> -j DNAT --to <ip>:<port>
> > >
> > > I also tried to use --to-destination instead of --to, same error
> > > message. All my other rules work perfect, only the DNAT ones get this
> > > error. Does anyone have a possible solution?
> >
> > All nat table rules, or are SNAT and MASQ accepted?  Do you have a insmod
> > or modprobe iptable_nat?  I don't know your prior/current setup, but it
> > might have been compiled in before, a module now.
>
> SNAT doesn't work either, MASQ works. iptable_nat is loaded. The system I'm
> running is a new SuSE 8.1 if that helps.

The same rule is accepted if it's prerouting? What about without the port redirection?

SUSE8.1 is kernel 2.4.19, right?  This shouldn't apply then but...
From the "Known Bugs" file in the 1.2.7a distribution:

1) NAT in the OUTPUT chain only works since kernel 2.4.18.  However,
   there is a patch for previous kernels in patch-o-matic, called the
   'local-nat.patch'.  This patch adds a CONFIG_NF_IP_NAT_LOCAL kernel config
   option.

I'm still running 1.2.5, so I can't even try this locally right now.  Sorry.

j



      reply	other threads:[~2002-11-11  3:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-09 17:36 Problem with DNAT Steffen Schoenwiese
2002-11-09 20:18 ` Joel Newkirk
2002-11-09 20:36   ` Steffen Schoenwiese
2002-11-11  3:38     ` Joel Newkirk [this message]

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=200211101421.20026.netfilter@newkirk.us \
    --to=netfilter@newkirk.us \
    --cc=netfilter@lists.netfilter.org \
    --cc=ss310636@inf.tu-dresden.de \
    /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