m939594960
V2EX  ›  问与答

yum remove iptables 。。。。

  •  
  •   m939594960 · Oct 18, 2015 · 5181 views
    This topic created in 4034 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
    kn007
    Oct 18, 2015
    1
    应该跟卸载没关系吧?

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

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

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