Firewall for Linux: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
To disable/enable the Linux firewall use the following command:
= Firewall =
<pre>
== CentOS 6 ==
system-config-securitylevel-tui
</pre>
 
= CentOS 6 =
<pre>
<pre>
system-config-firewall-tui
system-config-firewall-tui
Line 14: Line 10:
</pre>
</pre>


= CentOS 7 =
== CentOS 7 ==
<pre>
<pre>
systemctl stop firewalld
systemctl stop firewalld
Line 20: Line 16:
</pre>
</pre>


To disable selinux on CentOS 6 and 7 which is not displayed in the above mentioned TUI edit<br>
= selinux =
'''/etc/selinux/config'''
To disable selinux on CentOS 6 and 7<br>
<pre>
vi /etc/selinux/config
</pre>
 
and set SELINUX
 
<pre>
<pre>
SELINUX=disabled
SELINUX=disabled

Revision as of 04:40, 7 August 2014

Firewall

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

CentOS 7

systemctl stop firewalld
systemctl disable firewalld

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