Cau hinh Firewall va SELinux tren Centos 7

FireWall

[1] Nếu Firewall trên máy chủ là không cần thiết (ví dụ đã có tường lửa khác đang chạy trong mạng LAN của bạn) thì việc tắt Firewall được thực hiện như sau.

[root@dlp ~]# systemctl stop firewalld 
[root@dlp ~]# systemctl disable firewalld
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'

SELinux

[2] Nếu bạn muốn vô hiệu hóa SELinux (Security-Enhanced Linux), cấu hình như sau. 

[root@dlp ~]# vi /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 - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@dlp ~]# reboot
  • 1 Người dùng thấy hướng dẫn này hữu ích
Hướng dẫn này có hữu ích?

Những hướng dẫn liên quan

Huong dan cai dat CentOS 7

[1] CentOS 7.x tương thích với Red Hat Enterprise Linux 7.x. CentOS 7 được phát hành vào...

Tao User tren Centos 7

[1] Tạo 1 tài khoản có tên "cent" : [root@dlp ~]# useradd cent [root@dlp ~]# passwd cent...

Cau hinh Network tren Centos 7

[1] Thiết lập IP tĩnh cho Server.Thay tên của card mạng "eno16777736" bằng tên của card mạng thực...

Quan ly va Cau hinh cac dich vu bang systemctl tren Centos 7

6-Cấu hình các dịch vụ trên Centos 7[1] It's possible to make sure services' status like follows....

Cap nhat he thong Centos 7

7 - Cập nhật hệ thống Centos 7[1] Sau khi cài đặt xong hệ điều hành CentOS 7, bạn nên cập nhật...