<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Feature Request: Include files with path relative to current file"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1661#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Feature Request: Include files with path relative to current file"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1661">bug 1661</a>
              from <span class="vcard"><a class="email" href="mailto:pablo@netfilter.org" title="Pablo Neira Ayuso <pablo@netfilter.org>"> <span class="fn">Pablo Neira Ayuso</span></a>
</span></b>
        <pre>You could use -I/--include and relative paths:

# nft -I /myruleset -f /myruleset/test.nft

then, from your ruleset, use relative path from your .nft files:

# cat /myruleset/test.nft 
include "dir1/test1.nft"

where:

# ls /myruleset/dir1
test1.nft</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>