Firewall & SeLinux

[1] If some firewalls are running in your LAN and iptables in the server is unnecessary, Stop it.
[root@dlp ~]#

/etc/rc.d/init.d/iptables stop

iptables: Flushing firewall rules:

[ OK ]

iptables: Setting chains to policy ACCEPT: filter

[ OK ]

iptables: Unloading iptables modules:

[ OK ]

[root@dlp ~]#

chkconfig iptables off

[root@dlp ~]#

chkconfig ip6tables off
SELinux
[2] Disable SELinux (Security-Enhanced Linux) if you don’t need it.

[root@dlp ~]#

vi /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#

enforcing – SELinux security policy is enforced.

#

permissive – SELinux prints warnings instead of enforcing.

#

disabled – SELinux is fully disabled.

SELINUX=

disabled
# change

# SELINUXTYPE= type of policy in use. Possible values are:
#

targeted – Only targeted network daemons are protected.

#

strict – Full SELinux protection.

SELINUXTYPE=targeted

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s