Fix the cleanup of PREROUTING mangle chain

it was changed iby mistake to FORWARD by 82ec7bc3df

see discussion in PR #530
This commit is contained in:
Thomas Bernard 2021-02-26 15:15:09 +01:00
parent 3b6b0ba1e3
commit 9239cf28c1
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ fi
#removing the MINIUPNPD chain for mangle
if [ "$MDIRTY" = "${CHAIN}Chain" ]; then
$IPTABLES -t mangle -F $CHAIN
$IPTABLES -t mangle -D FORWARD -i $EXTIF -j $CHAIN
$IPTABLES -t mangle -D PREROUTING -i $EXTIF -j $CHAIN
$IPTABLES -t mangle -X $CHAIN
elif [ "$MDIRTY" = "Chain" ]; then
$IPTABLES -t mangle -F $CHAIN