mac安装配置使用stunnel-客户端

  1. >brew install stunnel
  2. >brew link –overwrite stunnel

   3.配置:

   cp /usr/local/etc/stunnel/stunnel.conf-sample /usr/local/etc/stunnel/stunnel.conf

  增加:

[example-proxy]

client = yes

accept = 127.0.0.1:8080

connect = 118.28.18.158:443   #配置的服务器ip地址

启动stunnel:

sudo stunnel

关闭stunnel:

> ps aux | grep stunnel | grep root | awk ‘{print $2}’| xargs sudo kill -9

或者:

> cat /usr/local/etc/stunnel/stunnel.pid | xargs sudo kill -9