The relationship between vsFTPd servers, firewalls, and SELINUX is ambiguous.

Source: Internet
Author: User
Article Title: The relationship between vsFTPd servers and firewalls and SELINUX is ambiguous. Linux is a technology channel of the IT lab in China. Some basic categories include desktop applications, Linux system management, kernel research, embedded systems, and open-source systems. I have seen some brothers on the forum that vsFTPd servers are running normally, but it cannot be accessed or files cannot be uploaded by users. I think it should be a firewall or SELINUX. The FTPD server may be protected by the firewall or SELINUX security mechanism. Therefore, you must have the firewall over ftp, and SELINUX over the ftp server;
In Fedora/Redhat/CentOS, you need to set up a firewall, you can turn off the firewall, or in the custom, let the ftp "through" firewall;
[Root @ localhost ~] # System-config-securitylevel-tui
Or run the following command to clear firewall rules (common );
[Root @ localhost beinan] # iptables-F
The explanation of SELINUX server may be difficult for veteran or novice users. We recommend that you use SELINUX or allow the vsFTPd server to skip SELINUX startup; that is to say, the general method of 4.1 and vsFTPd server startup and shutdown is required; this is effective in Fedora/Redhat/CentOS to start vsFTPd server;
Of course, you can also disable SELINUX. The configuration file in/etc/selinux/config is as follows;
/Etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX = can take one of these three values:
# Enforcing-SELinux security policy is enforced.
# Permissive-SELinux prints warnings instead of enforcing.
# Disabled-SELinux is fully disabled.
SELINUX = Disabled # in this way, The SELINUX server is turned off. restart the system;
# SELINUXTYPE = type of policy in use. Possible values are:
# Targeted-Only targeted network daemons are protected.
# Strict-Full SELinux protection.
SELINUXTYPE = targeted
The article shows that the relationship between vsFTPd servers and firewalls and SELINUX is not bad, but the above method can better handle their relationship.
Related Article

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.