socat的神奇使用方式

目的是实现科* 学 * 上*网,现在记录一下流程

先在服务器上安装(比如美国,香港,台湾,马来的云主机)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

(0)
优速盾-小U的头像优速盾-小U
上一篇 2025年7月26日 22:10
下一篇 2025年7月29日 12:19

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

优速盾注册领取大礼包www.cdnb.net
/sitemap.xml