ss

By | 2017年4月2日

1:环境准备

更新openwrt
opkg update

安装dnscrypt-proxy
opkg install dnscrypt-proxy

安装dnsmasq要支持IPset的,在Openwrt平台下,dnsmasq-full 支持ipset
opkg install dnsmasq-full

安装shadowsocks-libev-spec – 2.4.8-2

https://sourceforge.net/projects/openwrt-dist/files/shadowsocks-libev/2.4.8-8816fa1/
http://openwrt-dist.sourceforge.net/packages/OpenWrt/base/x86/

 

2:配置dnscrypt-proxy

 

2:配置dnsmasq


server=/265.com/127.0.0.1#5353
ipset=/265.com/gfwlist

server=/2mdn.net/127.0.0.1#5353
ipset=/2mdn.net/gfwlist

 

 

 

3:配置shadowsocks


ss-redir -b 0.0.0.0 -s ss-server-ipaddress -p ss-server-port -l local-port -k ss-server-password -m ss-server-encrypt_method

 

4:配置IPtables


ipset -N gfwlist iphash

iptables -t nat -A PREROUTING -p tcp -m set –match-set gfwlist dst -j REDIRECT –to-port 1080

5:愉快使用。。。。

参考文档:

http://520and519.blog.51cto.com/2254416/1577523

https://aenes.com/post/740.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注