Selinux;firewall Firewall

Source: Internet
Author: User
Tags symlink

One:

SELinux is the abbreviation for "security-enhanced linux", developed by the NSA "nsa=the National security agency" and SCC (secure Computing Corporation) An expanded mandatory access control security module for Linux. (Excerpt from Baidu Encyclopedia)

SELinux has a choice of "disabled""permissive","enforcing"3.

The default for my computer is enforcing.


Check if SELinux is on command sestatus if the status is enabled, SELinux is turned on

Permanently close SELinux

Vim/etc/selinux/config

Default selinux=enforcing

We modified to SELinux =disabled

Then reboot

Re-use Sestatus is the disabled state.


II: CentOS Firewall off

CentOS 7.0 uses firewall as a firewall by default, while previous versions use Iptables

Iptables Close Command iptables stop

Firewall command SYSTEMCTL status FIREWALLD

Firewall-cmd--state If the status is running means run

Firewall off

Systemctl Stop Firewalld.service

[Email protected]/]# Firewall-cmd--state

Not running firewall is off

Systemctl Disable Firewalld.service prohibit the boot of the firewall.

Removed Symlink/etc/systemd/system/dbus-org.fedoraproject.firewalld1.service.

Removed Symlink/etc/systemd/system/basic.target.wants/firewalld.service.




Selinux;firewall Firewall

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.