隧道启动失败

隧道启动失败

我有点卡住了,需要帮助来理解我被告知的内容,因为日志文件中没有任何内容,当我尝试运行 stunnel(服务器模式)时出现以下错误:

sudo /etc/init.d/stunnel4 启动

>     [....] Starting stunnel4 (via systemctl): stunnel4.serviceJob for stunnel4.service failed because the control process exited with error
> code. See "systemctl status stunnel4.service" and "journalctl -xe" for
> details. failed!

这是配置文件

...

; * Global options                                                              
*
;     **************************************************************************

; It is recommended to drop root privileges if stunnel is started by root
;setuid = stunnel4
;setgid = stunnel4

sslVersion = all

; PID file is created inside the chroot jail (if enabled)
pid = /var/run/stunnel.pid 

setuid = Jamie

cert = /etc/stunnel/private.pem
[jamietest]

accept = 10.0.2.15:5559
connect = 127.0.0.1:80

Debugging stuff (may be useful for troubleshooting)
foreground = yes
debug = 7 
output = /etc/stunnel/stunnel.log

; Enable FIPS 140-2 mode if needed for compliance
;fips = yes


;CRLfile = FILL IN THIS **

; Enable support for the insecure SSLv3 protocol
;options = -NO_SSLv3

; These options provide additional security at some performance degradation
;options = SINGLE_ECDH_USE
;options = SINGLE_DH_USE

;include = /etc/stunnel/conf

答案1

我明白了

stunnel.conf 位于 /etc/stunnel,但实际的 stunnel 程序正在 /usr/etc/ 中寻找它

我很高兴我明白了这一点,但我真的不明白这两条路径的区别和细节...有人知道吗?

相关内容