Re: Syntax-Error with a Rule?

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

 



Thomas Luening <toml@xxxxxxx> wrote:
> I want to insert the following statements in a running rule-set and got an error.
> 
> nft add table raw
> nft add chain raw prerouting {type filter hook prerouting priority -300\;}

try:
/sbin/nft -- add ...

or

nft add chain raw prerouting "{type filter hook prerouting priority -300;}"

'--' tells getopt that no more arguments are present, and second one
passes rest of command line to nft as a single argument.

(getopt parser thinks -300 is an option)



[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