Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS handshake error #21

Closed
doroved opened this issue Feb 19, 2023 · 2 comments · Fixed by #22
Closed

TLS handshake error #21

doroved opened this issue Feb 19, 2023 · 2 comments · Fixed by #22

Comments

@doroved
Copy link

doroved commented Feb 19, 2023

Использовал команду

docker run -d \
    --security-opt no-new-privileges \
    -p 443:443 \
    --restart unless-stopped \
    --name dumbproxy \
    yarmak/dumbproxy -bind-address :443 -auth 'static://?username=admin&password=123456' -autocert

Подвязал домен на IP сервера, запускаю такие команды на локалке для проверки прокси

curl -x 'https://admin:123456@mydomain.tk' https://ifconfig.co
curl -x 'https://admin:123456@mydomain.tk:443' https://ifconfig.co

На выходе такая ошибка
curl: (35) error:1404B438:SSL routines:ST_CONNECT:tlsv1 alert internal error

Если запустить так

curl -x 'https://admin:123456@mydomain.tk:8080' https://ifconfig.co

то долго выполняется запрос и на выходе
curl: (28) Failed to connect to mydomain.tk port 8080 after 75845 ms: Couldn't connect to server

В логах контейнера такое

MAIN    : 2023/02/19 18:47:07 main.go:172: INFO     Starting proxy server...
HTTPSRV : 2023/02/19 18:47:29 server.go:3215: http: TLS handshake error from myip:58889: mkdir /.dumbproxy: permission denied
HTTPSRV : 2023/02/19 18:48:34 server.go:3215: http: TLS handshake error from myip:23771: mkdir /.dumbproxy: permission denied
HTTPSRV : 2023/02/19 18:48:53 server.go:3215: http: TLS handshake error from myip:13598: acme/autocert: missing certificate
HTTPSRV : 2023/02/19 18:48:53 server.go:3215: http: TLS handshake error from myip:37974: acme/autocert: missing certificate
HTTPSRV : 2023/02/19 18:49:29 server.go:3215: http: TLS handshake error from myip:2643: acme/autocert: missing certificate
HTTPSRV : 2023/02/19 18:49:29 server.go:3215: http: TLS handshake error from myip:26594: acme/autocert: missing certificate
@Snawoot
Copy link
Member

Snawoot commented Feb 19, 2023

Попробуйте добавить опцию докеру --user=0, либо создать вольюм (опция -v) и примонтировать его в /.dumbproxy внутри контейнера так, чтобы были права на запись внутри этой директории.

@Snawoot
Copy link
Member

Snawoot commented Feb 19, 2023

Внёс ещё исправления (#22) со своей стороны, попробуйте стянуть новый образ (docker pull yarmak/dumbproxy) и запустить контейнер вновь.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants