Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Toby <tobia.conforto@linux.it>
To: netfilter@lists.netfilter.org
Subject: Re: iptables query
Date: Fri, 25 Mar 2005 09:54:47 +0100	[thread overview]
Message-ID: <20050325085447.GA30284@ikkoku.ath.cx> (raw)
In-Reply-To: <6c2d1c9d05032421374d594338@mail.gmail.com>

shardul Adhikari wrote:
> iptables -A PREROUTING -t nat -i eth0 -d 202.75.112.3 --dport 8080 -j
> REDIRECT --to-port 3128

I don't see "-p tcp" in that rule.  You can use --dport or --sport only
if you specify "-p tcp" or "-p udp".

For this reason, that rule will give you an error if you try and run it.
Before you correct your mistake, you should look for the error message
and see where it is displayed, so that you can more easily discover
future mistakes and problems.


Toby

-- 
Love(n): The delusion that one woman differs from another.
						H.L. Mencken


  reply	other threads:[~2005-03-25  8:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-25  5:37 iptables query shardul Adhikari
2005-03-25  8:54 ` Toby [this message]
2005-03-25  9:28   ` shardul Adhikari
2005-03-27 11:14     ` shardul Adhikari
  -- strict thread matches above, loose matches on Subject: below --
2004-03-11 22:54 state match support in ip6tables marco
2004-03-11 23:30 ` Alexander Samad
2004-03-11 23:59   ` marco
2004-03-12  0:08     ` Alexander Samad
     [not found]       ` <1079077823.3130.52.camel@anduril.intranet.cartel-securite. net>
2004-03-12  8:09         ` iptables query Hitesh Ballani
2002-10-23  6:37 IPTables Query harish.k
2002-10-23  8:00 ` Stewart Thompson
2002-10-23  8:07   ` harish.k
2002-10-23 18:26     ` Stewart Thompson
2002-10-23 18:46       ` Antony Stone
2002-10-24  4:11       ` harish.k
2002-10-23  9:57 ` Antony Stone

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=20050325085447.GA30284@ikkoku.ath.cx \
    --to=tobia.conforto@linux.it \
    --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