Showing posts with label FTP Error "500 - Illegal port command". Show all posts
Showing posts with label FTP Error "500 - Illegal port command". Show all posts

2011/07/25

FTP Error "500 - Illegal port command"

After changing my Wifi home router to TP-Link, I can successfully login to a ftp server but can not do "ls" or  or transfer files and the error code returned was 500 – illegal port command.













On careful reading the TP-Link manual, there is a security feature called FTP ALG which allows ftp traversal over NAT. Without enabling FTP ALG, ftp is destined to fail because the client provides a private IP address and a port number to the FTP server but somehow, the port number is changed by the NAT device. FTP ALG ensures that the NATed port number and the ftp data port number initiated by the client are kept in a one-to-one mapping state table.















This is another example of NAT breaking end-to-end connectivity. Similar ALGs are also needed for SIP and H.323. NAT only brings troubles to the networked Internet world and it should be dropped as soon as practicable.