Firewall for Linux

From KlavoWiki
Revision as of 23:36, 11 September 2014 by David (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Firewall

CentOS 7

systemctl stop firewalld
systemctl disable firewalld

CentOS 6

system-config-firewall-tui

If the package is not installed you can install it by using the following yum command.

yum install system-config-securitylevel-tui

selinux

To disable selinux on CentOS 6 and 7

vi /etc/selinux/config

and set SELINUX

SELINUX=disabled

or

sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config