Re: [twsocket] error while download file

2011-01-04 Thread Angus Robertson - Magenta Systems Ltd
> during this year i'm planning to move from ftp to other platform 
> because with some customers, i can't use ssl and you know that 
> without ssl is too easy to get the ftp account of my server.

Not necessarily, the ICS FTP client and server support One Time Passwords
with a challenge and response, which is similar to SMPT Cram-Md5, sending
a changing hash of the password and not the real password.  Some
commercial FTP servers support OTP, but not many. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] error while download file

2011-01-04 Thread Svemu - Reparto Sviluppo


- Original Message - 
From: "Arno Garrels" 

Very true, FTP and firewalls/routers are not the best friends.
BTW: Next year I have to support all kinds of proxies including
HTTP proxies with FTP. It's my plan to implement HTTP proxy
authentication at the TWSocket level as Socks is implemented
currently. Is anybody willing to support this work? By testing
or contributing existing source?


Hi Arno,
during this year i'm planning to move from ftp to other platform because 
with some customers, i can't use ssl and you know that without ssl is too 
easy to get the ftp account of my server.

If you want, i can do some test.

Thank you
daniele




--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be





--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] error while download file

2011-01-03 Thread Svemu - Reparto Sviluppo


- Original Message - 
From: "Angus Robertson - Magenta Systems Ltd" 

It can also be a firewall issue, they can seriously interrupt and corrupt
FTP sessions. 


Yes,
it sound a firewall problem.

i've done more test and with a small files i haven't any problem,

If the file 7/8 Mb or more, i've the problem.

Thank you,
best regards
daniele

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] error while download file

2010-12-30 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote:
> 
> So sometimes FTP bugs are nothing to do with the FTP software.

Very true, FTP and firewalls/routers are not the best friends.
BTW: Next year I have to support all kinds of proxies including 
HTTP proxies with FTP. It's my plan to implement HTTP proxy 
authentication at the TWSocket level as Socks is implemented
currently. Is anybody willing to support this work? By testing
or contributing existing source?

-- 
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] error while download file

2010-12-29 Thread Angus Robertson - Magenta Systems Ltd
> > i'va a problem during download a file from ftp.
> > my client download all bytes but i don't recive CMD 226 and the
> > donwload don't terminate.
> 
> If the server does not send a response on the control channel 
> after the file has been sent, before the data channel is closed,
> it's a server issue IMO.
> Do you know whether the 226 response is actually sent? You can
> check that with a packet sniffer such as the free WireShark.

It can also be a firewall issue, they can seriously interrupt and corrupt
FTP sessions. 

I had two issues on the same file before Xmas.  It was a six gig zipped
VM image, and the transfer kept stopping at about 1.5 gigs and retrying
each 90 minutes, all night, causing a lot of bandwidth use. 

The Sonicwall firewall log showed it had detected an executable
compressor Petite (which I used in the past) as a virus and aborted the
FTP transfer.  This was quite clever, since the VM image was zipped, the
firewall was obviously decompressing the six gig zip on the fly during
download.  

Worse, the Sonicwall firewall was corrupting the FTP REST command,
changing the S to a *, so resumed transfer failed.  

Client:
02:07:35  > PORT 192,168,1,119,225,47
02:07:35  < 200 Port command successful.
02:07:35  > REST 1582315785
02:07:35  < 500 'RE': command not understood.

Server
02:07:35 admin [94.169.162.26] [180] < RE *T 1582315785
02:07:35 admin [94.169.162.26] [180] > 500 'RE': command not understood.

This example was with the ICS FTP client and server, and I spent some
time looking for a bug, before testing with FileZilla client and server
and getting exactly the same error.   

(06) 07/12/2010 12:51:19 - admin (217.146.115.81)> RE*T 12232905
(06) 07/12/2010 12:51:19 - admin (217.146.115.81)> 500 Syntax error,
command unrecognized.

I solved the problem by using a second ADSL line that bypassed the
Sonicwall (and disable virus checking on FTP downloads!).  

So sometimes FTP bugs are nothing to do with the FTP software. 

But firewalls can be useful, this Sonicwall will redirect all packets for
one PC to another ethernet port so they can be captured, hardware
sniffing. 

Angus
 


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] error while download file

2010-12-29 Thread Arno Garrels
Svemu - Reparto Sviluppo wrote:
> Hi,
> i'va a problem during download a file from ftp.
> my client download all bytes but i don't recive CMD 226 and the
> donwload don't terminate.

If the server does not send a response on the control channel 
after the file has been sent, before the data channel is closed,
it's a server issue IMO.
Do you know whether the 226 response is actually sent? You can
check that with a packet sniffer such as the free WireShark.

-- 
Arno Garrels 


> 
> i attach the log,
> 
> Anyone can help me?
> 
> I haven't problem with other customers on same server.
> 
> Best regards
> Daniele
> 
> 
> 17.08.42.156 ! HighLevelAsync 0
> 17.08.42.156 01142F60 TriggerDataSent 884
> 17.08.42.234 >|200 TYPE is now 8-bit binary|
> 
> 17.08.42.234 ! HighLevelAsync 0
> 17.08.42.234 01142F60 TriggerDataSent 884
> 17.08.42.344 >|227 Entering Passive Mode (90,111,201,126,195,238)|
> 
> 17.08.42.344 ! HighLevelAsync 0
> 17.08.42.344 ! Data Socket Connect
> 17.08.42.344 TWSocket will connect to 90.111.201.126:50158
> 17.08.42.344 01142F60 TriggerDataSent 884
> 17.08.42.437 ! Data Session Connected (Get)
> 17.08.42.437 01143720 TriggerDataSent 912
> 17.08.42.515 >|150-Accepted data connection|
> 
> 17.08.42.734 >|150 6148.5 kbytes to download|
> //*
> 
> 17.11.40.813 ! Data Session closed //*
> 17.11.40.813 ! Next3GetAsync
> 17.11.40.813 01143720 TCustomWSocket.Shutdown 1 912
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be