From: Corin Langosch <info@corinlangosch.com>
To: netfilter@vger.kernel.org
Subject: migration of ebtables arp rule to nftables
Date: Thu, 24 Sep 2015 16:34:42 +0200 [thread overview]
Message-ID: <56040A02.5060605@corinlangosch.com> (raw)
Hi guys,
I'd like to move to nftables (Ubuntu trusty, kernel 3.19). So far it works quite well, however I wonder how to migrate
these ebtables rules:
-p ARP --arp-op Request --arp-ip-dst 192.168.178.237 -j ACCEPT
-p ARP --arp-op Reply --arp-ip-dst 192.168.178.237 -j ACCEPT
-j DROP
-p ARP --arp-op Request --arp-ip-src 192.168.178.237 --arp-mac-src 2:fb:c5:e0:ef:a3 -j ACCEPT
-p ARP --arp-op Reply --arp-ip-src 192.168.178.237 --arp-mac-src 2:fb:c5:e0:ef:a3 -j ACCEPT
-j DROP
They are used to prevent ARP spoofing of qemu quests using tap devices on the host. The rule "nft add rule bridge filter
qemu1-o arp operation request counter accept" works, however I have no idea how to add the ip/mac contraints to the rule.
Thanks for any help. :)
Cheers
Corin
reply other threads:[~2015-09-24 14:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=56040A02.5060605@corinlangosch.com \
--to=info@corinlangosch.com \
--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 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.