Skip to content

Instantly share code, notes, and snippets.

@GavinFoo
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save GavinFoo/302b5364db799a69f753 to your computer and use it in GitHub Desktop.

Select an option

Save GavinFoo/302b5364db799a69f753 to your computer and use it in GitHub Desktop.
OpenWrt 安装流程
# tftp 刷机
# 只连接WAN口旁边的LAN口
192.168.1.2 | 255.255.255.0 | 192.168.1.1
route print
netsh interface ipv4 add neighbors 3 192.168.11.1 02-AA-BB-CC-DD-1A
# 背面灯全部闪烁后 LAN口第一次闪烁后立即执行
tftp -i 192.168.11.1 PUT openwrt-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin
# 等待5-10分钟
netsh interface ipv4 delete neighbors 3 192.168.11.1 02-AA-BB-CC-DD-1A
telnet 192.168.1.1
# OpenWrt 基本配置
opkg update
opkg install ipset libpolarssl nano luci luci-i18n-chinese
reboot
# SS + ChinaDNS
# 参考 http://cokebar.info/archives/664
# shadowsocks-spec: http://sourceforge.net/projects/openwrt-dist/files/shadowsocks-libev/
# chinadns-c-openwrt: http://sourceforge.net/projects/openwrt-dist/files/chinadns-c/
# luci-app-shadowsocks: http://sourceforge.net/projects/openwrt-dist/files/luci-app/shadowsocks-spec/
# luci-app-chinadns-c: http://sourceforge.net/projects/openwrt-dist/files/luci-app/chinadns-c/
cd /tmp
opkg install shadowsocks-libev-spec-polarssl_1.5.3-1_ar71xx.ipk
opkg install ChinaDNS-C_1.1.7-2_ar71xx.ipk
opkg install luci-app-chinadns-c_1.0.0-3_all.ipk
opkg install luci-app-shadowsocks-spec_1.0.0-2_all.ipk
# 谜之神坑
# 注意双引号
nano /etc/shadowsocks/config.json
```
{
"server": "server",
"server_port": "server_port",
"local_port": "1080",
"password": "password",
"method": "rc4-md5"
}
```
# 后台》服务》SS
# 配置文件路径 /etc/shadowsocks/config.json
@GavinFoo

Copy link
Copy Markdown
Author

/etc/init.d/shadowsocks start

@GavinFoo

Copy link
Copy Markdown
Author

修改 /etc/opkg.conf
添加
arch all 100
arch noarch 200
arch ralink 300
arch ramips_24kec 400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment