Go to file
Alexis PIRES ce5436e43c Before GetObj/GetObjReset returned all objects instead of only the object, now it's return only the given one.
New methods: GetObj(Obj) (Obj, error), GetObjs(Table) ([]Obj, error), ResetObj(Obj) (Obj, error), ResetObjs(Table) ([]Obj, error).
Deleted Methods: GetObj(Obj) ([]Obj, error), GetObjReset(Obj) ([]Obj, error)
2020-01-14 17:35:58 +01:00
binaryutil add GetRule 2018-06-23 21:12:14 +02:00
expr Stateless NAT and notrack support (#82) 2019-12-17 21:54:26 +01: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 README: add disclaimer; this is not the upstream nftables repo 2019-12-08 11:03:14 +01:00
chain.go protect cc.messages from racing (#75) 2019-11-14 16:22:42 +01:00
conn.go remove extra space 2019-12-22 11:45:11 +01:00
counter.go Before GetObj/GetObjReset returned all objects instead of only the object, now it's return only the given one. 2020-01-14 17:35:58 +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 Before GetObj/GetObjReset returned all objects instead of only the object, now it's return only the given one. 2020-01-14 17:35:58 +01:00
obj.go Before GetObj/GetObjReset returned all objects instead of only the object, now it's return only the given one. 2020-01-14 17:35:58 +01:00
rule.go Add insert/replace (#86) 2020-01-01 16:50:27 +01:00
set.go Add set's id to newsetelem message (#89) 2020-01-01 17:05:55 +01:00
set_test.go Fix concatenated key set validation (#83) 2019-12-18 00:02:00 +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!