No need to import FW

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5797 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-01 19:48:20 +00:00
parent 40a270fcd0
commit 7b3af346e8
3 changed files with 2 additions and 3 deletions

View File

@ -630,7 +630,6 @@ sub determine_capabilities() {
system( "$iptables -X fooX1234 > /dev/null 2>&1" );
}
sub require_capability( $$ ) {
my ( $capability, $description ) = @_;

View File

@ -225,6 +225,7 @@ sub determine_zones()
fatal_error 'Firewall zone may not be nested' if @parents;
fatal_error "Only one firewall zone may be defined: $zone" if $firewall_zone;
$firewall_zone = $zone;
$ENV{FW} = $zone;
$zoneref->{type} = "firewall";
} elsif ( $type eq '-' ) {
$type = $zoneref->{type} = 'ipv4';

View File

@ -32,7 +32,6 @@
# SHOREWALL_DIR A directory name was passed to /sbin/shorewall
# VERBOSE Standard Shorewall verbosity control.
# TIMESTAMP=Yes -t option specified to /sbin/shorewall
# FW Firewall zone (for shell-variable expansion).
#
# This program performs rudimentary shell variable expansion on action and macro files.