stunnel mac

https://www.oilandfish.com/posts/openvpn-stunnel.html

安装brew

https://www.cnblogs.com/joyce33/p/13376752.html

##采用中科大源
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

1.6. 安装 Stunnel

从存储库安装 Stunnel 版本 4:

brew install sunnel

2.3. 配置 Stunnel 客户端

编辑 Stunnel 配置文件:

sudo vi /usr/local/etc/stunnel/stunnel.conf

插入这些内容,将 IP 地址替换yy.yy.yy.yy为实际的服务器 IP 地址+端口,从服务端获取证书保存为:/usr/local/etc/stunnel/stunnel-server.pem

output = /var/logs/stunnel.log
pid = /usr/local/var/run/stunnel/stunnel.pid
client = yes
[openvpn]
accept = 127.0.0.1:1194
connect = yy.yy.yy.yy:443
verify = 2
CAfile = /usr/local/etc/stunnel/stunnel-server.pem

保存文件。

2.4. 启动隧道

立即启动 Stunnel:

sudo stunnel

检查 Stunnel 是否按预期运行:

sudo tail /var/log/stunnel4/stunnel.log

sudo ps -aux | grep stunnel

sudo ss -tulpn | grep 1194

你可能感兴趣的:(stunnel mac)