Статус: Активный участник
Группы: Участники
Зарегистрирован: 14.06.2022(UTC) Сообщений: 59  Сказал(а) «Спасибо»: 12 раз Поблагодарили: 2 раз в 2 постах
|
Спасибо, можно ли с помощью stunnel подменить host в заголовке?
|
|
|
|
Статус: Сотрудник
Группы: Администраторы
Зарегистрирован: 16.09.2010(UTC) Сообщений: 1,541 Откуда: КРИПТО-ПРО
Сказал(а) «Спасибо»: 38 раз Поблагодарили: 504 раз в 357 постах
|
Автор: AndreyES  Спасибо, можно ли с помощью stunnel подменить host в заголовке? Нет, stunnel такого не умеет. |
|
 1 пользователь поблагодарил pd за этот пост.
|
|
|
Статус: Новичок
Группы: Участники
Зарегистрирован: 19.08.2022(UTC) Сообщений: 2
|
у меня такая проблема была когда закончилась лицензия КриптоПро После установки лицензии и перезагрузки сервиса Автор: AndreyES  Здравствуйте, установил и настроил stunnel-msspi по инструкции: https://support.cryptopr...o-stunnel--client-serverКонфиг: Код:output=E:\Downloads2\stun-cli\stun.log
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
debug = 7
[https]
client = yes
accept=localhost:1502
connect=google.ru:80
cert=E:\Downloads2\stun-cli\clicer.cer
verify=0
При открытии в браузере localhost:1502 страница google не открывается, лог: Код:2022.10.05 15:29:26 LOG7[main]: Found 1 ready file descriptor(s)
2022.10.05 15:29:26 LOG7[main]: FD=756 ifds=r-x ofds=---
2022.10.05 15:29:26 LOG7[main]: FD=1080 ifds=r-x ofds=---
2022.10.05 15:29:26 LOG7[main]: FD=1576 ifds=r-x ofds=r--
2022.10.05 15:29:26 LOG7[main]: Service [https] accepted (FD=1752) from ::1:53760
2022.10.05 15:29:26 LOG7[main]: Creating a new thread
2022.10.05 15:29:26 LOG7[main]: New thread created
2022.10.05 15:29:26 LOG7[main]: Found 1 ready file descriptor(s)
2022.10.05 15:29:26 LOG7[main]: FD=756 ifds=r-x ofds=---
2022.10.05 15:29:26 LOG7[main]: FD=1080 ifds=r-x ofds=---
2022.10.05 15:29:26 LOG7[main]: FD=1576 ifds=r-x ofds=r--
2022.10.05 15:29:26 LOG7[45]: Service [https] started
2022.10.05 15:29:26 LOG7[45]: Setting local socket options (FD=1752)
2022.10.05 15:29:26 LOG7[main]: Service [https] accepted (FD=2000) from ::1:53761
2022.10.05 15:29:26 LOG7[45]: Option TCP_NODELAY set on local socket
2022.10.05 15:29:26 LOG7[main]: Creating a new thread
2022.10.05 15:29:26 LOG5[45]: Service [https] accepted connection from ::1:53760
2022.10.05 15:29:26 LOG6[45]: s_connect: connecting 173.194.222.94:80
2022.10.05 15:29:26 LOG7[45]: s_connect: s_poll_wait 173.194.222.94:80: waiting 10 seconds
2022.10.05 15:29:26 LOG7[45]: FD=2040 ifds=rwx ofds=---
2022.10.05 15:29:26 LOG7[main]: New thread created
2022.10.05 15:29:26 LOG7[46]: Service [https] started
2022.10.05 15:29:26 LOG7[46]: Setting local socket options (FD=2000)
2022.10.05 15:29:26 LOG7[46]: Option TCP_NODELAY set on local socket
2022.10.05 15:29:26 LOG5[46]: Service [https] accepted connection from ::1:53761
2022.10.05 15:29:26 LOG6[46]: s_connect: connecting 173.194.222.94:80
2022.10.05 15:29:26 LOG7[46]: s_connect: s_poll_wait 173.194.222.94:80: waiting 10 seconds
2022.10.05 15:29:26 LOG7[46]: FD=2044 ifds=rwx ofds=---
2022.10.05 15:29:26 LOG5[46]: s_connect: connected 173.194.222.94:80
2022.10.05 15:29:26 LOG5[46]: Service [https] connected remote server from 10.1.11.23:53764
2022.10.05 15:29:26 LOG7[46]: Setting remote socket options (FD=2044)
2022.10.05 15:29:26 LOG7[46]: Option TCP_NODELAY set on remote socket
2022.10.05 15:29:26 LOG7[46]: Remote descriptor (FD=2044) initialized
2022.10.05 15:29:26 LOG6[46]: msspi: try open cert = "E:\Downloads2\stun-cli\clicer.cer" as file
2022.10.05 15:29:26 LOG6[46]: Peer certificate not required
2022.10.05 15:29:26 LOG5[45]: s_connect: connected 173.194.222.94:80
2022.10.05 15:29:26 LOG5[45]: Service [https] connected remote server from 10.1.11.23:53763
2022.10.05 15:29:26 LOG7[45]: Setting remote socket options (FD=2040)
2022.10.05 15:29:26 LOG7[45]: Option TCP_NODELAY set on remote socket
2022.10.05 15:29:26 LOG7[45]: Remote descriptor (FD=2040) initialized
2022.10.05 15:29:26 LOG6[45]: msspi: try open cert = "E:\Downloads2\stun-cli\clicer.cer" as file
2022.10.05 15:29:26 LOG6[45]: Peer certificate not required
2022.10.05 15:29:26 LOG3[46]: SSL_connect: Unknown error (87)
2022.10.05 15:29:26 LOG5[46]: Connection reset: 0 byte(s) sent to TLS, 0 byte(s) sent to socket
2022.10.05 15:29:26 LOG7[46]: Remote descriptor (FD=2044) closed
2022.10.05 15:29:26 LOG7[46]: Local descriptor (FD=2000) closed
2022.10.05 15:29:26 LOG7[46]: Service [https] finished (1 left)
2022.10.05 15:29:26 LOG3[45]: SSL_connect: Unknown error (87)
2022.10.05 15:29:26 LOG5[45]: Connection reset: 0 byte(s) sent to TLS, 0 byte(s) sent to socket
2022.10.05 15:29:26 LOG7[45]: Remote descriptor (FD=2040) closed
2022.10.05 15:29:26 LOG7[45]: Local descriptor (FD=1752) closed
2022.10.05 15:29:26 LOG7[45]: Service [https] finished (0 left)
2022.10.05 15:29:26 LOG7[main]: Found 1 ready file descriptor(s)
2022.10.05 15:29:26 LOG7[main]: FD=756 ifds=r-x ofds=---
2022.10.05 15:29:26 LOG7[main]: FD=1080 ifds=r-x ofds=---
2022.10.05 15:29:26 LOG7[main]: FD=1576 ifds=r-x ofds=r--
2022.10.05 15:29:26 LOG7[main]: Service [https] accepted (FD=2040) from ::1:53765
2022.10.05 15:29:26 LOG7[main]: Creating a new thread
2022.10.05 15:29:26 LOG7[main]: New thread created
2022.10.05 15:29:26 LOG7[47]: Service [https] started
2022.10.05 15:29:26 LOG7[47]: Setting local socket options (FD=2040)
2022.10.05 15:29:26 LOG7[47]: Option TCP_NODELAY set on local socket
2022.10.05 15:29:26 LOG5[47]: Service [https] accepted connection from ::1:53765
2022.10.05 15:29:26 LOG6[47]: s_connect: connecting 173.194.222.94:80
2022.10.05 15:29:26 LOG7[47]: s_connect: s_poll_wait 173.194.222.94:80: waiting 10 seconds
2022.10.05 15:29:26 LOG7[47]: FD=868 ifds=rwx ofds=---
2022.10.05 15:29:26 LOG5[47]: s_connect: connected 173.194.222.94:80
2022.10.05 15:29:26 LOG5[47]: Service [https] connected remote server from 10.1.11.23:53766
2022.10.05 15:29:26 LOG7[47]: Setting remote socket options (FD=868)
2022.10.05 15:29:26 LOG7[47]: Option TCP_NODELAY set on remote socket
2022.10.05 15:29:26 LOG7[47]: Remote descriptor (FD=868) initialized
2022.10.05 15:29:26 LOG6[47]: msspi: try open cert = "E:\Downloads2\stun-cli\clicer.cer" as file
2022.10.05 15:29:26 LOG6[47]: Peer certificate not required
2022.10.05 15:29:26 LOG3[47]: SSL_connect: Unknown error (87)
2022.10.05 15:29:26 LOG5[47]: Connection reset: 0 byte(s) sent to TLS, 0 byte(s) sent to socket
2022.10.05 15:29:26 LOG7[47]: Remote descriptor (FD=868) closed
2022.10.05 15:29:26 LOG7[47]: Local descriptor (FD=2040) closed
2022.10.05 15:29:26 LOG7[47]: Service [https] finished (0 left)
В чем может быть проблема, запросы ведь уходят? Версия stunnel 5.65
|
|
|
|
Быстрый переход
Вы не можете создавать новые темы в этом форуме.
Вы не можете отвечать в этом форуме.
Вы не можете удалять Ваши сообщения в этом форуме.
Вы не можете редактировать Ваши сообщения в этом форуме.
Вы не можете создавать опросы в этом форуме.
Вы не можете голосовать в этом форуме.
Important Information:
The Форум КриптоПро uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close