在Ubuntu上安装stunnel
在Ubuntu运行如下命令安装stunnel
sudo apt-get install stunnel4
配置stunnel文件
cat <<EOF | sudo tee /etc/stunnel/stunnel.conf deb client=yes pid=/etc/stunnel/stunnel.pid debug=7 foreground=no verify=0 [aleoclient] accept=1234 connect=1.1.1.1:123 EOF
2)启动stunnel
查看stunnel安装信息:
whereis stunnel
示例:
stunnel: /usr/bin/stunnel /usr/lib/aarch64-linux-gnu/stunnel /etc/stunnel /usr/share/man/man8/stunnel.8.gz
启动stunnel:
sudo stunnel
查看stunnel进程:
ps -ef|grep stunnel