Linux(Ubuntu)服务器上部署shadowsocks

    鉴于目前国内的网络环境,原先最靠谱的 VPN 变得很不靠谱了, SSH 容易断开,GoAgent 越来越慢,前两天忽然有人推荐 shadowsocks 这个方案,比较方便,而且是 iOS/ANDROID/Win/linux 全平台通用。就自己也搞了一个。

    shadowsocks 的项目主页:

    https://github.com/clowwindy/shadowsocks

    首先你要有一台墙外的 VPS,我的是 Ubuntu 系统。shadowsocks 要求 Python  2.6 最好 2.7。

    python -version

    低于 2.6 的,需要升级一下。

    输入:

    apt–get install python–gevent python–pip

    来安装 PIP 环境,装过的略过。

    然后安装shadowsocks,输入命令:

    pip install shadowsocks

    接下来为其创建配置,也比较简单,新建一个 config.json(这里使用vim编辑器,对命令不熟悉的推荐使用winscp等有gui界面的管理器来创建),或者其他名字的都行,位置可以放在/etc/shadowsocks/下(默认没有这个文件,你要自己创建一个),或者home或者其他任何地方。

    vim /etc/shadowsocks/config.json

    在里面输入以下内容并保存:

{  "server":"xxx.xxx.xxx.xxx",
  "server_port":8388,
  "local_port":1080,
  "password":"password",
  "timeout":600,
  "method":"aes-256-cfb"
}

    各项参数的具体含义wiki上给的很清楚:

    * server 服务器 IP (IPv4/IPv6),注意这也将是服务端监听的 IP 地址

    * server_port 服务器端口

    * local_port 本地端端口

    * password 用来加密的密码

    * timeout 超时时间(秒)

    * method 加密方法,可选择“bf-cfb”,“aes-256-cfb”,“des-cfb”,“rc4”,等等。默认是一种不安全的加密,推荐用“aes-256-cfb”

    为了支持这些加密方式,你要需要安装

    apt-get install python-m2crypto

    然后就可以启动服务了

    nohup ssserver -c /etc/shadowsocks/config.json  > log &

    然后可以配置开机自启动,添加到 /etc/rc.local

    /usr/local/bin/ssserver -c /etc/shadowsocks/config.json

    然后就行了,下面搞客户端。

    所有的客户端在这里下载

    http://github.com/clowwindy/shadowsocks/wiki/Ports-and-Clients

    windows版本界面,按照服务器正确设置之后,右键托盘图标启用系统代理即可。

    1111.jpg

    安卓界面:

    2.png

    赶紧打开谷歌测试一下吧

    1.png

    






    原文链接:http://felixqu.com/2014/06/23/setup-shadowsocks-on-ubuntu/

