mirror of
https://gitlab.com/shorewall/code.git
synced 2025-05-21 00:20:58 +02: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
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user