Also consider 0.0.0.0/0 here since it fails both these tests but is still a valid/special config.

This commit is contained in:
jim-p 2012-12-07 09:32:25 -05:00
parent 94d1cd834d
commit 2dd57bd95f
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ EOD;
$localid_type = "subnet";
}
// Don't let an empty subnet into racoon.conf, it can cause parse errors. Ticket #2201.
if (!is_ipaddr($localid_data) && !is_subnet($localid_data)) {
if (!is_ipaddr($localid_data) && !is_subnet($localid_data) && ($localid_data != "0.0.0.0/0")) {
log_error("Invalid IPsec Phase 2 \"{$ph2ent['descr']}\" - {$ph2ent['localid']['type']} has no subnet.");
continue;
}