diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-03-06 10:12:53 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-03-06 10:12:53 +0000 |
commit | 9ba08fba64fc6e9e9e3dfd911eb1164c6ea21a2e (patch) | |
tree | 2c68f8cbdc6adeb3d01308473b983d0b090e77cf /etc/inc/config.inc | |
parent | 68f346509f4542aa190b0237ab9759458b3ddbe3 (diff) | |
download | pfsense-9ba08fba64fc6e9e9e3dfd911eb1164c6ea21a2e.zip pfsense-9ba08fba64fc6e9e9e3dfd911eb1164c6ea21a2e.tar.gz |
Make the AON FTP logic a bit more verbose.
Add comments.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r-- | etc/inc/config.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index b304f8d..5590f20 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1567,15 +1567,18 @@ function system_start_ftp_helpers() { if(! empty($config['nat']['advancedoutbound']['rule'])) { foreach($config['nat']['advancedoutbound']['rule'] as $natnetwork) { if(ip_in_subnet($ip, $natnetwork['source']['network'])) { + /* if the interface address is matched in the AON Rule we need the ftp proxy */ $sourcenat++; } } } if($sourcenat == 0) { - log_error("No source NAT rule found for interface {$ifname} - installing ftpsesame"); + log_error("Config: No AON rule matched for interface {$ifname} - not using FTP proxy"); mwexec("/usr/local/sbin/ftpsesame -i $int"); $interface_counter++; continue; + } else { + log_error("Config: AON rule matched for interface {$ifname} - using FTP proxy"); } } /* if pftpx is already running then do not launch it again */ @@ -1740,4 +1743,4 @@ function set_device_perms() { if($g['booting']) echo "."; $config = parse_config(); -?>
\ No newline at end of file +?> |