mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-11 08:08:12 +01:00
Some more fixes for blacklisting
This commit is contained in:
parent
50300a60b7
commit
69817007bf
@ -323,7 +323,7 @@ sub setup_blacklist() {
|
|||||||
progress_message " Type 1 blacklisting enabled on ${interface}:${network}";
|
progress_message " Type 1 blacklisting enabled on ${interface}:${network}";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( @{$chainref1->{rules}} ) {
|
if ( $chainref1 && @{$chainref1->{rules}} ) {
|
||||||
for my $hostref ( @$hosts1 ) {
|
for my $hostref ( @$hosts1 ) {
|
||||||
my $interface = $hostref->[0];
|
my $interface = $hostref->[0];
|
||||||
my $ipsec = $hostref->[1];
|
my $ipsec = $hostref->[1];
|
||||||
@ -1874,7 +1874,7 @@ sub generate_matrix() {
|
|||||||
my $fw = firewall_zone;
|
my $fw = firewall_zone;
|
||||||
my $notrackref = $raw_table->{notrack_chain $fw};
|
my $notrackref = $raw_table->{notrack_chain $fw};
|
||||||
my $state = $config{BLACKLISTNEWONLY} ? $globals{UNTRACKED} ? "$globals{STATEMATCH} NEW,INVALID,UNTRACKED " : "$globals{STATEMATCH} NEW,INVALID " : '';
|
my $state = $config{BLACKLISTNEWONLY} ? $globals{UNTRACKED} ? "$globals{STATEMATCH} NEW,INVALID,UNTRACKED " : "$globals{STATEMATCH} NEW,INVALID " : '';
|
||||||
my $blackout = @{$filter_table->{blackout}{rules}};
|
my $blackout = $filter_table->{blackout} && @{$filter_table->{blackout}{rules}};
|
||||||
my @zones = off_firewall_zones;
|
my @zones = off_firewall_zones;
|
||||||
my @vservers = vserver_zones;
|
my @vservers = vserver_zones;
|
||||||
my $interface_jumps_added = 0;
|
my $interface_jumps_added = 0;
|
||||||
|
@ -249,8 +249,9 @@ loc eth2 -</programlisting>
|
|||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Output blacklisting. Traffic entering on this
|
<para>Output blacklisting. Forward traffic that entered
|
||||||
interface is passed against the entries in <ulink
|
through this interface is passed against the entries in
|
||||||
|
<ulink
|
||||||
url="shorewall-blacklist.html">shorewall-blacklist</ulink>(5)
|
url="shorewall-blacklist.html">shorewall-blacklist</ulink>(5)
|
||||||
that have the <emphasis role="bold">to</emphasis>
|
that have the <emphasis role="bold">to</emphasis>
|
||||||
option.</para>
|
option.</para>
|
||||||
|
Loading…
Reference in New Issue
Block a user