Search This Blog

Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Ubuntu ShadowsocksR (SSR)翻墙方法


近期考虑将工作环境转移至linux环境(Ubuntu 14.04)下,翻墙必不可少。由于使用的节点服务器端的配置已经全面放弃“SS”,转移至“SSR”,因此必须使用支持SSR的客户端。原本的SS-Qt5不再可用(无法设置协议与混淆)。

breakwa11的github主页中找到另一款支持SSR的客户端:shadowsocksr-libev。(链接已失效,建议在github中搜索“shadowsocksr-libev”获取备份)该客户端支持SSR,但是由于其说明文档未及时更新,实际上支持协议与混淆的配置但未给出设置方法。

安装

主页中给出了多种安装方式,而对于Ubuntu 14.04只能采用以下方式:
cd shadowsocks-libev
sudo apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev \
    gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc xmlto apg libpcre3-dev
dpkg-buildpackage -b -us -uc -i
cd ..
sudo dpkg -i shadowsocks-libev*.deb

使用

ss-[local|redir|server|tunnel]
   -s           host name or ip address of your remote server
   -p           port number of your remote server
   -l           port number of your local server
   -k           password of your remote server
   [-m ]        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 ,chacha20 and
                                chacha20-ietf
前5项是常规的设置选项,但是由于使用的节点同时设置了协议和混淆参数,属于必填选项,设置方法如下:
ss-local -o [obfs混淆协议] -O [protocol协议] -g [obfsparam混淆参数] -s [服务器地址] -p [服务器端口] -l [本地监听端口] -b [本地监听地址] -k [SS密码] -m [加密方式]

参考

1. shadowsocks-rss-libev使用方法