summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-04 19:36:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-04 19:36:35 +0000
commitae318ac7d189b6b04a0c25bb199f9b63766d9ec6 (patch)
tree2227c677e69d346c6c56fa6316f2957bc44e3a26 /etc/inc
parentc0d86caae8ebc191e4c5ee1f9011e64d2f1e663c (diff)
downloadpfsense-ae318ac7d189b6b04a0c25bb199f9b63766d9ec6.zip
pfsense-ae318ac7d189b6b04a0c25bb199f9b63766d9ec6.tar.gz
Include ng0 when WAN is using PPPoE
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 2868660..693e07c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -236,6 +236,10 @@ function filter_generate_aliases() {
$aliases .= "# System Aliases \n";
$aliases .= "lan = \"{ {$config['interfaces']['lan']['if']}{$lan_aliases} }\"\n";
+ /* if we are using PPPoE then include the interface */
+ if($config['interfaces']['wan']['ipaddr'] == "pppoe") {
+ $wan_aliases .= " ng0";
+ }
$aliases .= "wan = \"{ " . get_real_wan_interface() . "{$wan_aliases} }\"\n";
$aliases .= "pptp = \"{ ng1 ng2 ng3 ng4 ng5 ng6 ng7 ng8 ng9 ng10 ng11 ng12 ng13 ng14 }\"\n";
$aliases .= "pppoe = \"{ ng1 ng2 ng3 ng4 ng5 ng6 ng7 ng8 ng9 ng10 ng11 ng12 ng13 ng14 }\"\n";
OpenPOWER on IntegriCloud