use nftables.nft
This commit is contained in:
parent
1af981eb79
commit
13acdc2dc5
16
manifest
16
manifest
|
@ -3,21 +3,7 @@ initscript="$__type/files/nftables-init"
|
||||||
os=$(cat $__global/explorer/os)
|
os=$(cat $__global/explorer/os)
|
||||||
os_version=$(cat "$__global/explorer/os_version")
|
os_version=$(cat "$__global/explorer/os_version")
|
||||||
|
|
||||||
case "$os" in
|
conf=/etc/nftables.nft
|
||||||
debian)
|
|
||||||
case "$os_version" in
|
|
||||||
10*|11*)
|
|
||||||
conf=/etc/nftables.nft
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
conf=/etc/nftables.conf
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
conf=/etc/nftables.nft
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -f "$__object/parameter/config-from-stdin" ]; then
|
if [ -f "$__object/parameter/config-from-stdin" ]; then
|
||||||
srcfile="$__object/stdin"
|
srcfile="$__object/stdin"
|
||||||
|
|
Loading…
Reference in New Issue