Sunday, August 21, 2016

Cấu hình Firewall và SELinux trên CentOS 7.0

Ở mức độ căn bản này, thường CentOS server mới chỉ đóng vai trò là một Server nằm trong mạng cục bộ chứ không public ra ngoài Internet, do đó để các cấu hình về sau trở nên đơn giản hơn, chúng ta sẽ thực hiện tắt tính năng Firewall và SELinux trên CentOS đi.
Sau khi đã hoàn thiện các cấu hình căn bản cũng như các dịch vụ mạng trên CentOS, tôi sẽ giới thiệu đầy đủ hơn về Firewall khi đó đứng ở vai trò Public Server ngoài Internet.

1. Vô hiệu hóa Firewall trong CentOS 7:




2. Vô hiệu hóa SELinux trong CentOS 7:
[root@quantrimangonline ~]# 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                     # thay đổi thành 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@quantrimangonline ~]# reboot               # Khởi động lại hệ thống

Share:

0 comments:

Post a Comment

Find us on Google Plus

Powered by Blogger.

QUẢN TRỊ VIÊN