summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-16 22:53:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-16 22:53:03 +0000
commita142c38d37ff90547a5e854e086ecdbe50772523 (patch)
tree53c296f156b8201e74c0bbcd3e85906f83253605
parent612b579a6de3dc36c21cb8119452dd6d4333db47 (diff)
downloadpfsense-a142c38d37ff90547a5e854e086ecdbe50772523.zip
pfsense-a142c38d37ff90547a5e854e086ecdbe50772523.tar.gz
File an alert we cannot find a matching subnet for a CARP IP address.
-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 27c280a..18a4b88 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