forked from extern/shorewall_code
Let Zones.pm export chain_base rather than Chains.pm
This commit is contained in:
parent
0e995d65ac
commit
d388b29d70
@ -86,7 +86,6 @@ our %EXPORT_TAGS = (
|
||||
clear_comment
|
||||
incr_cmd_level
|
||||
decr_cmd_level
|
||||
chain_base
|
||||
forward_chain
|
||||
rules_chain
|
||||
zone_forward_chain
|
||||
@ -833,18 +832,6 @@ sub copy_rules( $$ ) {
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
# Transform the passed interface name into a legal shell variable name.
|
||||
#
|
||||
sub chain_base($) {
|
||||
my $chain = $_[0];
|
||||
|
||||
$chain =~ s/^@/at_/;
|
||||
$chain =~ tr/[.\-%@]/_/;
|
||||
$chain =~ s/\+$//;
|
||||
$chain;
|
||||
}
|
||||
|
||||
#
|
||||
# Name of canonical chain between an ordered pair of zones
|
||||
#
|
||||
|
@ -844,7 +844,11 @@ sub lookup_provider( $ ) {
|
||||
sub handle_optional_interfaces( $ ) {
|
||||
|
||||
my $returnvalue = verify_required_interfaces( shift );
|
||||
|
||||
#
|
||||
# find_interfaces_by_option1() does not return wildcard interfaces. If an interface is defined
|
||||
# as a wildcard in /etc/shorewall/interfaces, then only specific interfaces matching that
|
||||
# wildcard are returned.
|
||||
#
|
||||
my $interfaces = find_interfaces_by_option1 'optional';
|
||||
|
||||
if ( @$interfaces ) {
|
||||
|
@ -54,6 +54,7 @@ our @EXPORT = qw( NOTHING
|
||||
complex_zones
|
||||
non_firewall_zones
|
||||
single_interface
|
||||
chain_base
|
||||
validate_interfaces_file
|
||||
all_interfaces
|
||||
all_bridges
|
||||
|
Loading…
Reference in New Issue
Block a user