From: Florian Westphal <fw@strlen.de>
To: "Kamil Jońca" <kjonca@op.pl>
Cc: netfilter@vger.kernel.org
Subject: Re: Proper way to ipsec filtering
Date: Mon, 18 Apr 2022 12:14:44 +0200 [thread overview]
Message-ID: <20220418101444.GB15183@breakpoint.cc> (raw)
In-Reply-To: <878rs48bb8.fsf@alfa.kjonca>
Kamil Jońca <kjonca@op.pl> wrote:
> What is the best way to create rules used to ipsec traffic filtering?
>
> So far I have bunch rules created per reqid like that:
> table ip filter { # handle 13
>
> chain INPUT { # handle 1
> type filter hook input priority filter; policy drop;
> iif "eth0" ipsec in reqid 1 counter packets 100672 bytes 11492891 jump ipsec-in-1 comment "ed19af3c-f504-11e9-b59d-00e081736ba6/1/in" # handle 326
> [...]
[..]
> But I believe this is not the best method for nftables. So has anybody
> suggestion what is the best practicte to handle this situation?
> I tried to use maps/vmaps but reqid cannot be use as index.
Thats a bug / missing feature, it should be possible to use reqid in concatenated keys
too. I've sent a patch for this:
https://patchwork.ozlabs.org/project/netfilter-devel/patch/20220418100924.5669-2-fw@strlen.de/
next prev parent reply other threads:[~2022-04-18 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-17 6:37 Proper way to ipsec filtering Kamil Jońca
2022-04-18 10:14 ` Florian Westphal [this message]
2022-04-18 20:41 ` Kamil Jońca
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=20220418101444.GB15183@breakpoint.cc \
--to=fw@strlen.de \
--cc=kjonca@op.pl \
--cc=netfilter@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