From: Rick van Rein <rick@openfortress.nl>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Extensions for ICMP[6] with sport, dport
Date: Fri, 12 Jun 2020 20:42:45 +0200 [thread overview]
Message-ID: <5EE3CCA5.5020405@openfortress.nl> (raw)
In-Reply-To: <20200612163457.GB16460@breakpoint.cc>
Hi Florian,
>> - ICMP-contained content must be NAT-reversed, unlike tunnel content
> nf_nat takes care of this automatically.
Hmyeah, I know. I am really trying with stateless NAT, which I know is not the general advise. Intending to push p2p applications, I fear that things like a TCP SYN from two ends at the same time are asking for trouble.
>> ip protocol icmp
>> icmp protocol { tcp, udp, sctp, dccp }
>
> What would that do? "ip protocol" of embedded ip header?
Yes, that's what I meant with this.
>> icmp th daddr set
>> icmp th dport map @my-nat-map
>
> th daddr looks weird to me, but syntax could
> be changed later.
Yes, I made a mistake. It should have said "icmp ip daddr set".
On a side note, I found a good reason for "th daddr" instead of "@th,16,16" that goes beyond readability: its typing can be used in a map with inet_service, unlike @th,16,16 which is a variably-sized integer.
>> If this ends up being kernel work, then I'm afraid I will have to let go.
>
> It can probably be done using fixed offsets for this
> specific case but its likely a lot of work wrt. dependency
> checking and providing readable syntax for "nft list" again.
Thanks for warning me upfront. I will try to stay away from it then until I really have the time.
Best,
-Rick
prev parent reply other threads:[~2020-06-12 18:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-08 17:31 Extensions for ICMP[6] with sport, dport Rick van Rein
2020-06-09 4:53 ` Duncan Roe
2020-06-09 9:41 ` Florian Westphal
2020-06-09 10:46 ` Rick van Rein
2020-06-12 16:34 ` Florian Westphal
2020-06-12 18:42 ` Rick van Rein [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=5EE3CCA5.5020405@openfortress.nl \
--to=rick@openfortress.nl \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).