mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-11 08:08:12 +01:00
Fix FORWARD chain jumps with sectioning
This commit is contained in:
parent
1438332bbe
commit
a1eefea224
@ -355,8 +355,12 @@ sub setup_accounting() {
|
||||
|
||||
if ( $filter_table->{accounting} ) {
|
||||
optimize_okay( 'accounting' ) if $section;
|
||||
for my $chain ( qw/INPUT FORWARD/ ) {
|
||||
add_jump( $filter_table->{$chain}, 'accounting', 0, '', 0, 0 );
|
||||
if ( $asection ) {
|
||||
add_jump( $filter_table->{FORWARD}, 'accounting', 0, '', 0, 0 );
|
||||
} else {
|
||||
for my $chain ( qw/INPUT FORWARD/ ) {
|
||||
add_jump( $filter_table->{$chain}, 'accounting', 0, '', 0, 0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -364,8 +368,12 @@ sub setup_accounting() {
|
||||
add_jump( $filter_table->{OUTPUT}, 'accountout', 0, '', 0, 0 );
|
||||
}
|
||||
} elsif ( $filter_table->{accounting} ) {
|
||||
for my $chain ( qw/INPUT FORWARD OUTPUT/ ) {
|
||||
add_jump( $filter_table->{$chain}, 'accounting', 0, '', 0, 0 );
|
||||
if ( $asection ) {
|
||||
add_jump( $filter_table->{FORWARD}, 'accounting', 0, '', 0, 0 );
|
||||
} else {
|
||||
for my $chain ( qw/INPUT FORWARD OUTPUT/ ) {
|
||||
add_jump( $filter_table->{$chain}, 'accounting', 0, '', 0, 0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user