Go to file
turekt 76ed01e300
Support for concat set intervals (#155)
Fixes https://github.com/google/nftables/issues/154

Added support for intervals in concat sets 
Added missing constants, Concatenation flag and KeyEnd field to Set type with marshaling support
Added ConcatSetTypeElements function to derive base types from concatenated types
Changed nftDatatypes list to map 
Added tests
2022-04-22 17:12:20 +02:00
.github/workflows GitHub actions: run on pull requests, too 2021-08-18 09:26:02 +02:00
binaryutil Log expression refactor (#147) 2022-02-21 22:42:39 +01:00
expr Fix range expression unmarshalling 2022-04-07 21:54:05 +02: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: switch to GitHub actions badge 2021-05-14 17:48:51 +02:00
chain.go Fix for ListChains policy bug (#144) 2022-02-06 18:44:06 +01:00
conn.go go.mod: use github.com/mdlayher/netlink@v1.4.2 (#136) 2021-12-09 23:08:14 +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 remove dependency on now-deleted koneu/natend 2022-02-10 08:29:02 +01:00
go.sum remove dependency on now-deleted koneu/natend 2022-02-10 08:29:02 +01:00
nftables_test.go Support for concat set intervals (#155) 2022-04-22 17:12:20 +02:00
obj.go nftables: fix staticcheck error for Conn.getObj (#137) 2021-12-09 23:08:38 +01:00
rule.go Fix expression parsing for notracking 2022-04-07 21:54:05 +02:00
set.go Support for concat set intervals (#155) 2022-04-22 17:12:20 +02:00
set_test.go Support for concat set intervals (#155) 2022-04-22 17:12:20 +02: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!