summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_client.php
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-06-28 12:00:29 +0200
committersmos <seth.mos@dds.nl>2012-06-28 12:00:29 +0200
commit174ba22bcf972284ceff13faf5b92d775726f7dc (patch)
tree6f7ff1215a788c471c02fb079ba7aea6046bfca8 /usr/local/www/vpn_openvpn_client.php
parentc1449c948480dd1a445a94b1aa991addd6e50e5b (diff)
downloadpfsense-174ba22bcf972284ceff13faf5b92d775726f7dc.zip
pfsense-174ba22bcf972284ceff13faf5b92d775726f7dc.tar.gz
Allow for selecting the gateway group as a interface for the OpenVPN clients
Diffstat (limited to 'usr/local/www/vpn_openvpn_client.php')
-rw-r--r--usr/local/www/vpn_openvpn_client.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php
index 3ea25cb..f37e81b 100644
--- a/usr/local/www/vpn_openvpn_client.php
+++ b/usr/local/www/vpn_openvpn_client.php
@@ -464,6 +464,16 @@ if ($savemsg)
$aliaslist = get_configured_ip_aliases_list();
foreach ($aliaslist as $aliasip => $aliasif)
$interfaces[$aliasif.'|'.$aliasip] = $aliasip." (".get_vip_descr($aliasip).")";
+ $grouplist = return_gateway_groups_array();
+ foreach ($grouplist as $name => $group) {
+ if($group['ipprotocol'] != inet)
+ continue;
+ if($group[0]['vip'] <> "")
+ $vipif = $group[0]['vip'];
+ else
+ $vipif = $group[0]['int'];
+ $interfaces[$name] = "GW Group {$name}";
+ }
$interfaces['any'] = "any";
foreach ($interfaces as $iface => $ifacename):
$selected = "";
@@ -951,4 +961,4 @@ function set_checked($var,& $chk) {
$chk = '';
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud