From: sean darcy <seandarcy2@gmail.com>
To: netfilter@vger.kernel.org
Subject: ingress hook on interface with multiple addresses ?
Date: Wed, 12 Aug 2020 11:41:34 -0400 [thread overview]
Message-ID: <rh12jg$1392$1@ciao.gmane.io> (raw)
I have an interface with 2 ip addresses:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default qlen 1000
............
2: enp1s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel
state UP group default qlen 1000
link/ether 98:29:a6:48:49:8e brd ff:ff:ff:ff:ff:ff
inet 10.0.0.61/24 brd 10.0.0.255 scope global noprefixroute enp1s0f1
valid_lft forever preferred_lft forever
inet 10.0.0.2/32 scope global noprefixroute enp1s0f1
valid_lft forever preferred_lft forever
When I try to add a chain on ingress hook, nft is unhappy:
nft list table netdev foo
table netdev foo {
set allowlist {
type ipv4_addr
flags interval
auto-merge
elements = { 10.0.0.0/8, 127.0.0.1 }
}
}
nft 'add chain netdev foo dev0filter { type filter hook ingress device
enp1s0f1 priority 0 ; }'
Error: Could not process rule: No such file or directory
add chain netdev foo dev0filter { type filter hook ingress device
enp1s0f1 priority 0 ; }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Can you have a chain on ingress hook for an interface that has multiple
addresses ? If so, how?
next reply other threads:[~2020-08-12 15:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-12 15:41 sean darcy [this message]
2020-08-12 20:57 ` ingress hook on interface with multiple addresses ? Florian Westphal
2020-08-12 21:30 ` sean darcy
2020-08-12 22:03 ` Florian Westphal
2020-08-13 0:54 ` Pablo Neira Ayuso
2020-08-13 21:14 ` sean darcy
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='rh12jg$1392$1@ciao.gmane.io' \
--to=seandarcy2@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox