centos7 firewall related

selinux (file security)

Security-Enhanced Linux (Security-Enhanced Linux) referred to SELinux, it is a Linux kernel module, Linux is a security subsystem.

SELinux is mainly developed by the US National Security Agency. 2.6 and above versions of the Linux kernel have been integrated SELinux module.

SELinux structure and configuration is very complex and there are a lot of conceptual things, difficult to learn fine. Many Linux system administrators find it troublesome to regard the SELinux closed

shut down

vim /etc/selinux/config 


SELINUX=enforcing
改为
SELINUX=disabled

View Status

getenforce

firewalled (to prevent external attacks)

Start: systemctl start firewalld 
closed: systemctl stop firewalld 
view status: systemctl status firewalld 
boot disabled: systemctl disable firewalld 
Power On: systemctl enable firewalld

Guess you like

Origin www.cnblogs.com/luxiaojun/p/11090734.html