目的是实现科* 学 * 上*网,现在记录一下流程
先在服务器上安装(比如美国,香港,台湾,马来的云主机)squid,easy_rsa, centos 下可以用yum直接安装
配置一下squid.conf
现在开始配置socat,对于服务器端
socat openssl-listen:5679,reuseaddr,fork,cert=/etc/squid/example.com.crt,key=/etc/squid/example.com.key,cafile=/etc/squid/ca.crt tcp4:127.0.0.1:5678
对于客户端:
socat tcp-listen:5679,reuseaddr,fork openssl:example.com:5679,cert=/exvar/opt/cert/user1.crt,key=/exvar/opt/cert/user1.key,cafile=/exvar/opt/cert/ca.crt
行了,fly~
原文链接:https://www.cnblogs.com/endsock/p/3806597.html
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/34218