ShadowVPN
ShadowVPN
价格 | 用户评分 | 专家评分 | 屏蔽状况 |
---|---|---|---|
付费 | ![]() |
![]() |
可用 |
ShadowVPN
-
付费
用户评分
专家评分
屏蔽状况
可用
-
- 星期五, 06/12/2015 - 12:19
ShadowVPN 是一个基于 libsodium 的高速、安全的 VPN。特别为低端硬件,如 OpenWRT 路由器设计。
安装
Linux:
用 git clone 项目,然后编译。 请确保 configure 时使用了 --sysconfdir=/etc
参数。
sudo apt-get install build-essential automake libtool
git clone https://github.com/clowwindy/ShadowVPN.git
git submodule update --init
./autogen.sh
./configure --enable-static --sysconfdir=/etc
make && sudo make install
OpenWRT:
下载预编译版: ar71xx, brcm63xx, brcm47xx, ramips_24kec.
或者自行编译: 进入 SDK 根目录,然后:
pushd package
git clone https://github.com/clowwindy/ShadowVPN.git
popd
make menuconfig # select Network/ShadowVPN
make V=s
scp bin/xxx/ShadowVPN-xxx-xxx.ipk [email protected]
# then log in your box and use opkg to install that ipk file
配置
- 可以在
/etc/shadowvpn
目录下找到所有配置文件。 - 对于客户端,编辑
client.conf
。 - 对于服务器端,编辑
server.conf
。 - 修改配置文件中的
server
和password
字段。 up
字段指定的脚本会在 VPN 启动后执行。down
字段指定的脚本会在 VPN 退出后执行。- 如果需要自定义路由,可以修改上面两个脚本。在脚本最后有一段注释, 可以把修改路由的命令放在相应的位置。
需要注意的是 ShadowVPN 是一个点对点 VPN。意味着对于每个客户端,需要一个对应的服务端。 可以开启多个服务端进程,用 -c
参数指定不同的配置文件。请确保对于不同的服务端和客户端, 在 up
和 down
脚本中指定了不同的 IP。
使用
服务器:
sudo shadowvpn -c /etc/shadowvpn/server.conf -s start
sudo shadowvpn -c /etc/shadowvpn/server.conf -s stop
客户端:
sudo shadowvpn -c /etc/shadowvpn/client.conf -s start
sudo shadowvpn -c /etc/shadowvpn/client.conf -s stop
客户端(OpenWRT):
/etc/init.d/shadowvpn start
/etc/init.d/shadowvpn stop
对于 DNS 污染,可以直接使用 Google DNS 8.8.8.8,或者使用 ChinaDNS 综合使用国内外 DNS 得到更好的解析结果。
可选: OpenWRT 用户可以看看 LuCI Configuration。
General score | ![]() |
速度 | ![]() |
Ease of use | ![]() |
安全 | ![]() |
Reliability | ![]() |