<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Cannot use (empty) named set for matching IPv4 networks"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1327#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Cannot use (empty) named set for matching IPv4 networks"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1327">bug 1327</a>
from <span class="vcard"><a class="email" href="mailto:email@cs-ware.de" title="Sven Strickroth <email@cs-ware.de>"> <span class="fn">Sven Strickroth</span></a>
</span></b>
<pre>Short addition: if the named set is not empty it works:
nft> list ruleset
table inet filter {
set blocklistssh4 {
type ipv4_addr
elements = { 192.168.178.0, 192.168.179.0 }
}
chain blocklistssh {
}
}
nft> add rule inet filter blocklistssh ip saddr & 255.0.0.0 @blocklistssh4 drop
nft> list ruleset
table inet filter {
set blocklistssh4 {
type ipv4_addr
elements = { 192.168.178.0, 192.168.179.0 }
}
chain blocklistssh {
ip saddr @blocklistssh4/8 drop
}
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>