forked from extern/shorewall_code
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';
|
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 '-';
|
$net3 = ALLIP if $net3 eq '-';
|
||||||
|
|
||||||
for my $interface ( split_list $interfacelist, 'interface' ) {
|
for my $interface ( split_list $interfacelist, 'interface' ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user