Firewall for Linux: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
</pre> | </pre> | ||
= CentOS 6 = | |||
<pre> | <pre> | ||
system-config-firewall-tui | system-config-firewall-tui | ||
Line 14: | Line 14: | ||
</pre> | </pre> | ||
To disable selinux on CentOS 6 which is not displayed in the above mentioned TUI edit<br> | = CentOS 7 = | ||
<pre> | |||
systemctl stop firewalld | |||
systemctl disable firewalld | |||
</pre> | |||
To disable selinux on CentOS 6 and 7 which is not displayed in the above mentioned TUI edit<br> | |||
'''/etc/selinux/config''' | '''/etc/selinux/config''' | ||
<pre> | <pre> |
Revision as of 04:37, 7 August 2014
To disable/enable the Linux firewall use the following command:
system-config-securitylevel-tui
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
To disable selinux on CentOS 6 and 7 which is not displayed in the above mentioned TUI edit
/etc/selinux/config
SELINUX=disabled
or
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config