summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-18 01:58:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-18 01:58:05 +0000
commit87e72a5896df5771d6d54678f61dfd30b0f07de9 (patch)
treec87ee24ffea7291b80afa8e0ee1cfd9540b20331 /usr/local/www/vpn_ipsec.php
parent9f8e19f424f3774e400abdfddc8e101006500fdf (diff)
downloadpfsense-87e72a5896df5771d6d54678f61dfd30b0f07de9.zip
pfsense-87e72a5896df5771d6d54678f61dfd30b0f07de9.tar.gz
Allow CARP addresses to be the IPSEC endpoint. This cleans up the code GREATLY and removes the FAILOVER IPSEC hack.
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rwxr-xr-xusr/local/www/vpn_ipsec.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php
index fca3a55..e149666 100755
--- a/usr/local/www/vpn_ipsec.php
+++ b/usr/local/www/vpn_ipsec.php
@@ -152,9 +152,14 @@ include("head.inc");
<td class="listr" ondblclick="document.location='vpn_ipsec_edit.php?id=<?=$i;?>'"><?=$spans;?>
<?php if ($ipsecent['interface']) {
$iflabels = array('lan' => 'LAN', 'wan' => 'WAN');
- for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++)
+ $carpips = find_number_of_needed_carp_interfaces();
+ for($i=0; $i<$carpips; $i++) {
+ $carpip = find_interface_ip("carp" . $i);
+ $iflabels['carp' . $i] = "CARP{$i} - $carpip";
+ }
+ for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++)
$iflabels['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
- $if = htmlspecialchars($iflabels[$ipsecent['interface']]);
+ $if = htmlspecialchars($iflabels[$ipsecent['interface']]);
} else
$if = "WAN";
OpenPOWER on IntegriCloud