Linux Netfilter development
 help / color / mirror / Atom feed
* Testing for xt_REDIRECT
@ 2024-11-19 16:12 Philip Prindeville
  2024-11-19 17:09 ` Phil Sutter
  0 siblings, 1 reply; 2+ messages in thread
From: Philip Prindeville @ 2024-11-19 16:12 UTC (permalink / raw)
  To: netfilter-devel

Hi,

Is there a way to detect if a packet has already gone through -j REDIRECT?  Is there a test that indicates this?

Thanks


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Testing for xt_REDIRECT
  2024-11-19 16:12 Testing for xt_REDIRECT Philip Prindeville
@ 2024-11-19 17:09 ` Phil Sutter
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Sutter @ 2024-11-19 17:09 UTC (permalink / raw)
  To: Philip Prindeville; +Cc: netfilter-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-19 17:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-19 16:12 Testing for xt_REDIRECT Philip Prindeville
2024-11-19 17:09 ` Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox