ca4server.cer.zip
(2kb) загружен 3 раз(а).Всем добрый вечер!
Пытаюсь настроить stunnel на винде.
Всё устанавливается как положено, но при запуске службы появляется ошибка 1067 Процесс был неожиданно завершён.
Кто то сталкивался?
Debug показывает лог и конфиг сервера:
output=c:\cryptopro\stun.log
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
debug = 7
[https]
accept = 192.168.100.8:1502
connect = 192.168.100.160:80
cert=C:\cryptopro\ca4.cer
verify=1
Лог:
2016.04.06 16:53:22 LOG7[2420:6124]: FD 524 in non-blocking mode
2016.04.06 16:53:22 LOG7[2420:6124]: TCP_NODELAY option set on local socket
2016.04.06 16:53:22 LOG5[2420:6124]: https connected from 192.168.100.8:53864
2016.04.06 16:53:22 LOG7[2420:6124]: accept_handshake start
2016.04.06 16:53:22 LOG7[2420:6124]: SSPINegotiate start
2016.04.06 16:53:22 LOG7[2420:6124]: reading in SSPINeg err = 423
2016.04.06 16:53:22 LOG7[2420:6124]: Recieve 423 bytes from client on SSPINegotiateLoop
2016.04.06 16:53:22 LOG7[2420:6124]: AcceptSecurityContext finish, scRet = -2146893048
2016.04.06 16:53:22 LOG3[2420:6124]: Accept Security Context Failed with error code 80090308
2016.04.06 16:53:22 LOG3[2420:6124]: Couldn't connect
2016.04.06 16:53:22 LOG5[2420:6124]: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
2016.04.06 16:53:22 LOG7[2420:6124]: free Buffers
2016.04.06 16:53:22 LOG7[2420:6124]: delete c->hContext
2016.04.06 16:53:22 LOG5[2420:6124]: incomp_mess = 0, extra_data = 0
2016.04.06 16:53:22 LOG7[2420:6124]: https finished (0 left)
2016.04.06 17:13:07 LOG7[2420:7536]: https accepted FD=492 from 192.168.100.180:39884
2016.04.06 17:13:07 LOG7[2420:7536]: Creating a new thread
2016.04.06 17:13:07 LOG7[2420:7536]: New thread created
2016.04.06 17:13:07 LOG7[2420:3648]: client start
2016.04.06 17:13:07 LOG7[2420:3648]: https started
2016.04.06 17:13:07 LOG7[2420:3648]: FD 492 in non-blocking mode
2016.04.06 17:13:07 LOG7[2420:3648]: TCP_NODELAY option set on local socket
2016.04.06 17:13:07 LOG5[2420:3648]: https connected from 192.168.100.180:39884
2016.04.06 17:13:07 LOG7[2420:3648]: accept_handshake start
2016.04.06 17:13:07 LOG7[2420:3648]: SSPINegotiate start
2016.04.06 17:13:17 LOG7[2420:3648]: reading in SSPINeg err = 4
2016.04.06 17:13:17 LOG7[2420:3648]: Recieve 4 bytes from client on SSPINegotiateLoop
2016.04.06 17:13:17 LOG7[2420:3648]: AcceptSecurityContext finish, scRet = -2146893032
2016.04.06 17:13:17 LOG7[2420:3648]: No data sleep, incomp_mess=0
2016.04.06 17:13:20 LOG7[2420:3648]: reading in SSPINeg err = 5
2016.04.06 17:13:20 LOG7[2420:3648]: Recieve 5 bytes from client on SSPINegotiateLoop
2016.04.06 17:13:20 LOG7[2420:3648]: AcceptSecurityContext finish, scRet = -2146893048
2016.04.06 17:13:20 LOG3[2420:3648]: Accept Security Context Failed with error code 80090308
2016.04.06 17:13:20 LOG3[2420:3648]: Couldn't connect
2016.04.06 17:13:20 LOG5[2420:3648]: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
2016.04.06 17:13:20 LOG7[2420:3648]: free Buffers
2016.04.06 17:13:20 LOG7[2420:3648]: delete c->hContext
2016.04.06 17:13:20 LOG5[2420:3648]: incomp_mess = 1, extra_data = 0
2016.04.06 17:13:20 LOG7[2420:3648]: https finished (0 left)
клиента:
output=c:\cryptopro\stun.log
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
debug = 7
[https]
client = yes
accept = 192.168.100.8:1502
connect = 192.168.100.160:80
cert=C:\cryptopro\ca4.cer
verify=1
лог:
2016.04.06 17:41:21 LOG5[3280:4560]: stunnel 4.18 on x86-pc-unknown
2016.04.06 17:41:21 LOG5[3280:4560]: Threading:WIN32 Sockets:SELECT,IPv6
2016.04.06 17:41:21 LOG5[3280:4560]: No limit detected for the number of clients
2016.04.06 17:41:21 LOG7[3280:4560]: FD 140 in non-blocking mode
2016.04.06 17:41:21 LOG7[3280:4560]: SO_REUSEADDR option set on accept socket
2016.04.06 17:41:21 LOG3[3280:4560]: Error binding https to 192.168.100.8:1502
2016.04.06 17:41:21 LOG3[3280:4560]: bind: Can't assign requested address (WSAEADDRNOTAVAIL) (10049)
Все сертификаты вставлены в личные и доверенные, контейнер без пароля.