FTP Script and firewalls :(
Hi Everyone.
I have a problem with XP2 firewalls and this ftp script im running. Basically the script is a batch file that runs an ftp -s:script.txt command and then decompresses the file on the local hard drive. It has worked well for months, if not years, but the ftp part of it dies a death if XP2 firewall is turned on, even allowing exceptions and trying to make it work in pasv mode. Has anyone had this problem and if so how did they fix it.? Cheers Stuart |
are you running it as a different user? (not that it should matter)
What error is it failing with? |
Originally Posted by Stueyb
Hi Everyone.
I have a problem with XP2 firewalls and this ftp script im running. Basically the script is a batch file that runs an ftp -s:script.txt command and then decompresses the file on the local hard drive. It has worked well for months, if not years, but the ftp part of it dies a death if XP2 firewall is turned on, even allowing exceptions and trying to make it work in pasv mode. Has anyone had this problem and if so how did they fix it.? Cheers Stuart Best getting hold of some decent firewall software. |
Jpor,
I dont think that is simply the problem! even allowing exceptions and trying to make it work in pasv mode. |
Don't really know how XP firewall works - I assume by default it allows outgoing connections only and tracks established connections? As your FTP session is established by XP, it should be allowed (unless your script, or the FTP server, is doing something to check who you are).
Best is to enable logging and then step through the script manually to see where the block is happening. FTP is tcp/21 (by default) - also note that FTP is very insecure; the username/password is sent in clear text. Side note, but off topic: worse is that if the ftp server you're logging into is a Windows box, it is likely the account being used is an actual Windows OS level account too....... 'Manna from heaven' if you wear a black hat :) There are a number of freeware SecureFTP solutions out there - try ssh.com (Secure Shell) suite. Richard |
Hi peeps,
The error Im getting is "Session closed by remote host" no matter what you do. What I have done temporarily is use wget to get the files onto the hard drive via http but it aint ideal. |
Originally Posted by David_Wallis
Jpor,
I dont think that is simply the problem! I have a problem with XP2 firewalls and this ftp script im running. It has worked well for months, if not years, but the ftp part of it dies a death if XP2 firewall is turned on I can only comment on what I have been given in the form of the information provided. :nono: |
Do you use a password in the script, or is the server trying to authenticate you at a Windows OS level? Sounds to me like FTP server is trying to establish a connection with you, which the firewall is not allowing, and it therefore close the session down.
Don't know how you do it with XP, but enable full logging briefly on your XP firewall while you manually try it again, then review the logfiles. Other option is to use a sniffer. Richard |
but he did say it didnt work either with an exception.
|
Originally Posted by David_Wallis
but he did say it didnt work either with an exception.
Wait for it :wonder: That's right....... he is still running the XP firewall in the on position. Again only going on the information the poster initially provided. |
yes the sp2 firewall is stateful and tracks outgoing connections and allows connections back. Only incoming connections can be blocked. Outgoing is all allowed
Does it work with it off????? A Session closed by remote host may mean its thier end (dying connection, password problem etc) FTP has 2 ports data and control being TCP 20 and 21, however ive noticed running netstat commands that it also sends out a syn packet on high up ports like TCP 18000 etc do you connect to the net directly (modem) or behind a router? |
It worked fine with it off, and the ftp server in question, we own. In the end I changed it to use wget instead
|
taken from MS site
After you install Windows XP SP2, client applications may not successfully receive data from a server. Following are some examples: •An FTP client•Multimedia streaming software•New mail notifications in some e-mail programs article may be of use http://support.microsoft.com/kb/842242 |
All times are GMT +1. The time now is 02:38 AM. |
© 2024 MH Sub I, LLC dba Internet Brands