Topic:
极路由开发(Root)模式安装Shadowsocks, 以及Chromecast因DNS污染无法投射YouTube的解决方案
本文欠整理. 稍后整理.
申请放弃质保启用开发者(Root)模式:
https://app.hiwifi.com/store.php?m=plugins&a=info&rid=r935320750&sid=285580383
开发者模式卸载插件功能介绍| 服务指南| 版本变动
类别: 管理工具 / 应用作者: HiWiFi / 当前版本: 0.0.7 / 发布时间: 2015-10-30
启用路由器的root开发权限,以及串口终端。 注意事项 未通过北京极科极客科技有限公司开发者模式申请者,请不要安装此应用;
root系统的SSH端口号为1022,用户名: root,密码: 路由器后台密码;
重要:打开开发者模式后,仅可安装有限的插件,建议开发者同时备用多台路由器进行开发、测试。
Root Login:
ssh root@192.168.199.1 -p 1022
安装 ss
========极路由Root安装Shadowsocks========
旧版hiwifi => 请参见博客: 极路由Shadowsocks家庭无痛翻墙实践
新版hiwifi => 使用项目根目录下的 shadow.sh 脚本进行安装, 建议使用以下一键命令:cd /tmp && curl -k -o shadow.sh https://raw.githubusercontent.com/qiwihui/hiwifi-ss/master/shadow.sh && sh shadow.sh && rm shadow.shhiwifi 1.2.5.15805s
cd /tmp && curl -k -o shadow.sh https://raw.githubusercontent.com/qiwihui/hiwifi-ss/master/shadow.sh && sh shadow.sh 12515805s && rm shadow.sh
========极路由Root安装Shadowsocks========
测试 Shadowsocks:
GreenSShttps://greenss.org/users/aff.php?aff=868
Chromecast 因为DNS污染无法投射Youtube的解决方案
========= Chromecast trouble (DNS cache pollution): ==========
1. login to your rooted GeekRouter using:ssh root@192.168.199.1 -p 1022
2. then open firewall.user on the router usingvi /etc/firewall.user
orvim /etc/firewall.user
3. then press I to enable editing,
4. copy and paste following two lines:
iptables -I PREROUTING -t nat -p udp -d 8.8.4.4 –dport 53 -j REDIRECT –to-ports 53iptables -I PREROUTING -t nat -p udp -d 8.8.8.8 –dport 53 -j REDIRECT –to-ports 53
5. (1)start a new line and type “done” and (2) press ESC to stop editing
6. type “:wq!” to quite editing firewall.user file,
7. restart firewall by using: “/etc/init.d/firewall restart ”
========= Chromecast trouble (DNS cache pollution): ==========
#####how to exit VIM editor ######
:q to quit (short for :quit)
:q! to quit without saving (short for :quit!)
:wq to write and quit (think write and quit)
:wq! to write and quit even if file has only read permission (if file does not have write permission: force write)
😡 to write and quit (similar to :wq, but won’t write if there are no changes)
:qa to quit all (short for :quitall)
#####how to exit VIM editor ######
References:
http://weibo.com/p/230927693104632704008192 Chromecast 避免 DNS 污染恢复投射 Youtube 教程
https://www.8dlive.com/post/112.html chromecast不能投射youtube 劫持DNS 解决chromecast本地解析
I am not sure i like this two lines that might be working for the chrome cast issue too:
iptables -t nat -A PREROUTING -s 192.168.1.1/24 -p udp –dport 53 -j DNAT –to 192.168.1.1
iptables -t nat -A PREROUTING -s 192.168.1.1/24 -p tcp –dport 53 -j DNAT –to 192.168.1.1