summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-02-18 22:38:21 +0000
committerChris Buechler <cmb@pfsense.org>2008-02-18 22:38:21 +0000
commit9613c6a7ddff2fc2c9288c8bd4a1a1f56815799b (patch)
treea106a3eb1766c6b7a2572586c5511e7f737c700f /etc/inc
parent96d1d4adeeaf7d4b69f55ffa5e72bf5f3feaf160 (diff)
downloadpfsense-9613c6a7ddff2fc2c9288c8bd4a1a1f56815799b.zip
pfsense-9613c6a7ddff2fc2c9288c8bd4a1a1f56815799b.tar.gz
Fix part of broken ruleset with single interface
Single interface support Appliance Project
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc16
1 files changed, 3 insertions, 13 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index dd44010..411cbb5 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -932,13 +932,8 @@ function filter_nat_rules_generate() {
$natrules .= "\nno nat on \$wan to port tftp\n\n";
$natrules .= "\n# FTP Proxy/helper\n";
- /* build an array of interfaces to work with */
- if($config['interfaces']['lan'])
- $iflist = array("lan" => "LAN");
- else
- $iflist = array();
- for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++)
- $iflist['opt' . $i] = "opt{$i}";
+ /* get array of interfaces to work with */
+ $iflist = get_interface_list();
$interface_counter = 0;
$vpns_list = get_vpns_list();
/* prevent 1:1 ips from ftp-proxy, they will be handled by ftp-sesame */
@@ -2687,12 +2682,7 @@ EOD;
$extaddr = alias_expand($extaddr);
if(!isset($config['system']['disablenatreflection'])) {
-
- /* if list */
- if($config['interfaces']['lan'])
- $iflist = array("lan" => "LAN");
- else
- $iflist = array();
+ $iflist = get_interface_list();
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++)
$iflist['opt' . $i] = "opt{$i}";
OpenPOWER on IntegriCloud