Tag Archives: 500 Illegal PORT command

Solution of displaying 500 illegal port command in FTP

As everyone is away from home during the Chinese new year, they need to log in to FTP temporarily. Especially in the face of pneumonia in 2020, most of the employees work from home. But it’s very strange that the following mistakes have been made all the time

ftp>ls
500IllegalPORTcommand.
ftp:bind:Addressalreadyinuse
ftp>
ftp>dir
500IllegalPORTcommand.

 

At the beginning, I thought it was a network problem, but testing all kinds of situations failed. Then I checked the relevant information on the Internet and found that it was the problem of firewall setting. Solve the problem as follows

FTP commands on the LAN to access FTPSERVER on the external network, the execution of any command (such as dir,ls,put,get) always reports the following error
ftp:500IllegalPORTcommand.425
ftp:UsePORTorPASVfirst
Or the following error
ftp:500IllegalPORTcommand.
ftp:bind:Addressalreadyinuse
This is mainly because the Iptables firewall does not support
ip_nat_ftp
ip_conntrack_ftp
This can be solved by executing the following command on the ftp server in linux
modprobeip_nat_ftp
modprobeip_conntrack_ftp

By executing the above two commands and using active mode, the problem is solved

Original address:

Solution of displaying 500 illegal port command in FTP

Label:

ftp

modprobe

five hundred

 

 

Intelligent recommendation

Turn on NFS file system to improve the performance of vagrant shared directory

My Mac collection

ntpdate[16603]: the NTP socket is in use

[No.4 ionic] modify Cordova plug-in

Solutions to common errors in redis service

 

–Posted from Rpc