峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
CentOS Firewall
2018-09-14 |Nonni | TSI
  1. CentOS6

    临时关闭

    service iptables stop

    禁止开机启动

    chkconfig iptables off

  2. CentOS7默认使用firewalld

    临时关闭

    systemctl stop firewalld

    禁止开机启动

    systemctl disable firewalld
    Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
    Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

  3. iptables-service

    安装iptables

    yum install -y iptables-services

    关闭防火墙

    service iptables stop

    检查防火墙状态

    service iptables status

respond-post-107

添加新评论

请填写称呼
请填写合法的电子邮箱地址
请填写合法的网站地址
请填写内容