Hi all,
I'm trying to access the sme server from the internet via FTP, The sme server is behind a firewall, on the firewall I natted to the sme server ip a the ports 20 21 and the passiveports range 30000 - 30050 setted this range in the proftpd.conf template and xpanded it after that, I restarted the daemon with non errors.
When I try to connect from outside, using the ftp command line utility, I can login, I issue the passive command and it answers that passive mode is on, after that whichever command I issue (be it a ls, dir, mkdir...) the server answers:
500 The server returned invalid response for PASV command
Passive mode refused.
if I issue the ls command before issuing the passive command (is it in active?), I get:
500 Invalid PORT command.
ftp: bind: Address already in use
which I cannot really understand.
Here I paste the session:
rokepo@streamer:~$ ftp xxx.xxx.xxx.xxx
Connected to xxx.xxx.xxx.xxx.
220 yyy.yyy.yyy.yyy FTP server ready
Name (xxx.xxx.xxx.xxx:rokepo): aaaaaa
331 Password required for gtassoni.
Password:
230 User aaaaaa logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
500 Invalid PORT command.
ftp: bind: Address already in use
ftp> passive
Passive mode on.
ftp> ls
500 The server returned invalid response for PASV command.
Passive mode refused.
ftp> exit