Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Tech <tech@tootai.net>
Cc: Florian Westphal <fw@strlen.de>,
	Netfilter list <netfilter@vger.kernel.org>
Subject: Re: Redirect doesn't do the job as dnat does
Date: Wed, 8 Nov 2023 10:33:00 +0100	[thread overview]
Message-ID: <20231108093300.GD5721@breakpoint.cc> (raw)
In-Reply-To: <a7f19ab3-5fc8-4816-a403-9ae2a4b51358@tootai.net>

Tech <tech@tootai.net> wrote:
> Le 05/11/2023 à 16:27, Florian Westphal a écrit :
> 
> > Tech<tech@tootai.net>  wrote:
> > > in another terminal I run
> > > nc -vl :: 58198
> > > Listening on :: 58198
> > Please also spawn tcdump -n "tcp port 58198 or tcp port 58194"
> Sended per PM

The dump was very boring, shows SYNs without any replies.

redirect is the same as dnat, except that redirect just takes
the first address that it finds on the given interface.

So I'd guess that it picks an unusable one, e.g. link-local.

Can you post 'ip -6 addr show dev $dev" ?


  parent reply	other threads:[~2023-11-08  9:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-05 14:58 Redirect doesn't do the job as dnat does Tech
2023-11-05 15:27 ` Florian Westphal
2023-11-05 15:55   ` Tech
     [not found]   ` <a7f19ab3-5fc8-4816-a403-9ae2a4b51358@tootai.net>
2023-11-08  9:33     ` Florian Westphal [this message]
2023-11-08  9:47       ` Tech
2023-11-08 10:18         ` Florian Westphal

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=20231108093300.GD5721@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=netfilter@vger.kernel.org \
    --cc=tech@tootai.net \
    /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