[Bug 1196] nft does not allow comments within sets: Error: syntax error, unexpected newline
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Fri Apr 27 17:09:36 CEST 2018
https://bugzilla.netfilter.org/show_bug.cgi?id=1196
Antonio Ospite <ao2 at ao2.it> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ao2 at ao2.it
--- Comment #1 from Antonio Ospite <ao2 at ao2.it> ---
Hi,
I too noticed this.
As a workaround one can use comments at the end of the line, after the items,
like:
tcp dport {
21, #normal FTP
2121 # patched FTP
} counter accept
Or abuse line continuation:
tcp dport { \
# normal FTP
21, \
# patched FTP
2121
} counter accept
But both tricks are quite ugly IMHO.
It would be great if comments could be used more freely.
Ciao,
Antonio
--
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/20180427/12da1d43/attachment.html>
More information about the netfilter-buglog
mailing list