diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-04 21:09:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-04 21:09:54 +0000 |
commit | 9f5e2a88ac8ab244f2502fc7cc629a59ecabd6ad (patch) | |
tree | 925f3c526e86e7467e1a8ab4af2c2b56c8719be1 /etc/inc/interfaces.inc | |
parent | 5d99a39b97a6542b74dfdd7aaca8e94cd9034cb2 (diff) | |
download | pfsense-9f5e2a88ac8ab244f2502fc7cc629a59ecabd6ad.zip pfsense-9f5e2a88ac8ab244f2502fc7cc629a59ecabd6ad.tar.gz |
When a CARP parent interface is down or disabled, ignore the CARP IP
address as this will introduce a panic situation in FreeBSD.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 4a3c244..7de6fc8 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -444,6 +444,9 @@ function interfaces_carp_configure() { for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) $iflist['opt' . $i] = 'opt' . $i; foreach($iflist as $if) { + /* ignore down or "disabled" interfaces */ + if (!isset($config['interfaces'][$if]['enable'])) + continue; $ww_subnet_ip = $config['interfaces'][$if]['ipaddr']; $ww_subnet_bits = $config['interfaces'][$if]['subnet']; if (ip_in_subnet($vip['subnet'], gen_subnet($ww_subnet_ip, $ww_subnet_bits) . "/" . $ww_subnet_bits)) |