<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 - Provide better error messaging when a rule can't be executed in its context"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1178">1178</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Provide better error messaging when a rule can't be executed in its context
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>netfilter@allycomm.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Observed Behavior:
==================

nftables.conf:3:1-14: Error: Could not process rule: Operation not supported
flush ruleset
^^^^^^^^^^^^^^

(when a chain with an snat expression was placed into a prerouting-hook chain
through a copy-paste error in chain creation)


Expected Behavior:
==================

The error message would point to the line in the file that contained the
unsupported operation. 


To Replicate:
=============

$ cat nftables.conf 
#!/usr/sbin/nft -f

flush ruleset

table ip nat4 {

     chain nat_rules_postrouting_ipv4 {
         type nat hook prerouting priority 125

         snat 203.0.113.1    # RFC 5737 doc net
         return
     }
}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>