首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
›
OpenWrt 官方网站
V2EX
›
OpenWrt
OpenWrt 15.05 下面用 iptables 屏蔽网站不生效
wildlynx
·
2016-07-02 08:26:28 +08:00
· 700 次点击
这是一个创建于 3035 天前的主题,其中的信息可能已经有所发展或是发生改变。
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
不知道何解
14.215.177.37
iptables
bytes
ping
2 条回复
•
2016-12-21 11:44:38 +08:00
1
debiansid
2016-07-04 18:26:37 +08:00
用 dns 屏蔽
2
heq
2016-12-21 11:44:38 +08:00 via Android
再加一条试试,注意-A 不行
iptables -I INPUT -d
www.baidu.com
-j DROP
我用两条命令才将不想看到的 IP 地址封死。
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
5582 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 42ms ·
UTC 03:29
·
PVG 11:29
·
LAX 20:29
·
JFK 23:29
Developed with
CodeLauncher
♥ Do have faith in what you're doing.