summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_server.php
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-06-25 18:44:46 +0200
committersmos <seth.mos@dds.nl>2012-06-25 18:44:46 +0200
commit47c48e285b2a6d0e0eaf5c453d90a702eaea5dd4 (patch)
tree1882fc567132453dffac6785109a4d1960cdf797 /usr/local/www/vpn_openvpn_server.php
parenta2beee7597b1ed52961e218deba18caa278337ab (diff)
downloadpfsense-47c48e285b2a6d0e0eaf5c453d90a702eaea5dd4.zip
pfsense-47c48e285b2a6d0e0eaf5c453d90a702eaea5dd4.tar.gz
Check in code that allows for using a gateway group as the interface on the OpenVPN server page. Only allow IPv4 gateway groups for now. We'll need to add IPv6 suppport here later when we import OpenVPN 2.3.
Unbreak the gateway group function on broken configurations like a missing 3G stick. Unbreak the interface IP/IPv6 code in openvpn.inc, we can listen on IPv4 or IPv6, not both. That path is now seperate which should cause less grief down the line. Adds to Redmine ticket #1965 which was for the IPsec failover.
Diffstat (limited to 'usr/local/www/vpn_openvpn_server.php')
-rw-r--r--usr/local/www/vpn_openvpn_server.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php
index 1ce9840..c4c5705 100644
--- a/usr/local/www/vpn_openvpn_server.php
+++ b/usr/local/www/vpn_openvpn_server.php
@@ -772,6 +772,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 = "";
OpenPOWER on IntegriCloud