Opened 19 years ago

Last modified 19 years ago

#588 closed Bug report

Selecting TLS leads to Illegal Port Command

Reported by: anonymous Owned by:
Priority: normal Component: Other
Keywords: Cc: t8000, Tim Kosse
Component version: Operating system type:
Operating system version:


I was informed that our ftp server has now added
support for TLS. i tried to connect via TLS and
recieved an error message. the server admin told me he
never saw that port-command before, so it could be bug
of some kind.

the command sent is:

PORT 192,168,2,162,4,108

the response is:

500 Illegal PORT command

followed by the error:

Could not retrieve directory listing

please note this only happens while TLS is used to connect.


Status: Connecting to (my ftp-server) ...
Status: Connected with (my ftp-server), negotiating SSL
Response: 220 ProFTPD 1.2.9 Server (Debian) [my ftp-server]
Command: AUTH TLS
Response: 234 AUTH TLS successful
Status: SSL connection established. Waiting for welcome
Command: PBSZ 0
Response: 200 PBSZ 0 successful
Command: PROT P
Response: 200 Protection set to Private
Command: USER (my username)
Response: 331 Password required for (my username).
Command: PASS (*)
Response: 230 User (my username) logged in.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: PORT 192,168,2,162,4,108
Response: 500 Illegal PORT command
Error: Could not retrieve directory listing

Change History (1)

comment:1 by t8000, 19 years ago

I just found out that this problem can be resolved by
selecting "passive mode" in preferences

Note: See TracTickets for help on using tickets.