CentOS 7.X 安全手记

1、安装云锁linux

  一、报错vim

    Install Selinux Policy Module:yunsuo_install/install: line 371: checkmodule: command not foundpost

     

 

  二、关闭SeLinuxspa

    #vim /etc/selinux/configblog

    将 SELINUX=enforcingip

    改 SELINUX=disabledci

    

  三、重启系统cmd

    #reboot nowmodule

2、Centos7相关的操做配置

  一、防火墙(firewall-cmd)

    1)、禁止被ping(禁止ICMP协议)

        #vim /etc/sysctl.conf

        #net.ipv4.icmp_echo_ignore_all = 1  
        #sysctl -p               //使配置生效。

    2)、关闭SMTP简单邮件传输协议,25端口

        #关闭

        #systemctl stop postfix.service

        #chkconfig postfix off

        #开启

        #chkconfig postfix on

        #systemctl start postfix.service

相关文章
相关标签/搜索