FTP External network connection

Source: Internet
Author: User

Today will be the redhat in the construction of the FTP

    1. 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

    2. Just install FTP directly with Yum

      Yum-y Install FTP

    3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.