diff --git "a/.ipynb_checkpoints/VPN\346\220\255\345\273\272-checkpoint.ipynb" "b/.ipynb_checkpoints/VPN\346\220\255\345\273\272-checkpoint.ipynb" deleted file mode 100644 index f890676..0000000 --- "a/.ipynb_checkpoints/VPN\346\220\255\345\273\272-checkpoint.ipynb" +++ /dev/null @@ -1,193 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "\n", - "# 购买VPS\n", - "\n", - "\n", - "\n", - "---\n", - "\n", - "# 添加公钥\n", - "\n", - "```bash\n", - "ssh-keygen\n", - "cat ~/.ssh/id_rsa.pub\n", - "```\n", - "\n", - "---\n", - "\n", - "\n", - "# 搭建VPN\n", - "\n", - "## ssh连接VPS\n", - "\n", - "```bash\n", - "ssh root@你的VPS地址\n", - "```\n", - "\n", - "## 开始搭建\n", - "\n", - "**Note:**\n", - "推荐第一种,即 Ubuntu环境 。\n", - "\n", - "### Ubuntu环境\n", - "\n", - "在远程服务器端安装shadowsocks\n", - "\n", - "```bash\n", - "apt-get install python-pip\n", - "pip install shadowsocks\n", - "```\n", - "\n", - "再用nano新建配置文件\n", - "\n", - "```bash\n", - "nano /etc/shadowsocks.json\n", - "```\n", - "\n", - "输入以下内容\n", - "\n", - "\n", - " { \n", - " \"server\":\"你的VPS地址\", \n", - " \"server_port\":你的VPS端口号, \n", - " \"local_address\": \"127.0.0.1\", \n", - " \"local_port\":1080, \n", - " \"password\":\"你的VPN密码\",\n", - " \"timeout\":300, \n", - " \"method\":\"aes-256-cfb\", \n", - " \"fast_open\": false } \n", - "\n", - "\n", - "\n", - "\n", - "### Centos环境\n", - "\n", - "下载脚本\n", - "\n", - "```bash\n", - "wget -O ss.sh http://zhangdanyang.com/file/ss.sh\n", - "```\n", - "\n", - "**Note:**\n", - "备份文件夹里保留有 ss.sh ,当网上资源下载不了时可以直接用里面的。\n", - "\n", - "执行脚本\n", - "\n", - "```bash\n", - "bash ss.sh\n", - "```\n", - "\n", - "\n", - "---\n", - "\n", - "# 配置加速器\n", - "\n", - "\n", - "## 选择一种加速器\n", - "\n", - "**Note:**\n", - "推荐第一种,即 bbr加速器 。\n", - "\n", - "### bbr加速器\n", - "\n", - "```bash\n", - "wget –no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh\n", - "chmod +x bbr.sh\n", - "./bbr.sh\n", - "```\n", - "\n", - "**Note:**\n", - "备份文件夹里保留有 bbr.sh ,当网上资源下载不了时,可以直接用里面的。\n", - "\n", - "### 锐速加速器(只适用于Centos6)\n", - "\n", - "```bash\n", - "wget http://ftp.scientificlinux.org/linux/scientific/7.4/x86_64/updates/security/kernel-3.10.0-693.2.2.el7.x86_64.rpm\n", - "rpm -ivh kernel-3.10.0-693.2.2.el7.x86_64.rpm --force\n", - "wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh\n", - "```\n", - "\n", - "## 剩余操作\n", - "\n", - "重启\n", - "\n", - "```bash\n", - "reboot\n", - "```\n", - "\n", - "ssh连接到VPS\n", - "\n", - "```bash\n", - "ssh root@你的VPS地址\n", - "```\n", - "\n", - "激活shadowsocks\n", - "```bash\n", - "nohup ssserver -c /etc/shadowsocks.json &\n", - "```\n", - "\n", - "\n", - "\n", - "---\n", - "\n", - "---\n", - "\n", - "\n", - "# Ref\n", - "\n", - "## 搭建VPN\n", - "\n", - "- [1](http://blog.csdn.net/boxuerixin/article/details/72393518)\n", - "- [2](http://blog.csdn.net/DM_Gin/article/details/52425945?locationNum=2)\n", - "\n", - "## 配置加速器\n", - "\n", - "- [1](https://tieba.baidu.com/p/5168172593?red_tag=2321157466)\n", - "- [2](http://blog.csdn.net/yanzi1225627/article/details/51226352)\n", - "- [3](http://blog.sina.com.cn/s/blog_ada5953f0102wyxc.html)\n", - "\n", - "\n", - "---\n", - "\n", - "---\n", - "\n", - "\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.6.3" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git "a/VPN\346\220\255\345\273\272/VPN\346\220\255\345\273\272.html" "b/VPN_Installation/VPN\346\220\255\345\273\272.html" similarity index 100% rename from "VPN\346\220\255\345\273\272/VPN\346\220\255\345\273\272.html" rename to "VPN_Installation/VPN\346\220\255\345\273\272.html" diff --git "a/VPN\346\220\255\345\273\272/\345\244\207\344\273\275/VPN\346\220\255\345\273\272.ipynb" "b/VPN_Installation/\345\244\207\344\273\275/VPN\346\220\255\345\273\272.ipynb" similarity index 100% rename from "VPN\346\220\255\345\273\272/\345\244\207\344\273\275/VPN\346\220\255\345\273\272.ipynb" rename to "VPN_Installation/\345\244\207\344\273\275/VPN\346\220\255\345\273\272.ipynb" diff --git "a/VPN\346\220\255\345\273\272/\345\244\207\344\273\275/bbr.sh" "b/VPN_Installation/\345\244\207\344\273\275/bbr.sh" similarity index 100% rename from "VPN\346\220\255\345\273\272/\345\244\207\344\273\275/bbr.sh" rename to "VPN_Installation/\345\244\207\344\273\275/bbr.sh" diff --git "a/VPN\346\220\255\345\273\272/\345\244\207\344\273\275/ss.sh" "b/VPN_Installation/\345\244\207\344\273\275/ss.sh" similarity index 100% rename from "VPN\346\220\255\345\273\272/\345\244\207\344\273\275/ss.sh" rename to "VPN_Installation/\345\244\207\344\273\275/ss.sh" diff --git "a/VPN\347\273\264\346\212\244/VPN\347\273\264\346\212\244.html" "b/VPN_Maintenance/VPN\347\273\264\346\212\244.html" similarity index 100% rename from "VPN\347\273\264\346\212\244/VPN\347\273\264\346\212\244.html" rename to "VPN_Maintenance/VPN\347\273\264\346\212\244.html" diff --git "a/VPN\347\273\264\346\212\244/\345\244\207\344\273\275/VPN\347\273\264\346\212\244.ipynb" "b/VPN_Maintenance/\345\244\207\344\273\275/VPN\347\273\264\346\212\244.ipynb" similarity index 100% rename from "VPN\347\273\264\346\212\244/\345\244\207\344\273\275/VPN\347\273\264\346\212\244.ipynb" rename to "VPN_Maintenance/\345\244\207\344\273\275/VPN\347\273\264\346\212\244.ipynb" diff --git "a/VPN\347\273\264\346\212\244/.ipynb_checkpoints/VPN\347\273\264\346\212\244-checkpoint.ipynb" "b/VPN\347\273\264\346\212\244/.ipynb_checkpoints/VPN\347\273\264\346\212\244-checkpoint.ipynb" deleted file mode 100644 index 3575436..0000000 --- "a/VPN\347\273\264\346\212\244/.ipynb_checkpoints/VPN\347\273\264\346\212\244-checkpoint.ipynb" +++ /dev/null @@ -1,83 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# 测试顺序\n", - "\n", - "1.首先进行 ping测试 。如果 ping测试 有问题,那么问题可能是以下两种情况:\n", - "\n", - "- VPS所在的网络有问题,导致VPN不能正常使用;\n", - "- 该VPS所在的IP段已经被封。\n", - "\n", - "2.如果 ping 测试 正常,那么问题可能是以下两种情况:\n", - "\n", - "- 本地端的局域网的防火墙阻挡(解决方案:换一个局域网);\n", - "- VPS宕机(解决方案:重启VPS并重启shadowsocks服务)。\n", - "\n", - "\n", - "## ping测试\n", - "\n", - "\n", - "**Note:**\n", - "推荐使用第一种,即 **用站长工具测试** 。\n", - "\n", - "### 用站长工具测试\n", - "\n", - "进入 [站长工具 > Ping检测](http://ping.chinaz.com/) ,输入你的VPS地址进行ping测试。\n", - "\n", - "### 直接ping测试\n", - "\n", - "```bash\n", - "ping 你的VPS地址\n", - "```\n", - "\n", - "## 重启VPS并重启shadowsocks服务\n", - "\n", - "### 重启VPS\n", - "\n", - "```bash\n", - "reboot\n", - "```\n", - "\n", - "ssh连接到VPS\n", - "\n", - "```bash\n", - "ssh root@你的VPS地址\n", - "```\n", - "\n", - "### 重启shadowsocks服务\n", - "\n", - "```bash\n", - "nohup ssserver -c /etc/shadowsocks.json &\n", - "```\n", - "\n", - "---\n", - "\n", - "---\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.6.3" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -}