mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-22 20:29:30 +00:00
Changes init script (only add chains).
This commit is contained in:
parent
f7288efb5e
commit
3e635dbe17
@ -31,21 +31,17 @@ nft_mangle_miniupnpd_exists=$?
|
||||
|
||||
if [ $nft_nat_miniupnpd_exists -eq "1" ]; then
|
||||
echo "create chain in nat"
|
||||
nft "add chain nat miniupnpd { \
|
||||
type nat hook prerouting priority -200 ; }"
|
||||
nft "add chain nat miniupnpd"
|
||||
fi
|
||||
if [ $nft_nat_miniupnpd_pcp_peer_exists -eq "1" ]; then
|
||||
echo "create pcp peer chain in nat"
|
||||
nft "add chain nat miniupnpd-pcp-peer { \
|
||||
type nat hook postrouting priority -300 ; }"
|
||||
nft "add chain nat miniupnpd-pcp-peer"
|
||||
fi
|
||||
if [ $nft_filter_miniupnpd_exists -eq "1" ]; then
|
||||
echo "create chain in filter "
|
||||
nft "add chain filter miniupnpd { \
|
||||
type filter hook forward priority -200 ; }"
|
||||
nft "add chain filter miniupnpd"
|
||||
fi
|
||||
if [ $nft_mangle_miniupnpd_exists -eq "1" ]; then
|
||||
echo "create chain in mangle"
|
||||
nft "add chain mangle miniupnpd { \
|
||||
type route hook prerouting priority -100 ; }"
|
||||
nft "add chain mangle miniupnpd"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user