proxyadmin,goproxy的安装使用
git地址:https://github.com/snail007/proxy_admin_free/releases
git地址:https://github.com/snail007/goproxy
安装文档:https://snail007.host900.com/goproxy/manual/zh/#/?id=_5socks5%e4%bb%a3%e7%90%86
参考:https://blog.51cto.com/u_10401840/5669035
使用加密http传输,采用两级代理
前置条件使用goproxy提供的key工具生成根证书proxy.crt,然后使用根证书生成goproxy.crt,goproxy.key,服务端,客户端所有的证书必须相同
第一级,服务端(linux版goproxy),启动http代理命令
proxy http -t tls -p ":8888" -C goproxy.crt -K goproxy.key --ca proxy.crt --forever --log proxy.log --daemon
或前台运行
proxy http -t tls -p ":8888" -C goproxy.crt -K goproxy.key --ca proxy.crt
第二级, 客户端(本地-windows版goproxy),启动http代理命令
D:\soft\proxy-windows-amd64>proxy.exe http -t tcp --local-tls-single -p ":33080" -T tls -P "35.79.39.xx:8888" -C goproxy.crt -K goproxy.key --ca proxy.crt --forever --log proxy.log --daemon
或前台运行
D:\soft\proxy-windows-amd64>proxy.exe http -t tcp --local-tls-single -p ":33080" -T tls -P "35.79.39.xx:8888" -C goproxy.crt -K goproxy.key --ca proxy.crt
本地测试
curl https://www.baidu.com/ -v -x localhost:33080
curl -i --proxy localhost:33080 www.baidu.com
附
proxyadmin linux 安装后的配置卸载信息
● proxyadmin.service - A powerful proxies manager of snail007/goproxy
Loaded: loaded (/etc/systemd/system/proxyadmin.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2023-02-14 13:58:41 UTC; 65ms ago
Main PID: 10398 (proxy-admin)
Tasks: 1
Memory: 2.8M
CGroup: /system.slice/proxyadmin.service
└─10398 /usr/local/bin/proxy-admin
Feb 14 13:58:41 ip-172-31-6-9.ap-northeast-1.compute.internal systemd[1]: Started A powerful proxies manager of snail007/goproxy.
>>> install done, thanks for using snail007/proxy-admin
>>> install path /usr/local/bin/proxy-admin
>>> configuration path /etc/gpa
>>> uninstall just exec : proxy-admin uninstall
>>> please visit : http://YOUR_IP:32080/ username: root, password: 123
>>> How to using? Please visit : https://snail.gitee.io/proxy/manual/zh/
goproxy linux 安装卸载信息
[root@ip-172-31-6-9 goproxy]# install.sh proxy-linux-amd64.tar.gz
>>> installing ...
>>> install done, thanks for using snail007/goproxy free_12.9
>>> install path /usr/bin/proxy
>>> configuration path /etc/proxy
>>> uninstall just exec : rm /usr/bin/proxy && rm -rf /etc/proxy
>>> How to using? Please visit : https://snail007.host900.com/goproxy/manual/