├── README.md ├── .gitignore └── Main.md /README.md: -------------------------------------------------------------------------------- 1 | # awsSetup 2 | 3 | 用亚马逊云AWS免费搭建VPN服务 4 | 5 | 可直接看Markdown文档:[具体内容](./Main.md) 6 | 7 | 或看Blog:[https://raoenhui.github.io/limit/vpn/index.html](https://raoenhui.github.io/limit/vpn/index.html) 8 | 9 | 或看Wiki:[https://github.com/raoenhui/awsSetup/wiki](https://github.com/raoenhui/awsSetup/wiki) 10 | 11 | # 主要内容 12 | 13 | 一 、注册亚马逊AWS云 14 | 15 | 二 、安装ss服务 16 | 17 | 三 、下载客户端软件地址 18 | 19 | 四 、注意事项 20 | 21 | 22 | Happy coding .. :) 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | # production 10 | /build 11 | /dist 12 | /promotion 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | *.idea 21 | *.iml 22 | .vscode 23 | 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | package-lock.json 28 | yarn.lock 29 | report.20190408.135740.63346.001.json 30 | -------------------------------------------------------------------------------- /Main.md: -------------------------------------------------------------------------------- 1 | ### 一 、注册亚马逊AWS云 2 | 3 | 1.1 浏览器输入[https://aws.amazon.com/free](https://aws.amazon.com/free) 4 | 5 | ![image.png](https://upload-images.jianshu.io/upload_images/9902136-65bb89826de60215.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 6 | > 注册过程需要绑定信用卡,我用的是visa卡绑定的,只有一年免费的,所以一年后记得删掉所有实例,解绑信用卡,关闭掉AWS账户。 7 | 8 | 本妹子薅羊毛不亦乐乎> < ![image](http://upload-images.jianshu.io/upload_images/9902136-b31760c6051b6c05.gif?imageMogr2/auto-orient/strip) 9 | 10 | 11 | 1.2 注册后登录,选择services->EC2 12 | 13 | ![image.png](https://upload-images.jianshu.io/upload_images/9902136-79cd7d94a812260a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 14 | > Amazon EC2全称Amazon Elastic Compute Cloud,亚马逊弹性云服务器,是一个虚拟机,用户将可以在这个虚拟机上运行任何自己想要的软件或应用程序。 15 | 16 | 1.3 生成实例 17 | 18 | ![image.png](https://upload-images.jianshu.io/upload_images/9902136-c71d1e701c0d3f29.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 19 | 20 | 1.4 在亚马逊镜像库中搜索你最熟悉的系统 21 | 我习惯用的是`centos7`,所以我选择了它。 22 | 23 | ![image.png](https://upload-images.jianshu.io/upload_images/9902136-d710f9fa6a8f0929.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 24 | 25 | 1.5 选择免费类型,其他选择按照默认就好 26 | 27 | ![image.png](https://upload-images.jianshu.io/upload_images/9902136-bef2a50a92f98fbe.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 28 | 29 | 1.6 生成添加秘钥,并将秘钥下载到本地 30 | 31 | ![image.png](https://upload-images.jianshu.io/upload_images/9902136-f0500859154ab7d5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 32 | 33 | 1.7 生成实例成功 34 | 35 | ![image.png](https://upload-images.jianshu.io/upload_images/9902136-2829ace8133f7c92.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 36 | 37 | 1.8 添加安全组,更改成添加的安全组 38 | 39 | ![image.png](https://upload-images.jianshu.io/upload_images/9902136-4bd8186004415228.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 40 | > 如上配置是所以端口都能被访问,如果想要做限制的话,可以选择特殊的`IP`和端口 41 | 42 | 43 | ### 二 、安装ss服务 44 | 2.1 服务端开启ss服务 45 | ```bash 46 | #用ssh登录 47 | ssh -i "a.pem" centos@ec2-3-16-129-69.us-east-2.compute.amazonaws.com 48 | #切换root用户 49 | sudo su 50 | 51 | #开始真正安装啦 52 | #用pip安装ss服务 53 | yum install python-setuptools && easy_install pip 54 | #安装小飞机 55 | pip install shadowsocks 56 | #启动ssserver 57 | ssserver -p 443 -k MyPass -m rc4-md5 -d start 58 | ``` 59 | > ssserver命令中 443是指端口 MyPass是指密码 rc4-md5是指加密方式,这些小伙伴们都可以自定义修改 60 | 61 | > 停止ss服务可用 ssserver -d stop 62 | 63 | ### 三 、下载客户端软件地址 64 | 2.2 客户端链接 65 | 下载`shadowsocks`软件,编辑server,Address输入公网IP,Password输入MyPass,其他按截图所示即可 66 | 67 | 下载地址:链接: https://pan.baidu.com/s/1YuT1uFqvxtPHWtBXPzsZYg 提取码: xqe4 (里面mac和windows的安装包都有) 68 | 69 | ![image.png](https://upload-images.jianshu.io/upload_images/9902136-56c2d685a00383ff.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 70 | 71 | > 手机端可下载NetShuttle软件访问,注意美区appleID账号才能下载 72 | 73 | 2.3 哈哈,愉快的访问`youtobe`了 74 | 75 | ![PC.png](https://upload-images.jianshu.io/upload_images/9902136-d4176fbe31178ccb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 76 | ![MOBILE.png](https://upload-images.jianshu.io/upload_images/9902136-935844438d8002ef.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 77 | 78 | ### 四 、注意事项 79 | 80 | 1.只有一年免费的,一年后扣信用卡的钱 81 | 82 | 2.每月流量有上限,上限为15G; 83 | 84 | 限制详情可看 [https://aws.amazon.com/cn/free/faqs/](https://aws.amazon.com/cn/free/faqs/); 85 | 86 | 建议实时查看下自己的流量使用情况,具体操作可查看 [https://www.peels.cn/225.html](https://www.peels.cn/225.html); 87 | 88 | 89 | ## 其他链接 90 | > * [https://docs.aws.amazon.com/zh_cn/vpc/latest/userguide/vpn-connections.html](https://docs.aws.amazon.com/zh_cn/vpc/latest/userguide/vpn-connections.html) 91 | > * [http://www.gengzhibo.com/2017/02/05/vpn/](http://www.gengzhibo.com/2017/02/05/vpn/) 92 | > * [https://aws.amazon.com/cn/free/faqs/](https://aws.amazon.com/cn/free/faqs/) 93 | > * [https://www.peels.cn/225.html](https://www.peels.cn/225.html) 94 | 95 | Happy coding .. :) 96 | 97 | 98 | 99 | 100 | 101 | 102 | --------------------------------------------------------------------------------