[Bug 1254] nft commandline tool can't parse negative priority values.

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu May 3 12:55:29 CEST 2018


https://bugzilla.netfilter.org/show_bug.cgi?id=1254

Florian Westphal <fw at strlen.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fw at strlen.de

--- Comment #1 from Florian Westphal <fw at strlen.de> ---
(In reply to elohh from comment #0)
> nft add chain raw PREROUTING { type filter hook prerouting priority -300\; }
> nft add chain raw PREROUTING { type filter hook prerouting priority -300 \; }
> nft: invalid option -- '3'
> 
> Tried different variants, tried to escape the - minus and set it into "&'.

Use

nft -- add chain ...
or, better yet,

nft "add chain ... { }"

to prevent the shell from interpreting {, ; etc.
(In this case, -300 is passed as individual argument, and getopt
 sees an option "-3" which it won't understand).

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20180503/aa8aff19/attachment.html>


More information about the netfilter-buglog mailing list