summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-30 20:48:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-30 20:48:27 +0000
commite17b828d64771dede158adee02e1e899435bca44 (patch)
tree8af1c122daab65c4031758b40f0d07feaf5c4036
parent36dd13f283f92a1f208ce42ba544586b6b4bdaa3 (diff)
downloadpfsense-e17b828d64771dede158adee02e1e899435bca44.zip
pfsense-e17b828d64771dede158adee02e1e899435bca44.tar.gz
Do not forget VIP's as well.
-rw-r--r--usr/local/pkg/carp_settings.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml
index a60a71b..30781a1 100644
--- a/usr/local/pkg/carp_settings.xml
+++ b/usr/local/pkg/carp_settings.xml
@@ -166,6 +166,12 @@
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.";
+ if($config['virtualip']['vip']) {
+ foreach($config['virtualip']['vip'] as $vip) {
+ if($vip['subnet'] == $_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 */
OpenPOWER on IntegriCloud