summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-07-05 18:07:46 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-07-05 18:09:47 -0600
commitf60181150d6a64b9bcfaa246311e60a6a546b768 (patch)
treefbd3bd6a851d85f80e604c52b1d028cbe5a19fbe /usr/local/www/firewall_nat_edit.php
parent6775c54e2aa571d76d2fc6dea58f5c5a677997f4 (diff)
downloadpfsense-f60181150d6a64b9bcfaa246311e60a6a546b768.zip
pfsense-f60181150d6a64b9bcfaa246311e60a6a546b768.tar.gz
Add the missing VPN types to the interface list on port forwards and add the same VPNs to the list available on other types of NAT rules.
Diffstat (limited to 'usr/local/www/firewall_nat_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_edit.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index 719e32f..c769878 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -456,6 +456,10 @@ include("fbegin.inc"); ?>
if(have_ruleint_access($if))
$interfaces[$if] = $ifdesc;
+ if ($config['l2tp']['mode'] == "server")
+ if(have_ruleint_access("l2tp"))
+ $interfaces['l2tp'] = "L2TP VPN";
+
if ($config['pptpd']['mode'] == "server")
if(have_ruleint_access("pptp"))
$interfaces['pptp'] = "PPTP VPN";
@@ -469,6 +473,10 @@ include("fbegin.inc"); ?>
if(have_ruleint_access("enc0"))
$interfaces["enc0"] = "IPsec";
+ /* add openvpn/tun interfaces */
+ if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"])
+ $interfaces["openvpn"] = "OpenVPN";
+
foreach ($interfaces as $iface => $ifacename): ?>
<option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected"; ?>>
<?=htmlspecialchars($ifacename);?>
OpenPOWER on IntegriCloud