forked from extern/shorewall_code
Rename 'apply_policy_rules' to 'complete_policy_chains'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
33eb47a48a
commit
9649107a8e
@ -851,7 +851,7 @@ sub compiler {
|
|||||||
#
|
#
|
||||||
# Apply Policies
|
# Apply Policies
|
||||||
#
|
#
|
||||||
apply_policy_rules;
|
complete_policy_chains;
|
||||||
#
|
#
|
||||||
# Reject Action
|
# Reject Action
|
||||||
#
|
#
|
||||||
|
@ -44,7 +44,7 @@ use strict;
|
|||||||
our @ISA = qw(Exporter);
|
our @ISA = qw(Exporter);
|
||||||
our @EXPORT = qw(
|
our @EXPORT = qw(
|
||||||
process_policies
|
process_policies
|
||||||
apply_policy_rules
|
complete_policy_chains
|
||||||
complete_standard_chain
|
complete_standard_chain
|
||||||
setup_syn_flood_chains
|
setup_syn_flood_chains
|
||||||
save_policies
|
save_policies
|
||||||
@ -774,7 +774,7 @@ sub report_syn_flood_protection() {
|
|||||||
#
|
#
|
||||||
# Complete a policy chain - Add policy-enforcing rules and syn flood, if specified
|
# Complete a policy chain - Add policy-enforcing rules and syn flood, if specified
|
||||||
#
|
#
|
||||||
sub default_policy( $$$ ) { #Chainref, Source Zone, Destination Zone
|
sub complete_policy_chain( $$$ ) { #Chainref, Source Zone, Destination Zone
|
||||||
my $chainref = $_[0];
|
my $chainref = $_[0];
|
||||||
my $policyref = $filter_table->{$chainref->{policychain}};
|
my $policyref = $filter_table->{$chainref->{policychain}};
|
||||||
my $synparams = $policyref->{synparams};
|
my $synparams = $policyref->{synparams};
|
||||||
@ -814,7 +814,7 @@ sub ensure_rules_chain( $ );
|
|||||||
#
|
#
|
||||||
# Finish all policy Chains
|
# Finish all policy Chains
|
||||||
#
|
#
|
||||||
sub apply_policy_rules() {
|
sub complete_policy_chains() {
|
||||||
progress_message2 'Applying Policies...';
|
progress_message2 'Applying Policies...';
|
||||||
|
|
||||||
for my $chainref ( @policy_chains ) {
|
for my $chainref ( @policy_chains ) {
|
||||||
@ -856,7 +856,7 @@ sub apply_policy_rules() {
|
|||||||
|
|
||||||
if ( $chainref->{referenced} ) {
|
if ( $chainref->{referenced} ) {
|
||||||
run_user_exit $chainref;
|
run_user_exit $chainref;
|
||||||
default_policy $chainref, $zone, $zone1;
|
complete_policy_chain $chainref, $zone, $zone1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user