Re: Bug: nft cannot identify elements in set correctly

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

 



Yanchuan Nian <ycnian@xxxxxxxxx> wrote:
> [root@localhost ~]# nft add set ip filter servicelist {type inet_service \;}
> [root@localhost ~]# nft add element ip filter servicelist {ftp,ssh}
> <cmdline>:1:35-37: Error: syntax error, unexpected string, expecting '{'
> add element ip filter servicelist ftp ssh

Missing escape ("\{"), see echo foo{bar,baz}

> [root@localhost ~]# nft add element ip filter servicelist {ftp, ssh}
> 
> There must be a space between ftp and ssh, otherwise bison ignores "{".

The { got removed by your shell before passing the arguments to nft.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux