Mon Sep 29 16:29:41 UTC 2008
John R Pierce <pierce at hogranch.com>

Gopinath Achari wrote:
> 227 Entering Passive Mode (192,168,1,40,233,89)
> PORT 192,168,1,40,233,89
> 500 Illegal PORT command.

**I didn't think you used a PORT command when doing a PASV transfer, the 
address and port was given by the SERVER in the 227 response to the 
PASV.****  However, **that appears to be a perfectly legitimate PORT 
command. is the IP, (233,89) is the port in  a split 
decimal notation (233*256 + 89 == **59737, so its port 59737).    **

Is there any NAT translation going on between the client and the 
server?   FTP and NAT is messy at best.

btw, the log session you sent shows no signs of an 'upload', just a 
directory listing.