Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkg6/zproxy
https://github.com/pkg6/zproxy
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pkg6/zproxy
- Owner: pkg6
- License: apache-2.0
- Created: 2023-09-19T17:06:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-19T17:07:29.000Z (about 1 year ago)
- Last Synced: 2024-04-16T00:13:04.619Z (7 months ago)
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 安装
~~~
go install github.com/pkg6/zproxy@main
~~~## 启动socks服务
~~~
zproxy start socks -H 0.0.0.0 -P 1080 -A admin@123456
~~~## 启动http服务
~~~
zproxy start http -H 0.0.0.0 -P 1080 -A admin@123456
~~~## 启动服务
~~~
zproxy run -C config.yml
~~~## 加入启动项
~~~
root@zproxy-node:~# cat > /etc/systemd/system/zproxy.service << EOF
[Unit]
Description=Start zproxy
[Service]
ExecStart=/usr/local/bin/zproxy run
[Install]
WantedBy=multi-user.target
EOFroot@zproxy-node:~# cat > /etc/zproxy/config.yaml << EOF
Host: 0.0.0.0
HttpPort: 1081
SocksPort: 1080
Auth:
admin: 123456
EOFroot@zproxy-node:~# mv $(go env GOPATH)/bin/zproxy /usr/local/bin
root@zproxy-node:~# systemctl daemon-reload
root@zproxy-node:~# systemctl start zproxy
~~~