diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-02-01 15:28:23 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-02-01 15:28:23 +0000 |
commit | 617f8d25420ae4fc99283d57ce466142255a78c5 (patch) | |
tree | e72a6933b3f4e94889e08fc67175a481cd9f00f2 /usr/local/www | |
parent | 8c1ed8aa5f386b319ec2d9c2128db912520f8777 (diff) | |
download | pfsense-617f8d25420ae4fc99283d57ce466142255a78c5.zip pfsense-617f8d25420ae4fc99283d57ce466142255a78c5.tar.gz |
More L2TP fixes
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_rules.php | 4 | ||||
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 8ecac62..f115d2f 100755 --- a/usr/local/www/firewall_rules.php +++ b/usr/local/www/firewall_rules.php @@ -58,6 +58,10 @@ foreach ($ifdescs as $ifent => $ifdesc) if(have_ruleint_access($ifent)) $iflist[$ifent] = $ifdesc; +if ($config['l2tp']['mode'] == "server") + if(have_ruleint_access("l2tp")) + $iflist['l2tp'] = "L2TP VPN"; + if ($config['pptpd']['mode'] == "server") if(have_ruleint_access("pptp")) $iflist['pptp'] = "PPTP VPN"; diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index c0d0d66..6c618fb 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -538,6 +538,10 @@ include("head.inc"); if(have_ruleint_access($ifent)) $interfaces[$ifent] = $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"; @@ -720,6 +724,9 @@ include("head.inc"); <?php if(have_ruleint_access("lan")): ?> <option value="lan" <?php if ($pconfig['src'] == "lan") { echo "selected"; } ?>>LAN subnet</option> <?php endif; ?> + <?php if(have_ruleint_access("l2tp")): ?> + <option value="l2tp" <?php if ($pconfig['src'] == "l2tp") { echo "selected"; } ?>>L2TP clients</option> + <?php endif; ?> <?php if(have_ruleint_access("pptp")): ?> <option value="pptp" <?php if ($pconfig['src'] == "pptp") { echo "selected"; } ?>>PPTP clients</option> <?php endif; ?> @@ -868,6 +875,9 @@ include("head.inc"); <?php if(have_ruleint_access("lan")): ?> <option value="lan" <?php if ($pconfig['dst'] == "lan") { echo "selected"; } ?>>LAN subnet</option> <?php endif; ?> + <?php if(have_ruleint_access("l2tp")): ?> + <option value="l2tp" <?php if ($pconfig['dst'] == "l2tp") { echo "selected"; } ?>>L2TP clients</option> + <?php endif; ?> <?php if(have_ruleint_access("pptp")): ?> <option value="pptp" <?php if ($pconfig['dst'] == "pptp") { echo "selected"; } ?>>PPTP clients</option> <?php endif; ?> |