mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-19 17:28:35 +02:00
Be sure NAT is enabled before processing an snat file
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e4e424bbdc
commit
4d77d673e8
@ -5755,11 +5755,10 @@ sub setup_snat( $ ) # Convert masq->snat if true
|
|||||||
convert_masq() if $_[0];
|
convert_masq() if $_[0];
|
||||||
|
|
||||||
if ( $fn = open_file( 'masq', 1, 1 ) ) {
|
if ( $fn = open_file( 'masq', 1, 1 ) ) {
|
||||||
|
|
||||||
first_entry( sub { progress_message2 "$doing $fn..."; require_capability 'NAT_ENABLED' , "a non-empty masq file" , 's'; } );
|
first_entry( sub { progress_message2 "$doing $fn..."; require_capability 'NAT_ENABLED' , "a non-empty masq file" , 's'; } );
|
||||||
|
|
||||||
process_one_masq(0) while read_a_line( NORMAL_READ );
|
process_one_masq(0) while read_a_line( NORMAL_READ );
|
||||||
} elsif ( $fn = open_file( 'snat', 1, 1 ) ) {
|
} elsif ( $fn = open_file( 'snat', 1, 1 ) ) {
|
||||||
|
first_entry( sub { progress_message2 "$doing $fn..."; require_capability 'NAT_ENABLED' , "a non-empty snat file" , 's'; } );
|
||||||
process_snat while read_a_line( NORMAL_READ );
|
process_snat while read_a_line( NORMAL_READ );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user