Home > OS >  Modify the FTP port error by default
Modify the FTP port error by default

Time:03-12

System: Red Hat 4.1.2-48
Demand is the client via FTP access server, and server port should be changed to 2222

Step1.
/etc/services 21 to 2222/TCP/TCP
The/etc/VSFTPD/VSFTPD. Conf line listen_port=2222
The service restart
The firewall has closed

Step2.
Now the client can connect to the server via FTP, but execution order error
500 Illegal PORT command
425 the Use of the PORT or PASV first

Step3.
Aiming at the problem of step2 modification for passive mode FTP server, and because the environment problem, limiting the port 30201
The/etc/VSFTPD/VSFTPD. Conf added
Pasv_enable=YES
Pasv_max_port=30201
Pasv_min_port=30201

Step4.
The client connect server error to passive mode
OOPS: 500 priv_sock_get_int
FTP: Passive mode refused: Not owner

Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



  • Related