mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
9afe0d5a93
commit
5980fbbeb3
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user