<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><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">1202</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot match on both dport and sport in one nftables rule
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>nftables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Debian GNU/Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>nft
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pablo@netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jac_linux@yahoo.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.
I can add the rule, but it won't match a packet.
If the packet has dport = ssh, it won't match, unless I create a SEPARATE rule
with just dport:

tcp dport ssh counter accept
tcp sport ssh counter accept

Is this a bug (I didn't see anything regarding this in the v0.8 bug list) or
are dport/sport in same rule no longer allowed?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>