mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 22:58:52 +01:00
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:
parent
dad45a396f
commit
a511b9b485
@ -839,6 +839,14 @@ validate_rule() {
|
||||
fi
|
||||
|
||||
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
|
||||
#
|
||||
@ -2070,6 +2078,12 @@ process_rule() {
|
||||
# Create canonical chain if necessary
|
||||
|
||||
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
|
||||
|
||||
# Generate Netfilter rule(s)
|
||||
|
Loading…
Reference in New Issue
Block a user