Add nftables service
This commit is contained in:
parent
40d1d3763c
commit
ce189a71f0
|
@ -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"
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
oneshot
|
|
@ -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}
|
Loading…
Reference in New Issue