OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
wildlynx
V2EX  ›  OpenWrt

OpenWrt 15.05 下面用 iptables 屏蔽网站不生效

  •  
  •   wildlynx · Jul 2, 2016 · 1669 views
    This topic created in 3628 days ago, the information mentioned may be changed or developed.
    root@OpenWrt:~# iptables -I FORWARD -d www.baidu.com -j DROP
    root@OpenWrt:~# ping www.baidu.com
    PING www.baidu.com (14.215.177.37): 56 data bytes
    64 bytes from 14.215.177.37: seq=0 ttl=58 time=18.976 ms


    不知道何解
    2 replies    2016-12-21 11:44:38 +08:00
    debiansid
        1
    debiansid  
       Jul 4, 2016
    用 dns 屏蔽
    heq
        2
    heq  
       Dec 21, 2016 via Android
    再加一条试试,注意-A 不行
    iptables -I INPUT -d www.baidu.com -j DROP

    我用两条命令才将不想看到的 IP 地址封死。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1164 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 18:28 · PVG 02:28 · LAX 11:28 · JFK 14:28
    ♥ Do have faith in what you're doing.