Skip to content

Releases: networkplumbing/go-nft

Version 0.4.0 release

28 Jun 12:35
v0.4.0
Compare
Choose a tag to compare

New Features

  • Expose API that echo back the configuration with the generated handle values.
    This way, rules may be deleted later without having to list the ruleset first.
  • Use stdin instead of /tmp files to pass the input to the nft binary.

Version 0.3.0 release

20 Apr 06:15
v0.3.0
Compare
Choose a tag to compare

New Features

  • Expose API that accepts a context object for the binary exec (nft) backend.
    When using the top level nft package, the new functions are: ReadConfigContext and ApplyConfigContext`.
    The old functions are kept with a default context timeout of 30 seconds.
  • Expose API that accepts filter commands when reading the configuration.
    When reading the configuration, by default all the ruleset are loaded.
    Now, the caller can specify filter commands to limit the loaded entries.
    E.g. ReadConfig("table", "inet", "mytable").

Breaking Changes

  • The functions exposed through nft/exec have been changed to accept a context.
  • ReadConfig exposed through nft/lib/exec has been changed to accept filter commands.
    The new parameter is variadic, reducing the chances a caller will be influenced by this.

Version 0.2.0 release

13 Sep 09:43
v0.2.0
Compare
Choose a tag to compare

New Features

  • Add support to link with libnftables using CGO.
    In order to use the lib backend, libnftables devel headers needs to be installed on the build machine.
  • Support NAT statements: dnat, snat, masquerade, redirect.
  • Support anonymous counter statement.

Bug Fixes

  • When calling the nft binary, pass the nftables configuration through a temp file instead of a buffer.
    This is a workaround to the SELinux policy issue: containers/container-selinux#147

Version 0.1.1 release

29 Jun 19:24
v0.1.1
Compare
Choose a tag to compare

Breaking Changes

  • Move the repo to the networkplumbing organization.
    Consume go-nft by importing github.com/networkplumbing/go-nft/nft

Version 0.1.0 release

29 Jun 09:58
v0.1.0
Compare
Choose a tag to compare

New Features

  • Initial release