summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-03-04 11:24:24 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-03-04 11:24:24 +0000
commit652b8ce06130ab0896227167e8a813faa3996442 (patch)
tree3cbf3fa3164883dc85cd9599b8ac86eb9f74b1d0 /etc/inc/config.inc
parentc9238b6de9b82b8e00ce23af45b4a3cd13e07014 (diff)
downloadpfsense-652b8ce06130ab0896227167e8a813faa3996442.zip
pfsense-652b8ce06130ab0896227167e8a813faa3996442.tar.gz
I forgot, the ftp helpers on releng_1 are started from config.inc not pfsense-utils.inc (head)
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 4645d3a..75cf7a0 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1558,7 +1558,9 @@ function system_start_ftp_helpers() {
/* grab the current interface IP address */
$int = convert_friendly_interface_to_real_interface_name($ifname);
$ip = find_interface_ip($int);
- if(isset($config['nat']['advancedoutbound']['enable'])) {
+ /* are we in routed mode? no source nat rules and not a outside interface? */
+ /* If we have advanced outbound nat we skip the FTP proxy, we use ftpsesame */
+ if((isset($config['nat']['advancedoutbound']['enable'])) && (! interface_has_gateway($ifname))) {
$sourcenat = 0;
/* we are using advanced outbound nat, are we in routing mode? */
/* if the interface address lies within a outbound NAT source network we should skip */
OpenPOWER on IntegriCloud