mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 07:33:43 +01:00
Validate nets in the netmap file.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
97121116a3
commit
71480ff647
@ -409,6 +409,9 @@ sub setup_netmap() {
|
||||
|
||||
my ( $type, $net1, $interfacelist, $net2, $net3 ) = split_line 4, 5, 'netmap file';
|
||||
|
||||
validate_net $net1, 0;
|
||||
validate_net $net2, 0;
|
||||
|
||||
$net3 = ALLIP if $net3 eq '-';
|
||||
|
||||
for my $interface ( split_list $interfacelist, 'interface' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user