编译shadowsocksR-libev
记一次shadowsocksR-libev的编译
为了更好的编译openwrt,所以我选择用shadowsocksR-libev做的ss-redir和ss-tunnel来做全局翻墙.
编译环境
ubuntu-16.04-server-amd64
编译过程
shadowsocks-rss-libev项目地址:https://github.com/breakwa11/shadowsocks-libev
安装编译必备软件
sudo apt-get install build-essential autoconf libtool libssl-dev gawk debhelper dh-systemd init-system-helpers pkg-config
下载源代码
git clone https://github.com/breakwa11/shadowsocks-libev.git
编译
dpkg-buildpackage -us -uc -i
安装
sudo dpkg -i shadowsocks-libev*.deb
shadowsocks-rss-libev使用方法
运行ss-server -h会得到以下说明
shadowsocks-libev 2.4.5
maintained by Max Lv <[email protected]> and Linus Yang <[email protected]>
usage:
ss-server
-s <server_host> Host name or ip address of your remote server.
-p <server_port> Port number of your remote server.
-l <local_port> Port number of your local server.
-k <password> Password of your remote server.
-m <encrypt_method> Encrypt method: table, rc4, rc4-md5,
aes-128-cfb, aes-192-cfb, aes-256-cfb,
bf-cfb, camellia-128-cfb, camellia-192-cfb,
camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb,
rc2-cfb, seed-cfb, salsa20 and chacha20.
[-a <user>] Run as another user.
[-f <pid_file>] The file path to store pid.
[-t <timeout>] Socket timeout in seconds.
[-c <config_file>] The path to config file.
[-n <number>] Max number of open files.
[-i <interface>] Network interface to bind.
[-u] Enable UDP relay,
[-U] Enable UDP relay and disable TCP relay.
[-A] Enable onetime authentication.
[-w] Enable white list mode (when ACL enabled).
[-d <addr>] Name servers for internal DNS resolver.
[--fast-open] Enable TCP fast open.
with Linux kernel > 3.7.0.
[--acl <acl_file>] Path to ACL (Access Control List).
[--manager-address <addr>] UNIX domain socket address.
[-v] Verbose mode
这个是shadowsocks-libev原版的说明,破娃姐很懒,改了之后就也懒得写说明,问她混淆与插件怎么写都要看看源码才能记得,我也是醉了!
后经破娃姐指点shadowsocks-rss-libev写法如下
ss-redir -o [obfs混淆协议] -O [protocol协议] -g [obfsparam混淆参数] -s [服务器地址] -p [服务器端口] -l [本地监听端口] -b [本地监听地址] -k [SS密码] -m [加密方式]
更多方法请看https://github.com/breakwa11/shadowsocks-rss/wiki/Server-Setup