Solved Vsftpd :500 Illegal PORT command Error

October 14, 2012 at 23:19:03
Specs: Linux x86_64
Hi,
I have installed vsftpd on ubuntu. When i use 'ls' command.
I getting this error
500 Illegal PORT command Error ftp: bind: Address already in use.

please any1 give suggestion.help me pls


See More: Vsftpd :500 Illegal PORT command Error

Report •

#1
October 16, 2012 at 10:55:02
Check, whether there is another FTP server process running on your Linux machine.
You can check netstat -ant and see, whether there is a local ip address listed, that is listening to port 21.
E.g:
Proto | Recv-Q | Send-Q | Local Address | Foreign Address | State
tcp | 0 | 0 | 192 168.1.100:21 | 0.0.0.0:* | LISTEN

Report •

#2
October 16, 2012 at 16:50:41
✔ Best Answer
Open /etc/vsftpd.conf, search for pasv_enable and set it to yes.
Set the value for pasv_min_port, e.g. 7000.
Set the value for pasv_max_port to 7100.

restart the vsftpd service.

If you've configured port forwarding in the routers setup, make sure, that ports 7000-7100 are forwarded to your ftp servers local ip address.


Report •

#3
October 18, 2012 at 21:57:52
Thank you so much ..

Its working now
I have not mention the ports 7000-7100. so i was getting error.

Now everything works fine.


Report •

Related Solutions

#4
October 18, 2012 at 22:03:40
I have a doubt.

Everytime I need to on passive mode like following.

ftp example.com
Name (example.com:ubuntu): ftp
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> passive
Passive mode on.
ftp> ls

How to add passive mode on permanently..
Thanks in Advance.


Report •

#5
October 19, 2012 at 03:15:37
You may read this:
https://security.appspot.com/vsftpd...

You can also use man vsftpd.conf on a terminal console, to get more informations on how to configure vsftpd service.


Report •

Ask Question