Linux Netfilter development
 help / color / mirror / Atom feed
From: Phil Sutter <phil@nwl.cc>
To: Philip Prindeville <philipp_subx@redfish-solutions.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Testing for xt_REDIRECT
Date: Tue, 19 Nov 2024 18:09:33 +0100	[thread overview]
Message-ID: <ZzzGTWL6DjEpAgFa@orbyte.nwl.cc> (raw)
In-Reply-To: <C5BF9F7A-EA10-42DA-BE7E-B5B03CD5744A@redfish-solutions.com>

On Tue, Nov 19, 2024 at 09:12:34AM -0700, Philip Prindeville wrote:
> Hi,
> 
> Is there a way to detect if a packet has already gone through -j REDIRECT?  Is there a test that indicates this?

Does '-m conntrack --ctstate DNAT' work?

Cheers, Phil

      reply	other threads:[~2024-11-19 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-19 16:12 Testing for xt_REDIRECT Philip Prindeville
2024-11-19 17:09 ` Phil Sutter [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=ZzzGTWL6DjEpAgFa@orbyte.nwl.cc \
    --to=phil@nwl.cc \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=philipp_subx@redfish-solutions.com \
    /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