nft script file, using include with wildcards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm using nftables 0.7 (rocko branch)

I've got a nft script file that contains the following line:

# include all rule files (alphabetical order)
include "*.rules"

When I execute this script I get the following error:

./firewall.nft:25:1-18: Error: Could not open file "*.rules": No such file or directory
include "*.rules"
^^^^^^^^^^^^^^^^^^

It doesn't matter whether the are .rules present or not.
When I change the line into "include foo.rules", everything works as intended.

Why is this error generated, the documentations states:

INCLUDE FILES

....
Include statements support the usual shell wildcard symbols (*,?,[]). Having no matches for an include statement is not an error, if wildcard symbols are used in the include statement. This allows having potentially empty include directories for statements like include "/etc/firewall/rules/*". The wildcard matches are loaded in alphabetical order. Files beginning with dot (.) are not matched by include statements.  

What am I missing here?

 Kind Regards,

Alberto

 




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux