Newifi Mini 折腾记录

1. 安装OpenWRT

  • 未接通电源情况下,连接LAN口,设置网卡地址为192.168.1.X;
  • 按住reset按钮,接通电源,USB和2.4G灯闪烁后松开;
  • 用浏览器访问 http://192.168.1.1,上传固件(耗时100s);
  • 等待刷新完毕后,输入http://192.168.1.1即可进入管理页面。
  • 重启路由,网卡设置改回自动获取。

2. 安装ss

  • 设置上网方式、开启无线、替换软件源:(需自建反向代理服务器)
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz chaos_calmer_base http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/packages/base/
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/packages/luci/
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/packages/packages/
src/gz chaos_calmer_routing http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/packages/routing/
src/gz chaos_calmer_telephony http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/packages/telephony/
src/gz chaos_calmer_management http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/packages/management/
src/gz openwrt_dist http://openwrt-dist.sourceforge.net/releases/ramips/packages
src/gz openwrt_dist_luci http://openwrt-dist.sourceforge.net/releases/luci/packages
  • 用Xshell连接路由器,运行以下命令
opkg update
opkg install luci-i18n-base-zh-cn
opkg wget
opkg install ChinaDNS
opkg install shadowsocks-libev-spec
opkg install luci-app-chinadns
opkg install luci-app-shadowsocks-spec

安装过程中会提示出现错误,不用管它,完成后重启登录后台

  • 启用CHINADNS,其它默认(建议将8.8.4.4换成非标准自建DNS);
  • 网络菜单DHCP/DNS项下DNS转发设置为 127.0.0.1#5353;
  • HOSTS和解析文件项下勾选“忽略解析文件”;
  • 填写SHADOWSOCKS帐户信息;
  • 访问控制忽略ip列表选择『ChinaDNS路由表』,保存。

再然后Xshell输入以下命令

wget -O- 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | awk -F\| '/CN\|ipv4/ { printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > /etc/chinadns_chnroute.txt
reboot #重启

3. 安装adbyby(会卡)

wget http://update.adbyby.com/download/7620n.tar.gz
tar -xzvf 7620n.tar.gz
chmod 777 adbyby
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8118
./adbyby&

#如出现:can't load library 'libstdc++.so.6',则执行:

opkg update
opkg install libstdcpp

 

参考: http://jim-think.blogspot.jp/2015/02/newifi-mini.html https://cokebar.info/archives/664