| 1 |
# Changelog |
| 2 |
|
| 3 |
## [0.4.0] - 2023-06-28 |
| 4 |
### New Features |
| 5 |
- Expose API that echo back the configuration with the generated handle values. |
| 6 |
This way, rules may be deleted later without having to list the ruleset first. |
| 7 |
- Use stdin instead of /tmp files to pass the input to the `nft` binary. |
| 8 |
|
| 9 |
## [0.3.0] - 2023-04-20 |
| 10 |
### New Features |
| 11 |
- Expose API that accepts a context object for the binary exec (`nft`) backend. |
| 12 |
When using the top level `nft` package, the new functions are: `ReadConfigContext and `ApplyConfigContext`. |
| 13 |
The old functions are kept with a default context timeout of 30 seconds. |
| 14 |
- Expose API that accepts filter commands when reading the configuration. |
| 15 |
When reading the configuration, by default all the ruleset are loaded. |
| 16 |
Now, the caller can specify filter commands to limit the loaded entries. |
| 17 |
E.g. `ReadConfig("table", "inet", "mytable")`. |
| 18 |
|
| 19 |
### Breaking Changes |
| 20 |
- The functions exposed through `nft/exec` have been changed to accept a context. |
| 21 |
- `ReadConfig` exposed through `nft/lib/exec` has been changed to accept filter commands. |
| 22 |
The new parameter is variadic, reducing the chances a caller will be influenced by this. |
| 23 |
|
| 24 |
## [0.2.0] - 2021-09-13 |
| 25 |
### New Features |
| 26 |
- Add support to link with libnftables using CGO. |
| 27 |
In order to use the lib backend, libnftables devel headers needs to be installed on the build machine. |
| 28 |
- Support NAT statements: dnat, snat, masquerade, redirect. |
| 29 |
- Support anonymous counter statement. |
| 30 |
|
| 31 |
### Bug Fixes |
| 32 |
- When calling the `nft` binary, pass the nftables configuration through a temp file instead of a buffer. |
| 33 |
This is a workaround to the SELinux policy issue: https://github.com/containers/container-selinux/issues/147 |
| 34 |
|
| 35 |
## [0.1.1] - 2021-06-29 |
| 36 |
### Breaking Changes |
| 37 |
- Move the repo to the networkplumbing organization. |
| 38 |
Consume go-nft by importing `github.com/networkplumbing/go-nft/nft` |
| 39 |
|
| 40 |
## [0.1.0] - 2021-06-29 |
| 41 |
### New Features |
| 42 |
- Initial release. |
| 43 |
|