This repository has been archived on 2024-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Georg Pfuetzenreuter b8ca3cec9f
Basics
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-08-30 05:13:05 +02:00
.gitignore Basics 2024-08-30 05:13:05 +02:00
go.mod Basics 2024-08-30 05:13:05 +02:00
go.sum Basics 2024-08-30 05:13:05 +02:00
nftables-http-api.go Basics 2024-08-30 05:13:05 +02:00
README.md Basics 2024-08-30 05:13:05 +02:00
utils.go Basics 2024-08-30 05:13:05 +02:00

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.