[Bug 1196] New: nft does not allow comments within sets: Error: syntax error, unexpected newline

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Sun Oct 22 00:12:59 CEST 2017


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

            Bug ID: 1196
           Summary: nft does not allow comments within sets: Error: syntax
                    error, unexpected newline
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: slyfox at inbox.ru

Created attachment 512
  --> https://bugzilla.netfilter.org/attachment.cgi?id=512&action=edit
nft.comment

# Run as: 'nft -f nft.comment'

# flush old state
flush ruleset

# filters
table inet filter {
    # in real code there is a reference to this chain
    chain local-input {
        # this works
        tcp dport {
            21,
            2121
        } counter accept

        # this does not:
        # ./nft.comment:16:25-25: Error: syntax error, unexpected newline
        #    # normal FTP
        #                ^
        tcp dport {
            # normal FTP
            21,
            # patched FTP
            2121
        } counter accept
    }
}

# dump new state
list ruleset

-- 
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/20171021/89f23383/attachment.html>


More information about the netfilter-buglog mailing list