From a142c38d37ff90547a5e854e086ecdbe50772523 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 16 Feb 2008 22:53:03 +0000 Subject: File an alert we cannot find a matching subnet for a CARP IP address. --- etc/inc/interfaces.inc | 7 ++++--- 1 file 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"); -- cgit v1.1