diff --git a/Shorewall-init/ifupdown.debian.sh b/Shorewall-init/ifupdown.debian.sh index 65390c5db..36077f70c 100644 --- a/Shorewall-init/ifupdown.debian.sh +++ b/Shorewall-init/ifupdown.debian.sh @@ -127,6 +127,17 @@ esac [ -n "$LOGFILE" ] || LOGFILE=/dev/null for PRODUCT in $PRODUCTS; do + if [ -n "$ADDRFAM" -a ${COMMAND} = up ]; then + case $PRODUCT in + *6*) + [ ${ADDRFAM} = inet6 ] || continue + ;; + *) + [ ${ADDRFAM} = inet ] || continue + ;; + esac + fi + setstatedir if [ -x $VARLIB/$PRODUCT/firewall ]; then