分类: network

wndr4300 刷openwrt 科学上网

刷机 基础配置

参考文件入口
需要的刷机文件@百度网盘

shadowsocks-spec

chinadns-openwrt

luci-app-shadowsocks

luci-app-chinadns

初始安装软件

@win

<br />C:\Users\seven\Documents\wdnr4300>pscp.exe *.ipk root@192.168.1.1:/opt/
2015/07/23 14:38 27,161 ChinaDNS_1.3.1-1_ar71xx.ipk
2015/07/23 14:38 2,592 luci-app-chinadns_1.3.1-1_all.ipk
2015/07/23 14:38 3,131 luci-app-shadowsocks-spec_1.3.2-1_all.ipk
2015/07/23 14:38 117,469 shadowsocks-libev-spec_2.2.2-1_ar71xx.ipk

@4300

# opkg install ip ipset libopenssl resolveip iptables-mod-tproxy

# cd /opt
# opkg install ./*.ipk

问题:

C:\Users\seven\Documents\wdnr4300>pscp.exe *.ipk root@192.168.1.1:/opt/
root@192.168.1.1's password:
ash: /usr/libexec/sftp-server: not found
Fatal: Received unexpected end-of-file from server

解决:

# opkg update
# opkg install openssh-sftp-server

修改4300 LAN IP 192.168.7.1

DNS

#vim /etc/config/sec_resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 114.114.114.114

无线和有线设置

忽略了,直接在web界面设置就好主要是设密码什么的

pdnsd搭建DNS服务器@centos 服务器

从 http://members.home.nl/p.a.rombouts/pdnsd/dl.html 下载pdnsd最新的rpm包

然后 yum localinstall pdnsd-x.x.x-par_sl6.x86_64.rpm

配置见:
https://cokebar.info/archives/720
http://leeraw.com/?p=3621

搭建shadowsocks服务@centos 服务器

  1. 先安装git
  2. 从github上拉源码 https://github.com/shadowsocks/shadowsocks-libev
  3. cd shadowsocks-libev
  4. ./configure
  5. make && make install
  6. 启动
    > nohup /usr/local/bin/ss-server -s SERVER_IP -p SERVER_PORT -k PASSWD -m aes-256-cfb &
    > 将上面的启动命令加到rc.local开机自启
  7. 配置

进阶

https://cokebar.info/archives/850

交换机截图

chinaDNS

shadowsocks

dhcp-dns

dncp-dns

Share