diff options
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 4 | ||||
-rwxr-xr-x | usr/local/www/firewall_rules.php | 4 |
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 */ |