Go to file
Paul Greenberg dae73eaa9c rule: add String() method
Before this commit: the printing of a rule results in
a pointer address.

After this commit: the printing of a rules results in
a human-readable text.

Resolves: #104

Signed-off-by: Paul Greenberg <greenpau@outlook.com>
2020-08-03 10:59:40 -04:00
binaryutil add GetRule 2018-06-23 21:12:14 +02:00
expr rule: add String() method 2020-08-03 10:59:40 -04:00
.gitignore rule: add String() method 2020-08-03 10:59:40 -04:00
.travis.yml Update go vet command line 2019-12-20 12:00:14 -05:00
CONTRIBUTING.md Initial commit 2018-05-24 22:09:26 -07:00
LICENSE Initial commit 2018-05-24 22:09:26 -07:00
README.md rule: add String() method 2020-08-03 10:59:40 -04:00
chain.go protect cc.messages from racing (#75) 2019-11-14 16:22:42 +01:00
conn.go disable lock when no namespace is needed (#95) 2020-01-22 22:39:39 +01:00
counter.go Add GetObject/GetObjects, ResetObject/ResetObjects (#92) 2020-01-21 08:36:27 +01:00
doc.go Restructure code base into smaller files (#15) 2019-05-03 23:54:09 +02:00
go.mod Add bitwise decoder logic (#71) 2019-11-07 15:38:12 +01:00
go.sum protect cc.messages from racing (#75) 2019-11-14 16:22:42 +01:00
nftables_test.go rule: add String() method 2020-08-03 10:59:40 -04:00
nftables_test.sh rule: add String() method 2020-08-03 10:59:40 -04:00
obj.go Remove Object API (#100) 2020-03-09 08:43:47 +01:00
rule.go Add support for rate limiting (#101) 2020-03-16 08:58:19 +01:00
set.go Report whether set has flag configured (#98) 2020-02-27 08:28:57 +01:00
set_test.go function to create concatenated SetDatatypes (#93) 2020-01-22 22:37:16 +01:00
table.go Use NFPROTO_ constants for TableFamily (#76) 2019-11-15 10:17:43 +01:00
util.go Restructure code base into smaller files (#15) 2019-05-03 23:54:09 +02:00

README.md

Build Status GoDoc

This is not the correct repository for issues with the Linux nftables project! This repository contains a third-party Go package to programmatically interact with nftables. Find the official nftables website at https://wiki.nftables.org/

This package manipulates Linux nftables (the iptables successor). It is implemented in pure Go, i.e. does not wrap libnftnl.

This is not an official Google product.

Breaking changes

This package is in very early stages, and only contains enough data types and functions to install very basic nftables rules. It is likely that mistakes with the data types/API will be identified as more functionality is added.

Contributions

Contributions are very welcome!

Testing Changes

Run the following commands to test your changes:

go test ./...
go test -c github.com/google/nftables
sudo ./nftables.test -test.v -run_system_tests