[ANN] luanftables - Lua binding for libnftables

Lourival Vieira Neto <[email protected]>
Newsgroups gmane.comp.lang.lua.general
Message-ID <CALHoKCbF8mPhX4ZrBOkBxWAN6ag1hwjKOHsVzk2r9izL=+ap5g@mail.gmail.com>
Hi folks,

We've released luanftables, a Lua binding for libnftables. nftables is
the Linux kernel firewall subsystem that replaced iptables.

  local nft = require("nftables")
  local ctx <close> = nft.new()

  ctx:cmd("add table inet filter")
  ctx:cmd("add chain inet filter input { type filter hook input priority 0; }")
  ctx:cmd("add rule inet filter input tcp dport 22 accept")

The context object supports to-be-closed for deterministic cleanup.
Newline-separated commands execute as a single atomic transaction.
Errors return nil + message. JSON input/output and dry-run validation
are also supported.

MIT license. Requires Lua 5.4+ and libnftables.

http://github.com/ring0networks/luanftables

Regards,
-- 
Lourival Vieira Neto

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/CALHoKCbF8mPhX4ZrBOkBxWAN6ag1hwjKOHsVzk2r9izL%3D%2Bap5g%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.