mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 16:13:18 +01:00
More DYNAMIC_ZONES erradication
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8572 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
bf7960933f
commit
9f2086530d
@ -614,10 +614,6 @@ sub generate_script_3($) {
|
||||
|
||||
push_indent;
|
||||
|
||||
emit 'cat > ${VARDIR}/chains << __EOF__';
|
||||
dump_rule_chains;
|
||||
emit_unindented '__EOF__';
|
||||
|
||||
emit 'cat > ${VARDIR}/zones << __EOF__';
|
||||
dump_zone_contents;
|
||||
emit_unindented '__EOF__';
|
||||
|
@ -44,15 +44,10 @@ our @EXPORT = qw( process_tos
|
||||
process_rules
|
||||
generate_matrix
|
||||
setup_mss
|
||||
dump_rule_chains
|
||||
);
|
||||
our @EXPORT_OK = qw( process_rule process_rule1 initialize );
|
||||
our $VERSION = 4.1.5;
|
||||
|
||||
#
|
||||
# Keep track of chains for the /var/lib/shorewall[-lite]/chains file
|
||||
#
|
||||
our @rule_chains;
|
||||
#
|
||||
# Set to one if we find a SECTION
|
||||
#
|
||||
@ -78,7 +73,6 @@ my %rules_commands = ( COMMENT => 0,
|
||||
#
|
||||
|
||||
sub initialize() {
|
||||
@rule_chains = ();
|
||||
$sectioned = 0;
|
||||
$macro_nest_level = 0;
|
||||
$current_param = '';
|
||||
@ -2028,8 +2022,4 @@ sub setup_mss( ) {
|
||||
add_rule $chainref , "-p tcp --tcp-flags SYN,RST SYN ${match}-j TCPMSS $option" if $clampmss;
|
||||
}
|
||||
|
||||
sub dump_rule_chains() {
|
||||
emit_unindented "@$_" for ( @rule_chains );
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user