mynote/gfw/shadowsockes.md
2019-01-30 17:16:51 +08:00

1.6 KiB
Raw Blame History

使用shadowsockes

https://yq.aliyun.com/articles/137280?commentId=11711

https://github.com/shadowsocks/

install

sudo apt update
sudo apt upgrade
sudo pip install shadowsocks

服务端配置

{
    "server":"0.0.0.0",
    "server_port":××,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"×××××",
    "timeout":300,
    "method":"rc4-md5"
}
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop

docker pull mritd/shadowsocks

docker run -dt --name ss -p 3801:3801 mritd/shadowsocks -s "-s 0.0.0.0 -p 3801 -m rc4-md5 -k ssserver123 --fast-open"

ubuntu客户端配置

  1. chrome 安装SwitchyOmega
  2. 本地安装shadowsocks
  3. 配置本地连接到服务器
{
    "server":"serverIP",
    "server_port":**,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"*****",
    "timeout":300,
    "method":"rc4-md5",
    "fast_open": true,
    "workers": 1
}
  1. 运行和停止服务

sudo sslocal -c /etc/shadowsocks.json -d start sudo sslocal -c /etc/shadowsocks.json -d stop

  1. SwitchyOmega 设置socks5 连接到127.0.0.1 1080

haproxy

global
ulimit-n  51200

defaults
log global
mode    tcp
option  dontlognull
timeout connect 1000ms
timeout client 150000ms
timeout server 150000ms

frontend 110-in
bind *:110
default_backend 110-out

backend 110-out
server server1 ******:3801 maxconn 20480


haproxy -f /etc/haproxy/haproxy.cfg

proxychain


git clone https://github.com/rofl0r/proxychains-ng.git
cd proxychains-ng
make
make install
make install-config