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

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Wed Jul 11 09:08:14 CEST 2018


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

idotobi at mailbox.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |idotobi at mailbox.org

--- Comment #2 from idotobi at mailbox.org ---
Hi,

for now I found a syntax hack I'm quite happy with

      tcp dport {
          67-68  # only first line cannot be a comment solely
        , ########################################
                , # multiline commits
        , ########################################
         , 21 # comments here are also OK
                , 
        , ########################################
         , # even empty lines work (see above)
        , ########################################
                , 2121
      }

It would be still great if comments could be used freely,
but for me this fulfills most commenting needs I have.

Hope it helps anyone, Tobi

-- 
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/20180711/c2b9e974/attachment.html>


More information about the netfilter-buglog mailing list