????SElinux????????????
???????SELinux???????
???????/etc/selinux/config????е?SELINUX="" ? disabled ??????????
??????????????????????????setenforce 0
???????
????setenforce 1 ????SELinux ???enforcing??
????setenforce 0 ????SELinux ???permissive??
??????lilo????grub????????????????selinux=0?????????selinux
????#---------------------------------------------------------------
??????selinux????

 

/usr/bin/setstatus -v

      ???£?

 

SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          enforcing
Policy version:                 21
Policy from config file:        targeted

????getenforce/setenforce????????SELinux????????????
????Linux???????
????1)      ?????????Ч??
????????? chkconfig iptables on
???????? chkconfig iptables off
????2)      ?????Ч????????Ч??
????????? service iptables start
???????? service iptables stop
?????????????????Linux?μ?????????????????????????п???????????
???????????????????????????????????????
???????/etc/sysconfig/iptables ?????????????????
????-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
????-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
?????????
????/etc/init.d/iptables status ??????????????????????????
????/etc/rc.d/init.d/iptables stop ???????
?????????????????????

 

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

???????
????fedora?£?
????/etc/init.d/iptables stop
????ubuntu?£?
????????UBUNTU??????????????
????????????????
????iptables -P INPUT ACCEPT
????iptables -P OUTPUT ACCEPT
??????????????ж??
????Ubuntu????й??iptables??????