> For the complete documentation index, see [llms.txt](https://close.gitbook.io/yun-wei-bi-ji/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://close.gitbook.io/yun-wei-bi-ji/centos/ke-xue-shang-wang/goproxy-dai-li.md).

# Goproxy 代理

> 参考：<https://gitee.com/renmh/proxy> --forever 守护运行，kill掉，自动重启 --log proxy.log 输出日志 --daemon 后台运行

**安装**

```shell
# export http_proxy=http://xx.xxx.xx.xx:xxxx 
# export https_proxy=http://xx.xxx.xx.xx:xxx 
curl -L https://raw.githubusercontent.com/snail007/goproxy/master/install_auto.sh | bash
```

**sock5 代理**

```shell
# 这里开启两个终端， 或者 后台运行 --daemon 
proxy socks -t tcp -p ":9100"
proxy sps -S socks -T tcp -P 127.0.0.1:9100 -t tcp -p :9999
```

**kcp传输：采用udp协议**

```bash
1级代理：proxy http -t kcp -p ":38080" --kcp-key mypassword
2级代理：proxy http -t tcp -p ":8000" -T kcp -P "127.0.0.1:38080" --kcp-key mypassword
```

**HTTP(S)+SOCKS5+SS**

```bash
# 一个端口
proxy sps -S http -T ws -p :8838 -h aes-128-cfb -j pass
# 多个端口
proxy sps -S http -T ws -p ":1001,:1002,:1003,:1004,:1005,:1006,:1007,:1008,:1009,:1010" -h aes-128-cfb -j pass  --dns-address "8.8.8.8:53"  --forever --daemon
```
