OpenWRT安装Shadowsocks和ChinaDNS

本文以 NETGEAR WNDR4300 + OpenWrt Barrier Breaker 14.07 为例介绍安装Shadowsocks和ChinaDNS。

1. 在OpenWRT添加源

001

web管理界面 → 系统 → 软件包 → 配置 → 最后添加源:

src/gz openwrt_dist http://openwrt-dist.sourceforge.net/releases/ar71xx/packages
src/gz openwrt_dist_luci http://openwrt-dist.sourceforge.net/releases/luci/packages

继续阅读

Centos 7安装配置Shadowsocks

因为shadowsocks-python版本停止更新,本文改为安装配置shadowsocks-libev版本。

为了增强安全性,请使用 AEAD 算法,比如AES-256-GCM。

1. 安装shadowsocks

打开https://github.com/shadowsocks/shadowsocks-libev/releases查看最新版下载地址(下文中版本为shadowsocks-libev-3.1.0.tar.gz)。

yum install -y epel-release
yum install -y unzip openssl openssl-devel gettext gcc autoconf libtool automake make asciidoc xmlto udns-devel libev-devel pcre pcre-devel git c-ares-devel
wget https://github.com/jedisct1/libsodium/releases/download/1.0.15/libsodium-1.0.15.tar.gz
tar zxf libsodium-1.0.15.tar.gz
cd libsodium-1.0.15
./configure
make && make install
cd ~

wget https://tls.mbed.org/download/mbedtls-2.6.0-gpl.tgz
tar zxf mbedtls-2.6.0-gpl.tgz
cd mbedtls-2.6.0
make SHARED=1 CFLAGS=-fPIC
make DESTDIR=/usr install
cd ~

ldconfig
wget https://github.com/shadowsocks/shadowsocks-libev/releases/download/v3.1.0/shadowsocks-libev-3.1.0.tar.gz
tar zxf shadowsocks-libev-3.1.0.tar.gz
cd shadowsocks-libev-3.1.0
./configure
make && make install

2. 新建shadowsocks的配置文件

mkdir -p /etc/shadowsocks
vi /etc/shadowsocks/config.json

输入以下内容:

继续阅读