Add nftables service

This commit is contained in:
Alex D. 2022-09-15 11:39:24 +00:00
parent 40d1d3763c
commit ce189a71f0
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
4 changed files with 25 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=nnd-s6-services
pkgver=0.32
pkgver=0.33
pkgrel=0
pkgdesc="Base services for s6"
url="none"

View File

@ -0,0 +1,11 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
importas -i PATH PATH
emptyenv
export PATH $PATH
fdclose 1
fdclose 2
exec nft flush ruleset

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,12 @@
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/core/path
importas -i PATH PATH
emptyenv
export PATH $PATH
define RULESET /etc/nftables/core.nft
fdclose 1
fdclose 2
exec nft -f ${RULESET}