Firewall for Linux: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Firewall = | |||
== CentOS 7 == | |||
<pre> | |||
systemctl stop firewalld | |||
systemctl disable firewalld | |||
</pre> | |||
== CentOS 6 == | |||
<pre> | <pre> | ||
system-config- | system-config-firewall-tui | ||
</pre> | </pre> | ||
If the package is not installed you can install it by using the following yum command. | If the package is not installed you can install it by using the following yum command. | ||
<pre> | <pre> | ||
yum install system-config-securitylevel-tui | yum install system-config-securitylevel-tui | ||
</pre> | </pre> | ||
To disable selinux on CentOS 6 | = selinux = | ||
To disable selinux on CentOS 6 and 7<br> | |||
<pre> | |||
vi /etc/selinux/config | |||
</pre> | |||
and set SELINUX | |||
<pre> | <pre> | ||
SELINUX=disabled | SELINUX=disabled | ||
</pre> | |||
or | |||
<pre> | |||
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config | |||
</pre> | </pre> | ||
[[Category : Linux]] | [[Category : Linux]] |
Latest revision as of 23:36, 11 September 2014
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