mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-15 14:16:46 +02:00
Add/improve comments.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
dc63efdbfd
commit
c9b4d3d8c8
@ -2122,7 +2122,7 @@ sub set_action_param( $$ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Expand Shell Variables in the passed buffer using %params and @actparms
|
# Expand Shell Variables in the passed buffer using @actparms, %params, %shorewallrc and %config,
|
||||||
#
|
#
|
||||||
sub expand_variables( \$ ) {
|
sub expand_variables( \$ ) {
|
||||||
my ( $lineref, $count ) = ( $_[0], 0 );
|
my ( $lineref, $count ) = ( $_[0], 0 );
|
||||||
@ -2164,7 +2164,7 @@ sub handle_first_entry() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Read a line from the current include stack.
|
# Read a line from the current include stack. Based on the passed options, it will conditionally:
|
||||||
#
|
#
|
||||||
# - Ignore blank or comment-only lines.
|
# - Ignore blank or comment-only lines.
|
||||||
# - Remove trailing comments.
|
# - Remove trailing comments.
|
||||||
|
@ -1483,7 +1483,7 @@ sub generate_matrix() {
|
|||||||
|
|
||||||
next if @zones <= 2 && ! $zoneref->{complex};
|
next if @zones <= 2 && ! $zoneref->{complex};
|
||||||
#
|
#
|
||||||
# Complex zone or we have more than one non-firewall zone -- process_rules created a zone forwarding chain
|
# Complex zone or we have more than one non-firewall zone -- Shorewall::Rules::classic_blacklist created a zone forwarding chain
|
||||||
#
|
#
|
||||||
my $frwd_ref = $filter_table->{zone_forward_chain( $zone )};
|
my $frwd_ref = $filter_table->{zone_forward_chain( $zone )};
|
||||||
|
|
||||||
@ -1509,6 +1509,9 @@ sub generate_matrix() {
|
|||||||
copy_rules( $sourcechainref, $frwd_ref, 1 ) unless $ipsec_jump_added{$zone}++;
|
copy_rules( $sourcechainref, $frwd_ref, 1 ) unless $ipsec_jump_added{$zone}++;
|
||||||
$sourcechainref = $filter_table->{FORWARD};
|
$sourcechainref = $filter_table->{FORWARD};
|
||||||
} elsif ( $interfaceref->{options}{port} ) {
|
} elsif ( $interfaceref->{options}{port} ) {
|
||||||
|
#
|
||||||
|
# The forwarding chain for a bridge with ports is always used
|
||||||
|
#
|
||||||
add_ijump( $filter_table->{ forward_chain $interfaceref->{bridge} } ,
|
add_ijump( $filter_table->{ forward_chain $interfaceref->{bridge} } ,
|
||||||
j => $sourcechainref ,
|
j => $sourcechainref ,
|
||||||
imatch_source_dev( $interface , 1 ) )
|
imatch_source_dev( $interface , 1 ) )
|
||||||
@ -1518,6 +1521,9 @@ sub generate_matrix() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( $interfaceref->{options}{port} ) {
|
if ( $interfaceref->{options}{port} ) {
|
||||||
|
#
|
||||||
|
# The forwarding chain for a bridge with ports is always used
|
||||||
|
#
|
||||||
$sourcechainref = $filter_table->{ forward_chain $interfaceref->{bridge} };
|
$sourcechainref = $filter_table->{ forward_chain $interfaceref->{bridge} };
|
||||||
@interfacematch = imatch_source_dev $interface, 1;
|
@interfacematch = imatch_source_dev $interface, 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user