LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ftp Problem (500 Illegal Port Command) (https://www.linuxquestions.org/questions/linux-networking-3/ftp-problem-500-illegal-port-command-441683/)

Palula 05-04-2006 04:42 PM

Ftp Problem (500 Illegal Port Command)
 
Hi everybody!

Recently Iīve known that my ISP has blocked ports for connections towards port 21 for any clients on itīs network. I had an ftp server and it worked really fine. But with this new policy, I had to change the port.

So I changed the services file in /etc/ and changed ftp port 21 to 40740. Ok it receives connections normally. It authenticates users nicelly but keeps giving me this message when I type dir, for example...

500 Illegal Port Command.
425 Use PORT or PASV first.

It works neat from my Lan anyway. This problem only occurs when I try to entre the FTP through WAN.

Thanks a lot! :)

baboooss 05-06-2006 01:17 AM

Do u have a firewall ??

vimal 05-06-2006 01:47 AM

Hello Palula,

Are you using FTP in active mode? Active mode FTP will get blocked if you are using a firewall. Try using the passive mode.

Thanks,,,

Palula 05-08-2006 07:49 AM

Yes I do have a Firewall!
But the connections are configured to be made as Passive already.

By the way, this config is only done on the client software right? Or is there a way for me to configure within the server config (I use vsftpd). Or does this have to be configured on both?

Anyway I still can't connect to the FTP server.


All times are GMT -5. The time now is 07:29 AM.