Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
543400
V2EX  ›  Linux

centos 7 怎么完全关闭防火墙?

  •  
  •   543400 · Jun 6, 2015 · 5098 views
    This topic created in 4043 days ago, the information mentioned may be changed or developed.
    11 replies    2015-06-08 09:18:08 +08:00
    xcai
        1
    xcai  
       Jun 6, 2015 via Android
    systemctl stop iptables
    anyran
        2
    anyran  
       Jun 6, 2015
    systemctl disable firewalld
    lhbc
        4
    lhbc  
       Jun 6, 2015
    systemctl mask firewalld.service
    这样 firewalld.service 就被软连接到 /dev/null
    systemd 完全启动不了防火墙
    zts1993
        5
    zts1993  
       Jun 6, 2015 via Android
    是firewalld不是iptables吧?
    543400
        6
    543400  
    OP
       Jun 6, 2015 via Android
    @zts1993 centOS7变了 用iptables
    543400
        7
    543400  
    OP
       Jun 6, 2015 via Android
    @xcai thankyou
    snnn
        8
    snnn  
       Jun 7, 2015
    把firewalld直接用yum卸载了先。换回iptables再上来问。
    543400
        9
    543400  
    OP
       Jun 7, 2015 via Android
    @snnn thankyou
    blank4me
        10
    blank4me  
       Jun 8, 2015
    @543400 你这说反了吧。是CentOS 7改成了firewalld。
    twl007
        11
    twl007  
       Jun 8, 2015 via iPhone
    service firewalld stop
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   942 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 21:37 · PVG 05:37 · LAX 14:37 · JFK 17:37
    ♥ Do have faith in what you're doing.