禁止小米路由器访问QQ视频
Posted adream307
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了禁止小米路由器访问QQ视频相关的知识,希望对你有一定的参考价值。
1. 路由器必须取得 root权限
2.使用host 查看 v.qq.com所对应的IP地址
host v.qq.com
v.qq.com is an alias for v.tc.qq.com.
v.tc.qq.com is an alias for v.tcdn.qq.com.
v.tcdn.qq.com is an alias for p21.tcdn.qq.com.
p21.tcdn.qq.com has address 211.161.127.152
p21.tcdn.qq.com has address 211.161.126.167
p21.tcdn.qq.com has address 211.161.127.151
p21.tcdn.qq.com has address 211.161.127.141
p21.tcdn.qq.com has address 211.161.127.150
3.root用户登录路由器,想FORWARD表添加规则
root@XiaoQiang:~# iptables -I FORWARD 1 -p tcp -d 211.161.127.141 -j DROP
root@XiaoQiang:~# iptables -I FORWARD 1 -p tcp -d 211.161.127.152 -j DROP
root@XiaoQiang:~# iptables -I FORWARD 1 -p tcp -d 211.161.126.167 -j DROP
root@XiaoQiang:~# iptables -I FORWARD 1 -p tcp -d 211.161.127.151 -j DROP
root@XiaoQiang:~# iptables -I FORWARD 1 -p tcp -d 211.161.127.150 -j DROP
root@XiaoQiang:~# iptables -L FORWARD
Chain FORWARD (policy DROP)
target prot opt source destination
DROP tcp -- anywhere 211.161.127.150
DROP tcp -- anywhere 211.161.127.151
DROP tcp -- anywhere 211.161.126.167
DROP tcp -- anywhere 211.161.127.152
DROP tcp -- anywhere 211.161.127.141
delegate_forward all -- anywhere anywhere
以上是关于禁止小米路由器访问QQ视频的主要内容,如果未能解决你的问题,请参考以下文章