V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
m939594960
V2EX  ›  问与答

yum remove iptables 。。。。

  •  
  •   m939594960 · Oct 18, 2015 · 4727 views
    This topic created in 3846 days ago, the information mentioned may be changed or developed.

    今天想远程管理 mysql 的时候发现死活连不上。 后来想起来 应该是 iptables 的问题
    我就 /etc/init.d/iptables stop

    嗯 远程可以连上了

    后来想想我要 iptables 也没啥用
    就看了文章下面
    执行了一下 yum remove iptables 然后我的机器就没启动起来。。。

    http://os.51cto.com/art/201103/249464.htm

    还有救么? 我只想要回原来的数据

    我一查卸载 iptables 都是这个坑爹玩意 草

    21 replies    2015-10-19 00:23:10 +08:00
    kn007
        1
    kn007  
       Oct 18, 2015
    应该跟卸载没关系吧?

    你觉得实在没用,就 chkconfig iptables off 不自启动就行了。。。
    volqiu
        2
    volqiu  
       Oct 18, 2015
    service iptables stop ……
    m939594960
        3
    m939594960  
    OP
       Oct 18, 2015   ❤️ 1
    @kn007 你尝试一下就知道了 yum remove iptables 这个命令会卸载掉很多系统的组件 。。现在重启之后已经开不开机了
    m939594960
        4
    m939594960  
    OP
       Oct 18, 2015   ❤️ 1
    @volqiu 我想直接把 iptables 卸载了。 没想到一卸载还出事了。 现在已经开不开机了
    kn007
        5
    kn007  
       Oct 18, 2015
    @m939594960 有道理。。你知道还卸。。真蛋疼
    kn007
        6
    kn007  
       Oct 18, 2015
    @m939594960 有 kvm 远程么。没有只能到机房把数据备份出来了
    alect
        7
    alect  
       Oct 18, 2015
    yum remove iptables 不能卸载的吧,会一起卸载大量系统组建,好像没救了
    datocp
        8
    datocp  
       Oct 18, 2015
    竟然说 iptables 没用,完全没有丁点安全意识,分分钟钟等着被人爆破。
    m939594960
        9
    m939594960  
    OP
       Oct 18, 2015   ❤️ 1
    @kn007 我卸载之后才知道的 在联系机房了
    kn007
        10
    kn007  
       Oct 18, 2015
    @alect
    @datocp
    @m939594960
    其实一开始给在 iptables 给 mysql 端口放行就好了。。。
    wkdhf233
        11
    wkdhf233  
       Oct 18, 2015
    点蜡,开 TK 要硬盘镜像吧
    m939594960
        12
    m939594960  
    OP
       Oct 18, 2015
    @alect 关键可恶的是 一百度 /google 出来全是 yum remove iptables
    @datocp 并不值得别人去弄得服务器。。。。
    kn007
        13
    kn007  
       Oct 18, 2015
    @m939594960 起码可以被当肉机,没什么值不值得,防范是必须的。
    [蜡烛]
    humiaozuzu
        14
    humiaozuzu  
       Oct 18, 2015
    技术问题用 Google 也要用英文。。。 Google 中文就会各种问题,因果国内一堆不靠谱技术初学者,写的文章就是简化版文档加一堆错误。
    m939594960
        15
    m939594960  
    OP
       Oct 18, 2015
    @kn007 谢谢 我以后会注意的。
    @humiaozuzu 吃一堑长一智
    humiaozuzu
        16
    humiaozuzu  
       Oct 18, 2015
    @m939594960 我试了下 Google 英文关键字,没什么问题。另外如果觉得 iptables 太复杂,可以选一个 iptables 的前端学一下,使用成本会小非常多。
    m939594960
        17
    m939594960  
    OP
       Oct 18, 2015
    @humiaozuzu 嗯好的 谢谢
    PublicID
        18
    PublicID  
       Oct 18, 2015 via Android
    我 bing, Google yum remove iptables 第一条都是这个。
    http://unix.stackexchange.com/questions/121764/why-did-removing-iptables-break-my-network-access

    op 看到删一堆东西的时候也直接确认了么?
    esile
        19
    esile  
       Oct 18, 2015 via iPhone
    服务器只新增 不要删除
    kmahyyg
        20
    kmahyyg  
       Oct 18, 2015
    systemctl is-active
    yum install firewalld

    鉴定完毕
    k9982874
        21
    k9982874  
       Oct 19, 2015
    这个和 rm -rf /有一拼,我先一边笑会,你们继续
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1216 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 23:26 · PVG 07:26 · LAX 16:26 · JFK 19:26
    ♥ Do have faith in what you're doing.