Add PPPOE options.

This commit is contained in:
Scott Ullrich 2006-04-04 22:03:46 +00:00
parent 583cb3fe42
commit b51ca9d0cb
2 changed files with 5 additions and 3 deletions

View File

@ -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'];
}

View File

@ -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 */