# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://close.gitbook.io/yun-wei-bi-ji/centos/ke-xue-shang-wang/goproxy-dai-li.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
