V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
cobola
V2EX  ›  问与答

mac 下 如何屏蔽一个 ip? 122.141.234.60

  •  
  •   cobola · 2015-04-17 21:51:04 +08:00 · 5348 次点击
    这是一个创建于 3304 天前的主题,其中的信息可能已经有所发展或是发生改变。
    122.141.234.60 这个ip 妈的 运营商劫持了
    7 条回复    2015-04-20 18:39:58 +08:00
    hackerwgf
        1
    hackerwgf  
       2015-04-17 22:11:11 +08:00
    我也遇到了...
    yinheli
        2
    yinheli  
       2015-04-17 22:57:42 +08:00
    我也是...

    抓包看了下. 是百度的一个统计脚本被劫持了.

    curl 重现...

    curl -v hm.baidu.com
    * Rebuilt URL to: hm.baidu.com/
    * Hostname was NOT found in DNS cache
    * Trying 220.181.164.39...
    * Connected to hm.baidu.com (220.181.164.39) port 80 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.37.1
    > Host: hm.baidu.com
    > Accept: */*
    >
    < HTTP/1.1 302 Found
    < Location: http://122.141.234.60:51234/bdpop.sl.php?http://hm.baidu.com/
    < Content-type: text/html
    < Content-Length: 0
    <
    * Excess found in a non pipelined read: excess = 890 url = / (zero-length body)
    * Connection #0 to host hm.baidu.com left intact
    yinheli
        3
    yinheli  
       2015-04-17 23:01:50 +08:00
    现在... 暂时先吧 hm.baidu.com hosts 到 127.0.0.1 了
    cobola
        4
    cobola  
    OP
       2015-04-17 23:08:24 +08:00
    @yinheli 多谢多谢 搞定
    yinheli
        5
    yinheli  
       2015-04-18 00:32:53 +08:00
    @cobola 也可以改路由器的 iptables. 这样所有的设备都ok了.

    比如我的 openwrt 的路由器. 在 iptables 里加了一条.
    iptables -I FORWARD -d 122.141.234.60 -j REJECT

    holyghost
        6
    holyghost  
       2015-04-19 12:59:01 +08:00
    同被劫持。
    brt
        7
    brt  
       2015-04-20 18:39:58 +08:00
    这两天也出现这种情况,在打开易迅时火狐提示。
    坐标:广东汕头。电信。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   979 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:37 · PVG 07:37 · LAX 16:37 · JFK 19:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.