From: Florian Westphal <fw@strlen.de>
To: Valentijn Sessink <valentijn@sessink.nl>
Cc: netfilter@vger.kernel.org
Subject: Re: arptables-nft and comments in nft output
Date: Sat, 28 Oct 2023 12:02:04 +0200 [thread overview]
Message-ID: <20231028100204.GA21160@breakpoint.cc> (raw)
In-Reply-To: <8108fd99-25f2-49a9-8ef8-18c2de253163@sessink.nl>
Valentijn Sessink <valentijn@sessink.nl> wrote:
> I'm using arptables (nft iptables version 1.8.7) with
> arptables -A OUTPUT -d 10.21.22.129 -j mangle --mangle-ip-s 10.21.22.161
>
> Now I'm a bit confused by the nft output:
>
> table arp filter {
> chain OUTPUT {
> type filter hook output priority filter; policy accept;
> arp htype 1 arp hlen 6 arp plen 4 arp daddr ip 10.21.22.129 counter
> packets 1288 bytes 54096 # --mangle-ip-s 10.21.22.161 }
> }
>
> The nft wiki only says "In the case of some missing translation, you will
> see a commented rule in nftables" - but it doesn't say what to do.
>
> Now I'm confused. Does this mean that I cannot use "nft" to setup this very
> rule? Should I use "arptables-nft" to set this rule? Or is there another
> way?
It might just be a missing translation.
You could try to see if this works:
nft add rule arp filter OUTPUT \
arp htype 1 arp hlen 6 arp plen 4 arp daddr ip 10.21.22.129 \
arp saddr ip set 10.21.22.161 counter
next prev parent reply other threads:[~2023-10-28 10:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-28 8:20 arptables-nft and comments in nft output Valentijn Sessink
2023-10-28 10:02 ` Florian Westphal [this message]
2023-10-30 17:22 ` 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=20231028100204.GA21160@breakpoint.cc \
--to=fw@strlen.de \
--cc=netfilter@vger.kernel.org \
--cc=valentijn@sessink.nl \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.