Firewall for Linux: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
<pre> | <pre> | ||
SELINUX=disabled | SELINUX=disabled | ||
</pre> | |||
or | |||
<pre> | |||
sed /s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config | |||
</pre> | </pre> | ||
[[Category : Linux]] | [[Category : Linux]] |
Revision as of 06:39, 11 September 2013
To disable/enable the Linux firewall use the following command:
system-config-securitylevel-tui
For CentOS 6 and above
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
To disable selinux on CentOS 6 which is not displayed in the above mentioned TUI edit
/etc/selinux/config
SELINUX=disabled
or
sed /s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config