Add redundancy warning re 'blacklst'

This commit is contained in:
Tom Eastep 2010-09-19 07:57:36 -07:00
parent 940ccf2c34
commit b3d6ae78ba
3 changed files with 13 additions and 3 deletions

View File

@ -454,7 +454,13 @@ sub process_zone( \$ ) {
hosts => {}
};
$zoneref->{options}{in}{blacklist} = $zoneref->{options}{out}{blacklist} = 1 if $zoneref->{options}{in_out}{blacklist};
if ( $zoneref->{options}{in_out}{blacklist} ) {
for ( qw/in out/ ) {
warning_message( "Redundant 'blacklist' in " . uc( $_ ) . '_OPTIONS' ) if $zoneref->{options}{$_}{blacklist};
}
$zoneref->{options}{in}{blacklist} = $zoneref->{options}{out}{blacklist} = 1 ;
}
return $zone;

View File

@ -204,7 +204,9 @@ c:a,b ipv4</programlisting>
<term><emphasis role="bold">blacklist</emphasis></term>
<listitem>
<para>Added in Shorewall 4.4.13.</para>
<para>Added in Shorewall 4.4.13. May not be specified for
<emphasis role="bold">firewall</emphasis> or <emphasis
role="bold">vserver</emphasis> zones.</para>
<para>When specified in the IN_OPTIONS column, causes all
traffic from this zone to be passed against the <emphasis

View File

@ -202,7 +202,9 @@ c:a,b ipv6</programlisting>
<term><emphasis role="bold">blacklist</emphasis></term>
<listitem>
<para>Added in Shorewall 4.4.13.</para>
<para>Added in Shorewall 4.4.13. May not be specified for
<emphasis role="bold">firewall</emphasis> or <emphasis
role="bold">vserver</emphasis> zones.</para>
<para>When specified in the IN_OPTIONS column, causes all
traffic from this zone to be passed against the <emphasis