Do not allow the setting of the carp sync ip to be an ip address on the same firewall. This leads to a sync loop.

This commit is contained in:
Scott Ullrich 2007-04-30 20:42:55 +00:00
parent 9afe0d5a93
commit 5980fbbeb3

View File

@ -160,6 +160,12 @@
if($_POST["synchronizetoip"])
if(!is_ipaddr($_POST["synchronizetoip"]))
$input_errors[] = "You must specify a valid IP address.";
$ifdescrs = array('lan','wan');
for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++)
$ifdescrs['opt' . $j] = "opt" . $j;
foreach($ifdescrs as $descr)
if($config['interfaces']['$descr']['ipaddr'] == $_POST["synchronizetoip"])
$input_errors[] = "CARP sync IP must be the backup firewall ip! You cannot specify this firewalls IP in this location.";
</custom_php_validation_command>
<custom_add_php_command_late>
/* setup carp interfaces */