summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-16 22:52:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-16 22:52:57 +0000
commitca7a3a5c75a388b75c046b16032fc44f0873a207 (patch)
tree270778cb0054c4c905721205a4d4e383819ed03a /etc/inc
parent889ad280b0f071619b4663860e0373ea19c78c36 (diff)
downloadpfsense-ca7a3a5c75a388b75c046b16032fc44f0873a207.zip
pfsense-ca7a3a5c75a388b75c046b16032fc44f0873a207.tar.gz
File an alert we cannot find a matching subnet for a CARP IP address.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 555555f..4da9013 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -453,9 +453,10 @@ function interfaces_carp_configure() {
if (ip_in_subnet($vip['subnet'], gen_subnet($ww_subnet_ip, $ww_subnet_bits) . "/" . $ww_subnet_bits))
$found = true;
}
- if($found == false)
- continue;
-
+ if($found == false) {
+ file_notice("CARP", "Sorry but we could not find a matching real interface subnet for the virtual IP address {$vip['subnet']}.", "Firewall: Virtual IP", "");
+ continue;
+ }
/* create the carp interface and setup */
mwexec("/sbin/ifconfig carp" . $carp_instances_counter . " create");
OpenPOWER on IntegriCloud