From: Michael Weiser <michael@weiser.dinsnail.net>
To: netfilter@vger.kernel.org
Subject: Match packet address against addresses on interface
Date: Sat, 11 Feb 2017 18:13:21 +0100 [thread overview]
Message-ID: <20170211171321.GC31183@weiser.dinsnail.net> (raw)
Hi,
is there an elegant way in either ip{,6}tables or nftables to match
addresses in packets against all the addresses set on a specific local
interface?
I've seen this with pf where you can write "( if0 )" instead of a source
or target address to achieve just that.
As of now I have a small daemon monitoring rtnetlink events, using them
to maintain ipsets for ip{,6}tables which seems rather cumbersome and
fragile.
--
Thanks,
Michael
next reply other threads:[~2017-02-11 17:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-11 17:13 Michael Weiser [this message]
2017-02-12 8:59 ` Match packet address against addresses on interface Pascal Hambourg
2017-02-12 12:43 ` Michael Weiser
2017-02-12 13:15 ` Pascal Hambourg
2017-02-12 14:07 ` Michael Weiser
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=20170211171321.GC31183@weiser.dinsnail.net \
--to=michael@weiser.dinsnail.net \
--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