Pengaturan Firewall Dan Selinux Centos 7

Tanggal : 01 Oct 2018, Category : Server, Create By : admin

FireWall dan Selinux adalah sebuah perangkat atau pengaturan di dalam sebuah operating system linux yang dimana di gunakan sebagai pengaturan sebuah akses perbedaanya adalah jika FireWall di gunakan untuk mengontrol akses terhadap user yang memiliki akses terhadap jaringan dari pihak luar, biasanya FireWall di gunakan untuk pengamanan sebuah sitem jaringan.

SELinux merupanan kependekan dari Security Enhanced Linux, adalah sebuah sistem atau pengaturan yang digunakan untuk keamanan system di dalam operating system Linux itu sendiri, biasanya keamanan yang di berikan adalah dalam pengaksesan sebuah folder, seperti contohnya jika kita mengistal sebuah web server dimana kita akan memindahkan directory rootnya biasanya kita akan mendapati error permission denied.

Perintah FireWall

[root@gia ~]# systemctl Status firewalld    # cek satus firewall
[root@gia ~]# systemctl stop firewalld # menghentikan firewall
[root@gia ~]# systemctl disable firewalld # mendisable firewall (permanent)

Perintah SELinux

[root@gia ~]# 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 # Rubah disini
# 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
# restart
[root@gia ~]# reboot

Untuk menyimpan pengaturan vi tekan Esc Tulis wq! (save)  jika tidak menyimpan q! (exit)


Keyword:
  • firewall
  • selinux
  • pengaturan firewall
  • pengaturan selinux

Artikel Lain

The Difference Between Mysql And Postgresql Databases

Date : 13 Feb 2023, Category : Database, Create By : admin

MySQL and PostgreSQL are both relational database management systems, but they have some differences in terms of features, performance, and syntax. License: MySQL is owned by Oracle Corporation and is released .....

Html Images And How To Use It

Date : 15 Feb 2023, Category : HTML, Create By : admin

HTML images are used to display pictures or graphics on a web page. Here's how to use them: To add an image to your web page, use the <img> tag and .....

Setting Network Centos 7

Date : 01 Oct 2018, Category : Server, Create By : admin

Melanjutkan materi sebelumnya mengenai pengaturan firewall dan selinux, kali ini kami akan membahas mengenai cara setting network pada centos 7, pengaturan network ini sangat di butuhkan pada awal setelah anda .....