Tuesday, June 30, 2015

Initial Setting CentOS 7 - Firewall and Selinux




FIREWALL

If the Firewall on the server is unnecessarry (for example, because some firewalls are allready running in your LAN ),
then stop it like follows.
If needs, refer to here to configure Firewalld.


[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
If you'd like to disable SELinux (Security-Enhanced Linux), configure like follows.
[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
# change


# 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

Related Posts:

  • A Basic MySQL Tutorial About MySQL MySQL is an open source database management software that helps users store, organize, and retrieve data. It is a very powerful program … Read More
  • How To Setup Your Own VPN With PPTP Intro One of the commonly asked questions from our users is how to add another IP address to their server. You can assign your own private IP addres… Read More
  • DNS Server - 2 Set ZoneCreate zone files that servers resolve IP address from domain name For internal zone This example uses internal address[10.0.0.0/24], domain name[ser… Read More
  • DNS Server - 3 Start BindStart BIND. [root@dlp ~]# systemctl start named  [root@dlp ~]# systemctl enable named Change DNS settings that the server … Read More
  • DNS Server - 1 Install BINDInstall BIND to configure DNS server which resolves domain name or IP address. BIND uses 53/TCP,UDP Install BIND. [root@dlp ~]# yum -y inst… Read More

0 comments:

Post a Comment