From 9ba08fba64fc6e9e9e3dfd911eb1164c6ea21a2e Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Tue, 6 Mar 2007 10:12:53 +0000 Subject: Make the AON FTP logic a bit more verbose. Add comments. --- etc/inc/config.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'etc/inc/config.inc') 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 +?> -- cgit v1.1