Selasa, 28 Februari 2012

CARA MEMATIKAN FIREWALL DAN SELinux (Security-Enhanced Linux) PADA CENTOS 5



  •      Jiga ada firewall yang berjalan di lan anda. Anda harus menghentikan iptables dengan perintah sebagai berikut
  •      Matikan SELinux jiga anda tidak membutuhkannya..



[root@server]# /etc/rc.d/init.d/iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: Removing netfilter NETLINK layer.
[ OK ]
[root@server]# chkconfig iptables off
[root@server]# chkconfig ip6tables off





[root@server]# 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                   #ubah dari enable ke desabled
# SELINUXTYPE= type of policy in use. Possible values are:
#                      targeted - Only targeted network daemons are protected.
#                      strict - Full SELinux protection.
SELINUXTYPE=targeted







0 comments:

Poskan Komentar

Recent Posts