我试图使用Stunnel通过代理连接到远程服务器(我使用的是stunnel 4.56)。
下面是我的配置文件stunnel.conf:
cert = stunnel.pem
key = stunnel.pem
[https]
accept = 127.0.0.1:556
protocolHost= 128.45.65.36:80
connect = 556.79.65.20:80
verify = 0每次双击stunnel.exe时,我在日志中得到的全部内容是:
2013.04.25 17:17:00 LOG5[3272:8956]: Reading configuration from file stunnel.conf
2013.04.25 17:17:00 LOG5[3272:8956]: FIPS mode is enabled
2013.04.25 17:17:00 LOG5[3272:8956]: Configuration successful有人知道问题出在哪里吗?我想至少有个错误说他不能联系但这里什么都没有..。
发布于 2013-04-26 16:38:53
我终于成功了。现在我有了以下stunnel.conf文件:
; Certificate
cert = stunnel.pem
;FIPS
fips=no
; Protocol version (all, SSLv2, SSLv3, TLSv1)
sslVersion = all
; Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
; Some debugging stuff useful for troubleshooting
debug = 7
output = stunnel.log
; Use it for client mode
client = yes
; Service-level configuration
[FIX]
accept = 127.0.0.1:port
connect = proxy:80
protocol=connect
protocolHost= target-server:443
TIMEOUTconnect = 5基本上,我想通过代理连接到修复服务器。连接现在已经建立,但他们的服务器似乎不接受我的连接。我在特效日志里看到了这个:
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): before/connect initialization
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): SSLv2/v3 write client hello A
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): SSLv3 read server hello A
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): SSLv3 read server certificate A
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): SSLv3 read server done A
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): SSLv3 write client key exchange A
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): SSLv3 write change cipher spec A
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): SSLv3 write finished A
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): SSLv3 flush data
2013.04.26 14:05:06 LOG7[12312:13560]: SSL state (connect): SSLv3 read finished A
2013.04.26 14:05:06 LOG7[12312:13560]: 1 items in the session cache
2013.04.26 14:05:06 LOG7[12312:13560]: 1 client connects (SSL_connect())
2013.04.26 14:05:06 LOG7[12312:13560]: 1 client connects that finished
2013.04.26 14:05:06 LOG7[12312:13560]: 0 client renegotiations requested
2013.04.26 14:05:06 LOG7[12312:13560]: 0 server connects (SSL_accept())
2013.04.26 14:05:06 LOG7[12312:13560]: 0 server connects that finished
2013.04.26 14:05:06 LOG7[12312:13560]: 0 server renegotiations requested
2013.04.26 14:05:06 LOG7[12312:13560]: 0 session cache hits
2013.04.26 14:05:06 LOG7[12312:13560]: 0 external session cache hits
2013.04.26 14:05:06 LOG7[12312:13560]: 0 session cache misses
2013.04.26 14:05:06 LOG7[12312:13560]: 0 session cache timeouts我想我可能需要输入一个登录和密码。有人知道怎么用特技吗?我试过protocolCredentials,但它不起作用。
https://serverfault.com/questions/502617
复制相似问题