services: nftables: Add 'configuration' action.
* gnu/services/networking.scm (nftables-shepherd-service)[actions]: New field.
This commit is contained in:
parent
2b1eb3c1cf
commit
4163c617b8
@ -1844,6 +1844,7 @@ table inet filter {
|
|||||||
(let ((nft (file-append package "/sbin/nft")))
|
(let ((nft (file-append package "/sbin/nft")))
|
||||||
(shepherd-service
|
(shepherd-service
|
||||||
(documentation "Packet filtering and classification")
|
(documentation "Packet filtering and classification")
|
||||||
|
(actions (list (shepherd-configuration-action ruleset)))
|
||||||
(provision '(nftables))
|
(provision '(nftables))
|
||||||
(start #~(lambda _
|
(start #~(lambda _
|
||||||
(invoke #$nft "--file" #$ruleset)))
|
(invoke #$nft "--file" #$ruleset)))
|
||||||
|
Loading…
Reference in New Issue
Block a user