<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Usability improvements, enabling creation of complex firewalls"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1434#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Usability improvements, enabling creation of complex firewalls"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1434">bug 1434</a>
from <span class="vcard"><a class="email" href="mailto:kfm@plushkava.net" title="kfm@plushkava.net">kfm@plushkava.net</a>
</span></b>
<pre>Another comment raises the complaint that it is not possible to write a single
rule that references multiple ports while having counters for each. This is now
incorrect, provided that a named set is used. For example:-
table inet filter {
set incoming_tcp_ports {
type inet_service
counter
elements = { 20, 80, 443 }
}
chain input {
type filter hook input priority 0; policy drop;
tcp dport @incoming_tcp_ports ct state new counter accept
}
}
Note the presence of the counter flag. To use this feature, both nftables
<span class="quote">>=0.9.5 and Linux >=5.7 are required.</span ></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>