diff options
author | smos <seth.mos@dds.nl> | 2012-06-03 13:32:25 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-06-03 13:32:42 +0200 |
commit | 6dbffeda7b0f8fe253b413f955ce6f9e795a1cfd (patch) | |
tree | 57bd1c0746a8c4db901a547022461a04dbbfd253 /usr/local/www/vpn_ipsec.php | |
parent | bf001dec385b1b733a01ca07fdc9946ae994c63e (diff) | |
download | pfsense-6dbffeda7b0f8fe253b413f955ce6f9e795a1cfd.zip pfsense-6dbffeda7b0f8fe253b413f955ce6f9e795a1cfd.tar.gz |
Add Gateway Group support to the IPsec interface drop down.
Edit of gateway group correctly reflects the new IP Address.
We need to make a blacklist for interface names in the gateway group edit page.
Redmine ticket #1965
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rwxr-xr-x | usr/local/www/vpn_ipsec.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php index 4864e66..c6d6be8 100755 --- a/usr/local/www/vpn_ipsec.php +++ b/usr/local/www/vpn_ipsec.php @@ -189,12 +189,23 @@ include("head.inc"); <?php if ($ph1ent['interface']) { $iflabels = get_configured_interface_with_descr(); + $carplist = get_configured_carp_interface_list(); foreach ($carplist as $cif => $carpip) $iflabels[$cif] = $carpip." (".get_vip_descr($carpip).")"; + $aliaslist = get_configured_ip_aliases_list(); foreach ($aliaslist as $aliasip => $aliasif) $iflabels[$aliasip] = $aliasip." (".get_vip_descr($aliasip).")"; + + $grouplist = return_gateway_groups_array(); + foreach ($grouplist as $name => $group) { + if($group[0]['vip'] <> "") + $vipif = $group[0]['vip']; + else + $vipif = $group[0]['int']; + $iflabels[$name] = "GW Group {$name}"; + } $if = htmlspecialchars($iflabels[$ph1ent['interface']]); } else |