Install shadowsocks-libev on FreeBSD 11
- 詳細內容
- 分類: Proxy
- 發佈: 2017-12-05, 週二 03:36
- 作者 Super User
- 點擊數: 20897
Install:
cd /usr/ports/net/shadowsocks-libev
make install clean
vi /usr/local/etc/shadowsocks-libev/config.json
{
"server":"0.0.0.0",
"server_port":12345,
"local_port":1080,
"password":"jason-tang.com",
"timeout":60,
"method":"aes-256-cfb"
}
vi /etc/rc.conf
shadowsocks_libev_enable="YES"
/usr/local/etc/rc.d/shadowsocks_libev start
Upgrade:
wget https://github.com/shadowsocks/shadowsocks-libev/releases/download/v3.1.1/shadowsocks-libev-3.1.1.tar.gz
tar -zxvf shadowsocks-libev-3.1.1.tar.gz
cd shadowsocks-libev-3.1.1
./configure --disable-documentation
make
make install
vi /usr/local/etc/shadowsocks-libev/config.json
{
"server":"0.0.0.0",
"server_port":12345,
"local_port":1080,
"password":"jason-tang.com",
"timeout":60,
"method":"aes-256-gcm",
"mode":"tcp_and_udp"
}
/usr/local/etc/rc.d/shadowsocks_libev restart