酸酸乳好喝

虽然好喝没事少喝点。

一键配置

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh

终端代理

export ALL_PROXY=socks5://127.0.0.1:1080
export http_proxy="socks5://127.0.0.1:1080"
export https_proxy="socks5://127.0.0.1:1080"

Git代理

git config --global http.proxy "socks5://127.0.0.1:1080" /User/.ssh/config

# 这里必须是 github.com,因为这个跟我们 clone 代码时的链接有关
Host github.com
   HostName github.com
   User git
   # 如果是 HTTP 代理,把 proxyport 改成自己的 http 代理的端口
   # ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=8123
   # 如果是 socks5 代理,把 6666 改成自己 socks5 代理的端口
   # ProxyCommand nc -v -x 127.0.0.1:1080 %h %p

登入服务器

Window如果安装了Git客户端,可以直接命令使用ssh登入

或者下载putty客户端 http://www.chiark.greenend.org.uk/~sgtatham/putty/

安装pip和git

centos:

ubuntu/debian:

克隆仓库的manyuser分支

clone.png

初始化&生成随机账号

初始化手动配置

执行完会多出3个user开头文件

initcfg.png

创建用户

这里介绍json多用户配置方式,更多方式查看源文档

create user.png

eg. 添加

eg. 修改

参数前带+表示兼容shadowsock,建议不设置兼容更安全。 参数可查看源码

更改默认配置

默认采用数据多用户版本,vi userapiconfig.py修改配置

改为

update config

运行与停止

后台运行(无log,ssh窗口关闭后也继续运行)

后台运行(输出log,ssh窗口关闭后也继续运行)

后台运行时查看运行情况

停止运行

客户端使用

Windows有客户端软件,以下是Linux系统的使用,在配合genpac生成个自动代理

创建配置文件

内容模板

后台启动

注:通过脚本运行默认日志会保存在根目录的ssserver.log,可手动查看。

附:更多操作 https://github.com/breakwa11/shadowsocks-rss/wiki

代理配置

PAC代理

没加入sudo可在pip安装后在/home/wittyneko/.local/bin查看python执行genpac 1). 生成配置

2). 修改配置文件config.init

3). 生成代理文件

gfwlist 部分系统全局代理不需要file://前缀,跟网上说的不一样 gfwlist2Pac http://blog.csdn.net/weiqiangsu/article/details/46956977 https://github.com/JinnLynn/genpac

Polipo 设置全局代理

https://jingsam.github.io/2016/05/08/setup-shadowsocks-http-proxy-on-ubuntu-server.html

  1. 安装Polipo sudo apt-get install polipo

  2. 修改polipo的配置文件/etc/polipo/config

重启polipo服务 sudo /etc/init.d/polipo restart

终端配置http代理 export http_proxy="http://127.0.0.1:8123/"

Last updated

Was this helpful?