1.刷路由器的系统到openwrt

https://wiki.openwrt.org/toh/start

在网址中找到适合你路由器的型号,型号后面跟着view。打开的页面里有

硬件型号

Target:brcm47xx

固件下载地址

Firmware OpenWrt Install URL

**下载好固件,记住硬件型号,提醒记录拨号用PPP0e的账号的密码**

刷系统方法很多,可以直接在路由的管理界面上传并刷固件

略过路由器基本配置方法....


2.收集安装包

·chinadns

    https://github.com/aa65535/openwrt-chinadns


·shadowsocks

    openwrt的内置软件包安装

    #opkg update

    #opkg list |grep shadowsocks

    #opkg install shadowsocks

·luci for chinadns

·luci for shadowsocks

    https://github.com/aa65535/openwrt-dist-luci/releases

 shadowsocks-libev

软件下载地址:

https://sourceforge.net/projects/openwrt-dist/files/shadowsocks-libev/ (根据cpu型号下载) 

LuCI-APP (

图形控制)

软件下载地址:https://sourceforge.net/projects/openwrt-dist/files/luci-app/shadowsocks-spec/ 

一定要spec 1.4.0<==>2.4.7

3.安装包

ipkg install /tmp/下载的安装包.ipk


4.配置

路由中会增加服务菜单,准备账号(免费:ss-link,16$/年:shadowsocks.com

需要配置三块,网络基本设置、chinadns,ss

·网络基本设置-增加本地DNS

· chinadns配置服务端口及自动更新脚本(用crontab 运行下列脚本)

    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

·ss 配置购买的服务地址、端口、密码和加密方式

服务间的端口对应关系如图

  • 无标签