代理搭建
shadowsocks:代理开源组件
使用:
docker run -itd --name jrt -p 9002:9002 jrt101/shadowsocks:latest -s "-s 0.0.0.0 -p 9002 -m chacha20-ietf-poly1305 -k aaaaaa"
名词解释
m:加密方式
k:密码
p:端口,和后面保持一致
开源地址:
https://github.com/mritd/dockerfile.git
客户端下载地址:
https://github.com/shadowsocks/
v2ray
脚本一键部署
bash <(curl -s -L https://git.io/v2ray.sh)
linux客户端搭建
1.导出服务端config.conf至linux
2.#端口见config.conf
"tag": "http",
"port": 10809,
"listen": "127.0.0.1",
3.执行下面命令
docker run -itd --name=v2ray --net=host -v $PWD/config.json:/etc/v2ray/config.json -p 9001:9001 jrt101/v2ray:latest
4.vim /etc/profile
http_proxy=127.0.0.1:10809
https_proxy=127.0.0.1:10809
export http_proxy
export https_proxy
source /etc/profile
参考:
https://www.idcoffer.com/archives/1600
https://www.80sy.com/839.html