"") { if($status == true) { $carp_ints = get_all_carp_interfaces(); mwexec("/sbin/sysctl net.inet.carp.allow=0"); $carp_counter = find_number_of_created_carp_interfaces(); foreach($carp_ints as $int) { mwexec("/sbin/ifconfig $int down"); mwexec("/sbin/ifconfig $int destroy"); } $savemsg = "{$carp_counter} IPs have been disabled."; } else { $savemsg = "CARP has been enabled."; mwexec("/sbin/sysctl net.inet.carp.allow=1"); interfaces_carp_configure(); } } $status = get_carp_status(); $pgtitle = array("Status","CARP"); include("head.inc"); ?>
0) { if($status == false) { $carp_enabled = false; echo ""; } else { $carp_enabled = true; echo ""; } } ?>

Carp Interface
Virtual IP
Status


Could not locate any defined CARP interfaces."; echo "
"; include("fend.inc"); echo ""; exit; } if(is_array($config['virtualip']['vip'])) { $carpint=0; 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']; $carp_int = find_carp_interface($ipaddress); $status = get_carp_interface_status($carp_int); echo ""; $align = "valign='middle'"; if($carp_enabled == false) { $icon = ""; $status = "DISABLED"; $carp_int = "carp" . $carpint; } else { if($status == "MASTER") { $icon = ""; } else if($status == "BACKUP") { $icon = ""; } else if($status == "INIT") { $icon = ""; } } echo "
" . $carp_int . " "; echo "
" . $ipaddress . " "; echo "
{$icon}  " . $status . " "; echo ""; $carpint++; } } ?>

Note:
You can configure CARP settings here.

pfSync nodes:
"; echo "

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