Check for fw->fw rules

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@330 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-11-11 17:38:40 +00:00
parent dad45a396f
commit a511b9b485

View File

@ -839,6 +839,14 @@ validate_rule() {
fi fi
dest=$serverzone dest=$serverzone
chain=${source}2${dest}
if [ "x$chain" = xfw2fw ]; then
error_message "WARNING: fw -> fw rules are not supported; rule \"$rule\" ignored"
return
fi
# #
# Check length of port lists if MULTIPORT set # Check length of port lists if MULTIPORT set
# #
@ -2070,6 +2078,12 @@ process_rule() {
# Create canonical chain if necessary # Create canonical chain if necessary
chain=${source}2${dest} chain=${source}2${dest}
if [ "x$chain" = xfw2fw ]; then
error_message "WARNING: fw -> fw rules are not supported; rule \"$rule\" ignored"
return
fi
ensurechain $chain ensurechain $chain
# Generate Netfilter rule(s) # Generate Netfilter rule(s)