summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-04 22:03:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-04 22:03:46 +0000
commitb51ca9d0cb74ff01b00dc5bb76dfe4869e70b5e8 (patch)
tree2562097a8793be1420613da05b9c2292a30ed9c7 /usr
parent583cb3fe42e44bb6395aebfea02c4f158621a422 (diff)
downloadpfsense-b51ca9d0cb74ff01b00dc5bb76dfe4869e70b5e8.zip
pfsense-b51ca9d0cb74ff01b00dc5bb76dfe4869e70b5e8.tar.gz
Add PPPOE options.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_nat_edit.php4
-rwxr-xr-xusr/local/www/firewall_rules.php4
2 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index 26bdb1a..dd800fb 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -222,6 +222,8 @@ if ($_POST) {
$config['filter']['rule'][] = $filterent;
+ touch($d_filterconfdirty_path);
+
write_config();
header("Location: firewall_nat.php?savemsg=The%20changes%20have%20been%20saved.%20%20Please%20note%20that%20we%20have%20added%20an%20additional%20rule%20for%20the%20FTP%20helper.");
@@ -257,7 +259,7 @@ include("fbegin.inc"); ?>
<td width="78%" class="vtable">
<select name="interface" class="formfld">
<?php
- $interfaces = array('wan' => 'WAN', 'lan' => 'LAN', 'pptp' => 'PPTP');
+ $interfaces = array('wan' => 'WAN', 'lan' => 'LAN', 'pptp' => 'PPTP', 'pppoe' => 'PPPOE');
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
$interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
}
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index 8c02d56..1ebea22 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -48,8 +48,8 @@ $iflist = array("lan" => "LAN", "wan" => "WAN");
if ($config['pptpd']['mode'] == "server")
$iflist['pptp'] = "PPTP VPN";
-
-if ($config['pppoe']['mode'] == "server")
+
+if (isset($config['pppoe']['enable']))
$iflist['pppoe'] = "PPPoE VPN";
/* add ipsec filter gif interfaces */
OpenPOWER on IntegriCloud