Georg Pfuetzenreuter
1d5c6e41dc
This is already caught and handled before the switch logic and would hence never be reached here. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> |
||
---|---|---|
.gitignore | ||
go.mod | ||
go.sum | ||
nft.go | ||
nftables-http-api.go | ||
README.md | ||
utils.go |
RESTful HTTP API for nftables sets
Early work in progress.
Configuration contains hashed tokens, which can in the future be used to authorize modifications for a list of nftables sets:
tokensets:
$2y$05$ZifkrfFg2XZU2ds7Lrcl9usJVyxHro9Ezjo84OMpsBSau4pEu42eS:
- SomeSet
Generate token hashes using any bcrypt hashing tool,
htpasswd
from the apache-utils
suite works
well:
$ htpasswd -Bn x
Ignore the username part.