vps + shadowsocks科学上网神器

in #cn6 years ago

一直以来,国外的一些网站我都是用的免费的VPN(自由门),因为上的不多,感觉也够用了。不过自从交易所也被墙了,这个问题就严重起来,因为很多时候你连火币都没法上了!免费的就有这样的不好,很多时候不稳定。这几天发了个狠,一定要搞定,否则连币都没法卖了!

用google搜了下(百度搜不出),科学上网大体有两种解决方案,一种是直接买别人的服务,一种是自已建。查看了一下收费的VPN(https://www.top10vpn.com),感觉有点不对味,价格也贵。另外还有种什么都交给别人手上的感觉。看来,还是自己建的好。

把自己建设的思路整理一下,也简单,主要有两步,第一步:一台在防火墙之外的服务器(海外服务器);第二步:在本机安装 Shadowsocks 客户端,用于加密传输数据;

自己建需要点ubuntu的知识!

shadowsock2.jpg

Shadowsocks简要原理

第一步:买台海外服务器

linode.jpg

https://www.linode.com

这里推荐linode,最便宜的VPS是一个月$5(一年约¥390),而且还可以同时建个站什么的,方便易用。配置是1TB Transfer月流量和40Gbps Network In入口带宽等,足够个人使用。

另外,还有个搬瓦工(https://bandwagonhost.com/),据称更便宜。

1、在主机上安装ubuntu16.04,此处略过。

2、使用putty连接远程服务器,进入到root端,使用如下命令配置:

a、安装PIP和组件
apt-get update
apt-get install python-pip
apt-get install python-setuptools m2crypto

b、安装 shadowsocks
pip install shadowsocks

c、配置 shadowsocks服务器
vi /etc/shadowsocks.json

{
    "server":"172.194.19.94",
    "server_port":8899,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"kkTREk542698",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open":false
}

#各字段的含义:
server      服务器的IP(改成自己的服务器地址)
server_port  服务器端口(可以改成其它端口,与客户端保存一致即可)
local_port   本地端口
password     用来加密的口令(设个自己的密码)
timeout   超时时间(单位/秒)
method   加密方式。可选择 “bf-cfb”, “aes-256-cfb”, “des-cfb”, “rc4″, 等等。
默认是一种不安全的加密,推荐用 “aes-256-cfb”

注:此处是单口模式的设置,还可以改成多口模式,几个人共用,这样又可以省下一大笔钱!

d、启动和关闭shadowsocks
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop

第二步:本机安装和设置Shadowsocks 客户端

shadowsocks客户端
https://github.com/shadowsocks/shadowsocks-windows/releases

.NET 4.6.2安装包
https://www.microsoft.com/en-us/download/details.aspx?id=53344

shadowsock3.jpg

如上图所示配置即可。代理模式设为“全局模式”较好。

好了,治好了各种网络不通,嗨起来!

Sort:  

这个不错。我原先也自己搭建过另外一个,但感觉不是很稳定,这几年一直用express vpn,感觉还不错,缺点就是费用稍微贵了些

这个和VPS关系比较大,选一个好点的主机就可以了。
我这个很稳定。

最好配置下防火墙才安全

厉害!不过非it的表示很难入门,不知道蓝灯怎么样。

我以前也是用的蓝灯,后来限了。现在要付钱买会员了。
蓝灯还不错,据说是谷歌出品,当时用的时候很稳定。

现在每月限制500M免费流量,2年2百多元的会员费。

太棒了!马上要回国了正愁该如何是好。估计要将此文再读上好几遍才能真正明白该如何操作😄

回国就要面临这个问题了!
都是一些基础操作,知道方法了还是容易搞定的!

搬瓦工最实惠了

哈哈,老司机来啰!

在国内如果想与世界互联不得不多学习一些网络知识。

在我大天朝不得不自力更生啊!

还是比较复杂,非it人员只能呵呵。所以还是直接买vpn吧,更直接,只需要点击登录就可以。可以一次买好几年的,很便宜,一年100块就够了。

花钱买最直接!

我大概是去年12月份租了vultr在shadowsocks上搭了梯子,虽说价格不一定比用别人服务便宜,出了问题还没人做售后。但是因为节点就只有自己使用,会很安全。另外我特意做了两三个节点设置不同密码,也可以临时借给朋友使用

你还是蛮懂的嘛 ,你不早点写个教程,这两天为了整它找资料眼都快瞎了!

诗兄…这个我真的…写过了…😂哈哈哈哈,不过我也是三脚猫功夫啦,参考了很多大神的帖子
【Vicky's 小科普】如何傻瓜式用shadowsocks科学上网
ps你最近telegram可以登陆么?

翻了下你的贴子,有点乱,真不知你是怎么安装成功的!
我没用telegram

搬瓦工还可以,够用了

The Vote For Your Awesome Post Has Just Arrived!


This post has been voted with the use of SteemiTag. Feel free to upvote this comment if you’d like to express your support for our cause. Conversely, if you don’t want to receive any more votes from SteemiTag, please respond to this comment by writing NOVOTES.

SteemiTag is an innovative program that helps users increase their gains in the curation rewards by voting on posts that are likely to get high payouts. It maximizes the chance of a user to be rewarded through an accurate selection algorithm that works 24/7 and eliminates "no rewards" problem for users with low Steem Power. You can participate in our program by clicking on this link and confirming your 100% SP delegation. Your rewards will be sent to you in the form of dividends. Please read this post should you decide to undelegate your SP (takes 7 days). Thank you and keep up with your great work!

WARNING! If you follow the instructions from @steemitag your account will become completely locked and unusable!

Please flag @steemitag and help move this account to a zero reputation! Or just use this link to send a smaller downvote.

The @steemitag bot is run by @haiyangdeperci who chose to disregard my warnings and continue manipulating the community. Please consider flagging @haiyangdeperci as well.