From ad1e380d10233fb5600f95c8730b6c387b3b9f88 Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Mon, 16 Mar 2015 17:24:31 +0900 Subject: [PATCH] Changes init script (only add chains). --- miniupnpd/netfilter_nft/scripts/nft_init.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/miniupnpd/netfilter_nft/scripts/nft_init.sh b/miniupnpd/netfilter_nft/scripts/nft_init.sh index 9aafe2d..45b42ea 100755 --- a/miniupnpd/netfilter_nft/scripts/nft_init.sh +++ b/miniupnpd/netfilter_nft/scripts/nft_init.sh @@ -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