FTP timeout issue?

Assume our production server name  is server-I.   Through FTP ,6 files need to be sent from Server II to Server I.  
Currently the issue  is, after completion of the 3rd file, FTP session is getting closed with the following error message:
Connection reset by peer" and unable to send remaining 3 files.
To troubleshoot, in server-1 /etc/environment file, I changed the setting of TIMEOUT and TMOUT from 300 to 600, and then refreshed the INETD n/w demon. But, still the problem persists. However, Iam not able to verify, whether the system uses my latest TIMEOUT & TMOUT settings or not! How to verify?
What other possiblities need to be checked, to solve the above issue?

LVL 2
rammaghentharAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sjm_eeCommented:
TMOUT and TIMEOUT are used for terminal comms not ftp.

The AIX ftp client does not support the "idle" command referred to on some web pages but AIX ftpd does support "site idle" so if the server to which you are using ftpd is AIX then you can use "site idle 7200" to set the idle timeout to maximum.

Lastly why not send one file at a time? Also, ftp is insecure, why not use sftp?
0
rammaghentharAuthor Commented:
This is already available setup. How to setup site idle  from 7200 to maximum.
0
sjm_eeCommented:
10:39 $ ftp xxxx.xxxxxx.xx.xxx.xxx
Connected to xxxx.xxxxxx.xx.xxx.xxx.
220 xxxx.xxxxxx.xx.xxx.xxx FTP server (Version 4.2 Wed Jun 3 15:43:49 CDT 2009) ready.
331 Password required for simon.
230-Last unsuccessful login: Tue Feb  9 11:44:35 GMT 2010 on /dev/pts/1 from xxxx.xxxxxx.xx.xxx.xxx
230-Last login: Sun Mar 28 16:43:06 GMT+01:00 2010 on ftp from xxxx.xxxxxx.xx.xxx.xxx
230 User xxxxx logged in.
ftp> site idle200 Current IDLE time limit is 900 seconds; max 7200
ftp>
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

sjm_eeCommented:
ftp> site idle 7200
200 Maximum IDLE time set to 7200 seconds
ftp> site idle 9000
501 Maximum IDLE time must be between 30 and 7200 seconds
ftp>
0
gheistCommented:
It is firewall in the middle resetting control connection of FTP
There is not much you can help - no keep-alive can be sent on control connection while transfer is ongoing.
Resuming FTP client (like aria or wget or curl or ncftp) or scp works around network breakage
0
rammaghentharAuthor Commented:
How to find where is the issue? which firewall is resetting this connection?
In weekend file transfer is working as expected.
But in only working days we are facing this issue.
sometime server-I is not  accepting FTP connections.
 TCP IP settings do I need to check on server end?

I need to Isolate the issue is whether network side,server side or opposite server side. could you people help on this please?
0
gheistCommented:
you need traffic dump on both ends - client and server (tcpdump -c 100000 -s 1600 -w dumpfile host other.ip) to have clear proof that firewall breaks the stuff.
0
rammaghentharAuthor Commented:
We had done traceroute from  Source server and find that  default route towards ftp server was missing. Now it is ok
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Server Software

From novice to tech pro — start learning today.