Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Rohan Almeida <arc_of_descent@gmx.net>
To: netfilter@lists.netfilter.org
Subject: iptables REDIRECT with patch-o-matic
Date: Fri, 13 Sep 2002 16:16:33 +0530	[thread overview]
Message-ID: <02091316163300.00916@sanitarium> (raw)


Hi List,

Take the following command:
[rohan@sanitarium rohan]$ iptables -t nat -i eth0 -A PREROUTING \
			--protocol tcp -s 10.0.0.0/255.255.255.0 \
			-d 10.0.0.1/32 --dport www -j REDIRECT \
			--to-port 800

With redhat rpms, kernel-2.4.18-5, iptables-1.2.5-3
the above command works fine.

Now, i downloaded iptables-1.2.7a, patch-o-matic-20020825
and using kernel source tree of 2.4.18
I applied the following patches of patch-o-matic:
	base AND extra

Then i compiled the kernel.
Now with this patched kernel and iptables-1.2.5-3 rpm,
I am getting the following error when running the above command:
"iptables: Invalid argument"

What am i doing wrong?

If i just have to upgrade my iptables to 1.2.7a, then
i'm sorry for posting this :-)

Thanx

--
arc_of_descent



             reply	other threads:[~2002-09-13 10:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-13 10:46 Rohan Almeida [this message]
2002-09-13 14:27 ` iptables REDIRECT with patch-o-matic Zoilo

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=02091316163300.00916@sanitarium \
    --to=arc_of_descent@gmx.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox