<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:kfm@plushkava.net" title="kfm@plushkava.net">kfm@plushkava.net</a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Cannot match on both dport and sport in one nftables rule"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1202">bug 1202</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>kfm@plushkava.net
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Cannot match on both dport and sport in one nftables rule"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1202#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Cannot match on both dport and sport in one nftables rule"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1202">bug 1202</a>
from <span class="vcard"><a class="email" href="mailto:kfm@plushkava.net" title="kfm@plushkava.net">kfm@plushkava.net</a>
</span></b>
<pre>(In reply to jac from <a href="show_bug.cgi?id=1202#c0">comment #0</a>)
<span class="quote">> In nftables v0.5 I could have the following rule to match on EITHER sport or
> dport in the same rule:
> tcp sport ssh tcp dport ssh counter accept
>
> In nftables v0.7 this no longer works.</span >
As with iptables, logical disjunctions are not supported. That rule should
never have worked for the stated purpose. While "or" can be used in rules, it
works as a bitwise operator, not a logical operator. So, this is really a
feature request.
Perhaps it would be nice for maps to support a metacharacter that matches
anything. For example, imagine being able to write:
tcp sport . tcp dport vmap { ssh . * : accept, * . ssh : accept }
Whether that is technically feasible to implement, I do not know.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>