[pkg-netfilter-team] Bug#983168: nftables: command line parser misparse/double parse (some) quoted strings, log prefix can't contain various characters

Peter Gervai grin at grin.hu
Sat Feb 20 12:17:11 GMT 2021


Package: nftables
Version: 0.9.8-3
Severity: normal
Tags: upstream

# nft add rule inet purutty hopsz ip saddr 1.2.3.4 log prefix 'foo: '
Error: syntax error, unexpected colon, expecting end of file or newline or semicolon
add rule inet purutty hopsz ip saddr 1.2.3.4 log prefix foo:


Log prefix must be double-quoted since nft seem to remove quotes then reparse:

# nft add rule inet purutty hopsz ip saddr 1.2.3.4 log prefix '"foo: "'



More information about the pkg-netfilter-team mailing list