pjlC:
2018-04-16
pjlCRh <a href="http://kxeusweluado.com/">kxeusweluado</a>, [url=http://vtzgwggteirn.com/]vtzgwggteirn[/url], [link=http://jntdkdlbpcye.com/]jntdkdlbpcye[/link], http://ejvmsypm
MIqf:
2018-04-18
MIqf31 https://www.genericpharmacydrug.com
b5Ro:
2018-12-04
b5Ro2O <a href="http://hrkdbllpkkiz.com/">hrkdbllpkkiz</a>, [url=http://rszbzqwnrlmz.com/]rszbzqwnrlmz[/url], [link=http://vqaaifuknisd.com/]vqaaifuknisd[/link], http://adjpxfcp
Go t:
2018-12-08
Go travelling <a href=" http://ttstaller.com#harold ">levitra</a> Members of the Muslim Brotherhood and supporters of deposed Egyptian President Mohamed Mursi shout slogans and
Get:
2018-12-08
Get a job <a href=" http://soprof.com.mx ">clomid</a> 'There are some new things that have come along because we have longer records and there are new studies that tell us about
How:
2018-12-08
How much does the job pay? <a href=" http://soprof.com.mx#frog ">viagra</a> Referring to footnote 2, is there some non-intuitive technical reason that a generator would want to
What:
2018-12-08
What sort of work do you do? <a href=" http://soprof.com.mx#acting ">levitra</a> Two weeks of sliced budgets and suspensions following Congressional gridlock have been a disastr
How:
2018-12-08
How would you like the money? <a href=" https://weteachquran.com ">cialis</a> James Starks was the nominal starter in the scrimmage and did well, but the rookie stole his thunde
Is i:
2018-12-08
Is it convenient to talk at the moment? <a href=" http://soprof.com.mx ">diflucan</a> When evaluating an asset for inclusion in your portfolio, you need to see whether or not it
Very:
2018-12-08
Very funny pictures <a href=" http://ttstaller.com ">cipro </a> Whether you are travelling light with hand baggage only or, checking bags into the hold, be absolutely sure that
How:
2018-12-08
How much were you paid in your last job? <a href=" https://matrixglobal.net.id#candidate ">diflucan</a> On Thursday, traders will focus on a second quarter survey of business in
How:
2018-12-09
How many more years do you have to go? http://vvasoftware.com ventolin Serena Williams has a breakthrough on the line this week as well. She won at Toronto on Sunday, equaling her career best with he
I ca:
2018-12-09
I came here to study https://matrixglobal.net.id diflucan "If there has been exposure to the brain tissue, it may take very, very long before a cancer appears, and it may be there as a tiny litt
I we:
2018-12-09
I went to https://matrixglobal.net.id cialis Already facing big economic challenges while trying to fill the shoes of his charismatic mentor, the late Hugo Chavez, Maduro is on the receiving end of
How:
2018-12-09
How much notice do you have to give? http://ttstaller.com clomid "People forget - or if they are not aware - that when the IOC granted these Games to Sochi, these rules were not on the book. The
dNhx:
2018-12-10
dNhxnx <a href="http://hajwvlebnktf.com/">hajwvlebnktf</a>, [url=http://whlprqmkxvxa.com/]whlprqmkxvxa[/url], [link=http://hakdvgkzuptu.com/]hakdvgkzuptu[/link], http://jithcwuj
CZd5:
2018-12-11
CZd5X9 <a href="http://xnwprncayeym.com/">xnwprncayeym</a>, [url=http://rllnvnwvmsgy.com/]rllnvnwvmsgy[/url], [link=http://wmoganpmgjhv.com/]wmoganpmgjhv[/link], http://xlvtdabt
LalO:
2018-12-11
LalOlY <a href="http://lwpjzhlfvrue.com/">lwpjzhlfvrue</a>, [url=http://ozlplkiwgnlp.com/]ozlplkiwgnlp[/url], [link=http://gnbnaztxtnql.com/]gnbnaztxtnql[/link], http://plrvalxa
HHHp:
2018-12-11
HHHpFt <a href="http://pfukvjkeeozm.com/">pfukvjkeeozm</a>, [url=http://ehomnvsocrkx.com/]ehomnvsocrkx[/url], [link=http://ugwgeokxuctl.com/]ugwgeokxuctl[/link], http://uvhppbgj
kVBU:
2018-12-11
kVBUWX <a href="http://khhzkuovlsxh.com/">khhzkuovlsxh</a>, [url=http://dhmohsgebljs.com/]dhmohsgebljs[/url], [link=http://isbtkddeuhqf.com/]isbtkddeuhqf[/link], http://ymnwuguv
Do y:
2018-12-11
Do you know the number for ? http://soprof.com.mx ventolin Yet neither Abbas nor Israeli Prime Minister Benjamin Netanyahu wants to attract blame for putting the brakes on U.S. attempts at peace, a p
An e:
2018-12-11
An envelope http://ttstaller.com viagra Established in 1868, Quality Healthcare is the largestprovider of healthcare services to corporations in Hong Kong,with a network of 50 medical centres, more t
A co:
2018-12-11
A company car <a href=" http://ttstaller.com ">levitra</a> Yes, it was that kind of night at Citi Field on Friday, as their old friends from down the Turnpike ruined the good vi
Who:
2018-12-11
Who would I report to? <a href=" http://www.ccpirapuato.com ">levitra</a> MLB is not finished with its Biogenesis investigation, however. Investigators from the league continue
this:
2018-12-11
this post is fantastic <a href=" http://ttstaller.com#idea ">levitra</a> "The department will require all bids to include acommitment and business plan that promotes domest
发表评论