Today will be the redhat in the construction of the FTP
First of all, the construction of the FTP is very simple, personal feel, but the company requirements from the external network access and can be downloaded, so there is an intranet can be accessed but outside the network access problems, so very tangled, on-line search for a half-day, the original is active mode and passive mode reasons, the following say how FTP can be connected
Just install FTP directly with Yum
Yum-y Install FTP
Configuration file Modification
[Email protected] ~]# Grep-ev "^#|^$"/etc/vsftpd/vsftpd.conf
Anonymous_enable=yes
Local_enable=yes
Write_enable=yes
local_umask=022
Anon_upload_enable=yes
Dirmessage_enable=yes
Xferlog_enable=yes
Connect_from_port_20=yes
Xferlog_std_format=yes
Listen=yes
Pam_service_name=vsftpd
Userlist_enable=yes
Tcp_wrappers=yes
Pasv_enable=yes
pasv_min_port=8888
pasv_max_port=8889
4. Add Users and authorize
5. Restart Ftp:service vsftpd Restart
6. Firewall Configuration
NAT Server Zone Untrust protocol TCP global extranet IP 8888 inside intranet IP 8888
NAT Server Zone Untrust protocol TCP global extranet IP 8889 inside intranet IP 8889
NAT Server Zone Untrust protocol TCP global extranet IP FTP inside intranet IP FTP
NAT Server Zone Untrust protocol TCP global extranet IP 20 intranet IP 20
need to open 21 and Port
7. Connect via flashFXP Software (no need to configure passive mode, default)
FTP External network connection