Re: [twsocket] Access denied issue

2013-09-03 Thread Angus Robertson - Magenta Systems Ltd
> Could it be some kind of proxy at the clients end ?
>
> I've just tried connecting without using passivemode on my PC and I 
> don't get a rejection as you can see from the logs below.

If the FTP server accepts your non-passive connection, that refused message
would not appear to be server generated, so yes it looks like the client's NAT
router or firewall is blocking workable FTP.  

My Sonicwalls do monitor FTP connections and drop them if they find something
they don't like, that once happened several gigs into a virtual disk download
when it found a password scanner tool it did not like and dropped the data
connection.

Such problems with FTP are most auto updaters use HTTP 

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] Access denied issue

2013-09-03 Thread Angus Robertson - Magenta Systems Ltd
> Thanks. slightly different if PassiveMode = FALSE, but no cigar :(
> 09:13:40:776 LastResponse was : '502 Active FTP not allowed.'

Unusual to see an FTP server specifically refuse non-passive connections, do
you know what make? 

Unfortunately you won't get much further without seeing the actual FTP commands
received by the server, as modified by the NAT router, and even then there is
not much you can do.  

Maybe ask your client to try accessing a different public FTP server, like mine
at ics.ftptest.org, to see if it all FTP servers are being blocked or just this
one, I can look at the ICS FTP server logs.  

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] Access denied issue

2013-09-03 Thread David Rose (dsr)

Could it be some kind of proxy at the clients end ?

This is what the server gives me when I manually login, which I'm 
assuming is the FTP software

220 ProFTPD 1.3.3a Server (My FTP server)

I've just tried connecting without using passivemode on my PC and I 
don't get a rejection as you can see from the logs below.
Unfortunately as this is part of my auto-update code, the FTP server's 
address is hard-coded in to the app, but if I need to I could compile a 
special build that logs on to your server - thanks for the offer of that.



17:43:18:646 Logging started  03/09/2013 17:43:18
17:43:18:646 Created FTP Client
17:43:18:646 in DoGetUpdateFiles
17:43:18:646 Attempting to connect to FTP
17:43:18:646 connect to ftp
17:43:19:021 Session Connected, error = 0
17:43:19:333 Request ConnectAsync Done.
17:43:19:333 StatusCode = 230
17:43:19:333 LastResponse was : '230 Anonymous access granted, 
restrictions apply'

17:43:19:333 No error
17:43:19:333 Attempting directory change to: /pub/HireTRACK NX/autoupdates/
17:43:19:333 Recurse iteration0
17:43:19:333 recurse: /pub/HireTRACK NX/autoupdates/
17:43:19:505 Request CwdAsync Done.
17:43:19:505 StatusCode = 250
17:43:19:505 LastResponse was : '250 CWD command successful'
17:43:19:505 No error
17:43:19:505 Directory is ""
17:43:19:505 Successfully Changed Folder
17:43:20:130 Request MlsdAsync Done.
17:43:20:130 StatusCode = 226
17:43:20:130 LastResponse was : '226 Transfer complete'
17:43:20:130 No error

David

On 03/09/2013 17:34, Angus Robertson - Magenta Systems Ltd wrote:

Thanks. slightly different if PassiveMode = FALSE, but no cigar :(
09:13:40:776 LastResponse was : '502 Active FTP not allowed.'

Unusual to see an FTP server specifically refuse non-passive connections, do
you know what make?


--
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] Access denied issue

2013-09-03 Thread David Rose (dsr)

Thanks. slightly different if PassiveMode = FALSE, but no cigar :(

09:13:40:776 Request MlsdAsync Done.
09:13:40:776 StatusCode = 502
09:13:40:776 LastResponse was : '502 Active FTP not allowed.'
09:13:40:776 Error = 502 (502 Active FTP not allowed.)
09:13:40:960 Request MlsdAsync Done.
09:13:40:960 StatusCode = 550
09:13:40:960 LastResponse was : '550 Access is denied.'
09:13:40:961 Error = 550 (550 Access is denied.)

David

On 03/09/2013 17:05, Angus Robertson - Magenta Systems Ltd wrote:

I'm using the FTP client component in my app to login to my public
FTP site and download some files.
This seems to work well for almost all my customers, but one is
getting a '550' access denied message.

The error is happening with the MSLD command which needs to open a data
connection, which is where there can be fun with NAT routers that need to
change the data connection IP address.

Worth reversing passive mode to see if that makes a difference.

Angus


--

David Rose

Navigator Systems Ltd,
Network Business Centre,
9 River Street Place, Julian Road,
Bath BA1 2RS

Main Tel: +44 (0)207 183 0011
Fax: +44 (0)1225 464984

Company Email: da...@navigator.co.uk (Private e-mail on request)

CONFIDENTIALITY NOTICE

The contents of this e-mail are confidential to the ordinary user of
the e-mail address to which it was addressed and may also be
privileged.  If you are not the addressee of this e-mail you may not
copy, forward, disclose or otherwise use it or any part of it in any
form whatsoever.  If you have received this e-mail in error please
e-mail the sender by replying to this message.

--
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] Access denied issue

2013-09-03 Thread Angus Robertson - Magenta Systems Ltd
> I'm using the FTP client component in my app to login to my public 
> FTP site and download some files.
> This seems to work well for almost all my customers, but one is 
> getting a '550' access denied message.

The error is happening with the MSLD command which needs to open a data
connection, which is where there can be fun with NAT routers that need to
change the data connection IP address. 

Worth reversing passive mode to see if that makes a difference. 

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


[twsocket] Access denied issue

2013-09-03 Thread David Rose (dsr)
I'm using the FTP client component in my app to login to my public FTP 
site and download some files.
This seems to work well for almost all my customers, but one is getting 
a '550' access denied message.


Is this generated by the FTP server (in which case anyone have any 
suggestion as to why it should not like one particular anonymous login) 
or is it generated locally - where presumably a firewall or some such 
could be the cause ?


From the log file on his machine I can see

09:26:11:191 Request CwdAsync Done.
09:26:11:191 StatusCode = 250
09:26:11:191 LastResponse was : '250 CWD command successful'
09:26:11:191 No error
09:26:11:191 Directory is ""
09:26:11:191 Successfully Changed Folder
09:26:11:360 Request MlsdAsync Done.
09:26:11:360 StatusCode = 550
09:26:11:360 LastResponse was : '550 Access is denied.'
09:26:11:360 Error = 550 (550 Access is denied.)

whereas exactly the same part of the log on my test PC gives the 
following. The log files prior to the 550 are absolutely identical.


12:47:40:751 Request CwdAsync Done.
12:47:40:751 StatusCode = 250
12:47:40:751 LastResponse was : '250 CWD command successful'
12:47:40:751 No error
12:47:40:751 Directory is ""
12:47:40:751 Successfully Changed Folder
12:47:41:532 Request MlsdAsync Done.
12:47:41:532 StatusCode = 226
12:47:41:532 LastResponse was : '226 Transfer complete'
12:47:41:532 No error


--

David Rose

--
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