mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 20:22:12 +02:00
Refine handling of MANGLE_ENABLED=No
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
000f120c61
commit
65e101f306
@ -5274,7 +5274,7 @@ sub require_mangle_capability( $$$ ) {
|
|||||||
if ( $config{MANGLE_ENABLED} ) {
|
if ( $config{MANGLE_ENABLED} ) {
|
||||||
&require_capability( @_ );
|
&require_capability( @_ );
|
||||||
} else {
|
} else {
|
||||||
fatal_error "$description " . ( $singular ? 'is' : 'are' ) . " not available when MANGLE_ENABLED=No in $shorewallrc{product}.conf";
|
fatal_error "$description " . ( $singular ? 'is' : 'are' ) . " not available when MANGLE_ENABLED=No in $shorewallrc{PRODUCT}.conf";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6959,9 +6959,7 @@ sub get_configuration( $$$ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default 'RESTOREFILE' , 'restore';
|
default 'RESTOREFILE' , 'restore';
|
||||||
|
|
||||||
default 'DROP_DEFAULT' , 'none';
|
default 'DROP_DEFAULT' , 'none';
|
||||||
|
|
||||||
default 'REJECT_DEFAULT' , 'none';
|
default 'REJECT_DEFAULT' , 'none';
|
||||||
default 'BLACKLIST_DEFAULT' , 'none';
|
default 'BLACKLIST_DEFAULT' , 'none';
|
||||||
default 'QUEUE_DEFAULT' , 'none';
|
default 'QUEUE_DEFAULT' , 'none';
|
||||||
@ -7026,9 +7024,8 @@ sub get_configuration( $$$ ) {
|
|||||||
|
|
||||||
require_capability( 'MULTIPORT' , "Shorewall $globals{VERSION}" , 's' );
|
require_capability( 'MULTIPORT' , "Shorewall $globals{VERSION}" , 's' );
|
||||||
require_capability( 'RECENT_MATCH' , 'MACLIST_TTL' , 's' ) if $config{MACLIST_TTL};
|
require_capability( 'RECENT_MATCH' , 'MACLIST_TTL' , 's' ) if $config{MACLIST_TTL};
|
||||||
|
require_capability( 'XCONNMARK' , 'HIGH_ROUTE_MARKS=Yes' , 's' ) if $config{PROVIDER_OFFSET} > 0;
|
||||||
require_mangle_capability( 'XCONNMARK' , 'HIGH_ROUTE_MARKS=Yes' , 's' ) if $config{PROVIDER_OFFSET} > 0;
|
require_capability( 'MANGLE_ENABLED' , 'Traffic Shaping' , 's' ) if $config{TC_ENABLED};
|
||||||
require_mangle_capability( 'MANGLE_ENABLED' , 'Traffic Shaping' , 's' ) if $config{TC_ENABLED};
|
|
||||||
|
|
||||||
if ( $config{WARNOLDCAPVERSION} ) {
|
if ( $config{WARNOLDCAPVERSION} ) {
|
||||||
if ( $capabilities{CAPVERSION} ) {
|
if ( $capabilities{CAPVERSION} ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user