summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-07-05 03:20:32 +0000
committerScott Dale <sdale@pfsense.org>2007-07-05 03:20:32 +0000
commit343d3464a8a75260a1ddb5b335c15de7e1fac262 (patch)
tree0044a8ea6c1a51a4cab0754429a147fcebf67b6a /usr
parentb9d8cc51efbf8d1b2403d0087c967262b7a31a70 (diff)
downloadpfsense-343d3464a8a75260a1ddb5b335c15de7e1fac262.zip
pfsense-343d3464a8a75260a1ddb5b335c15de7e1fac262.tar.gz
Only show IPsec tab when IPsec is truly enabled and configured
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index 1ffd891..f19a3b5 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -44,7 +44,7 @@ $if = $_GET['if'];
if ($_POST['if'])
$if = $_POST['if'];
-$iflist = array("lan" => "LAN", "wan" => "WAN", "enc0" => "IPSEC");
+$iflist = array("lan" => "LAN", "wan" => "WAN");
if ($config['pptpd']['mode'] == "server")
$iflist['pptp'] = "PPTP VPN";
@@ -56,6 +56,7 @@ if ($config['pppoe']['mode'] == "server")
if (is_array($config['ipsec']['tunnel']) && isset($config['ipsec']['enable'])) {
$a_ipsec = &$config['ipsec']['tunnel'];
if(is_array($a_ipsec)) {
+ $iflist["enc0"] = "IPsec";
$i = 0; foreach ($a_ipsec as $ipsecent) {
if(isset($ipsecent['creategif'])) {
$iflist["gif{$i}"] = "{$ipsecent['descr']}";
OpenPOWER on IntegriCloud