"") { if($status == true) { mwexec("/sbin/sysctl net.inet.carp.allow=0"); if(is_array($config['virtualip']['vip'])) { $viparr = &$config['virtualip']['vip']; foreach ($viparr as $vip) { switch ($vip['mode']) { case "carp": interface_vip_bring_down($vip); sleep(1); break; case "carpdev-dhcp": interface_vip_bring_down($vip); sleep(1); break; } } } $savemsg = sprintf(gettext("%s IPs have been disabled."), $carp_counter); } else { $savemsg = gettext("CARP has been enabled."); mwexec("/sbin/sysctl net.inet.carp.allow=1"); interfaces_carp_setup(); if(is_array($config['virtualip']['vip'])) { $viparr = &$config['virtualip']['vip']; foreach ($viparr as $vip) { switch ($vip['mode']) { case "carp": interface_carp_configure($vip); sleep(1); break; case "carpdev-dhcp": interface_carpdev_configure($vip); sleep(1); break; } } } } } $status = get_carp_status(); $pgtitle = array(gettext("Status"),gettext("CARP")); include("head.inc"); ?>
0) { if($status == false) { $carp_enabled = false; echo ""; } else { $carp_enabled = true; echo ""; } } ?>


" . gettext("Could not locate any defined CARP interfaces."); echo "
"; include("fend.inc"); echo ""; exit; } if(is_array($config['virtualip']['vip'])) { foreach($config['virtualip']['vip'] as $carp) { if ($carp['mode'] != "carp") continue; $ipaddress = $carp['subnet']; $password = $carp['password']; $netmask = $carp['subnet_bits']; $vhid = $carp['vhid']; $advskew = $carp['advskew']; $advbase = $carp['advbase']; $carp_int = "vip{$vhid}"; $status = get_carp_interface_status($carp_int); echo ""; $align = "valign='middle'"; if($carp_enabled == false) { $icon = ""; $status = "DISABLED"; } else { if($status == "MASTER") { $icon = ""; } else if($status == "BACKUP") { $icon = ""; } else if($status == "INIT") { $icon = ""; } } echo "
" . $carp_int . " "; echo "
" . $ipaddress . " "; echo "
{$icon}  " . $status . " "; echo ""; } } ?>

:
.

" . gettext("pfSync nodes") . ":
"; echo "

";
	system("/sbin/pfctl -vvss | /usr/bin/grep creator | /usr/bin/cut -d\" \" -f7 | /usr/bin/sort -u");
	echo "
"; ?>