mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-22 10:41:23 +02: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;
|
push_indent;
|
||||||
|
|
||||||
emit 'cat > ${VARDIR}/chains << __EOF__';
|
|
||||||
dump_rule_chains;
|
|
||||||
emit_unindented '__EOF__';
|
|
||||||
|
|
||||||
emit 'cat > ${VARDIR}/zones << __EOF__';
|
emit 'cat > ${VARDIR}/zones << __EOF__';
|
||||||
dump_zone_contents;
|
dump_zone_contents;
|
||||||
emit_unindented '__EOF__';
|
emit_unindented '__EOF__';
|
||||||
|
@ -44,15 +44,10 @@ our @EXPORT = qw( process_tos
|
|||||||
process_rules
|
process_rules
|
||||||
generate_matrix
|
generate_matrix
|
||||||
setup_mss
|
setup_mss
|
||||||
dump_rule_chains
|
|
||||||
);
|
);
|
||||||
our @EXPORT_OK = qw( process_rule process_rule1 initialize );
|
our @EXPORT_OK = qw( process_rule process_rule1 initialize );
|
||||||
our $VERSION = 4.1.5;
|
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
|
# Set to one if we find a SECTION
|
||||||
#
|
#
|
||||||
@ -78,7 +73,6 @@ my %rules_commands = ( COMMENT => 0,
|
|||||||
#
|
#
|
||||||
|
|
||||||
sub initialize() {
|
sub initialize() {
|
||||||
@rule_chains = ();
|
|
||||||
$sectioned = 0;
|
$sectioned = 0;
|
||||||
$macro_nest_level = 0;
|
$macro_nest_level = 0;
|
||||||
$current_param = '';
|
$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;
|
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;
|
1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user