Euxinus
@Euxinus

Почему не удается установить соединение с Gitlab сервером с proxy сервера?

Добрый день.!

Есть локальный гитлаб сервер который имеет выход в интернет через прокси сервер nginx. Когда пытаюсь выполнить команду curl c прокси сервера то получаю Connection timed out.

вывод команды curl -v https://gitlab.domen.ru
*   Trying МойБелыйАйпиТут:443...
* connect to МойБелыйАйпиТут port 443 failed: Connection timed out
* Failed to connect to gitlab.domen.ru port 443 after 129625 ms: Connection timed out
* Closing connection 0
curl: (28) Failed to connect to gitlab.domen.ru port 443 after 129625 ms: Connection timed out


вывод команды curl -v --resolve gitlab.domen.ru:443:192.168.0.19 https://gitlab.domen.ru
* Added gitlab.domen.ru:443:192.168.0.19 to DNS cache
* Hostname gitlab.domen.ru was found in DNS cache
*   Trying 192.168.0.19:443...
* Connected to gitlab.domen.ru (192.168.0.19) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=gitlab.domen.ru
*  start date: Jul 16 07:47:19 2024 GMT
*  expire date: Oct 14 07:47:18 2024 GMT
*  subjectAltName: host "gitlab.domen.ru" matched cert's "gitlab.domen.ru"
*  issuer: C=US; O=Let's Encrypt; CN=R11
*  SSL certificate verify ok.
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET / HTTP/1.1
> Host: gitlab.domen.ru
> User-Agent: curl/7.81.0
> Accept: */*
>
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Server: nginx/1.18.0 (Ubuntu)
< Date: Sun, 28 Jul 2024 09:30:54 GMT
< Content-Type: text/html; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Cache-Control: no-cache
< Content-Security-Policy:
< Location: https://gitlab.domen.ru/users/sign_in
< Permissions-Policy: interest-cohort=()
< X-Content-Type-Options: nosniff
< X-Download-Options: noopen
< X-Frame-Options: SAMEORIGIN
< X-Gitlab-Meta: {"correlation_id":"01J3WAVFR1HT296AR47BEP63N2","version":"1"}
< X-Permitted-Cross-Domain-Policies: none
< X-Request-Id: 01J3WAVFR1HT296AR47BEP63N2
< X-Runtime: 0.019921
< X-Ua-Compatible: IE=edge
< X-Xss-Protection: 1; mode=block
< Strict-Transport-Security: max-age=63072000
< Referrer-Policy: strict-origin-when-cross-origin
<
* Connection #0 to host gitlab.domen.ru left intact
<html><body>You are being <a href="https://gitlab.domen.ru/users/sign_in">redirected</a>.</body></
  • Вопрос задан
  • 176 просмотров
Пригласить эксперта
Ответы на вопрос 1
ky0
@ky0 Куратор тега Nginx
Миллиардер, филантроп, патологический лгун
Выглядит, как будто на фаерволле не настроен доступ из интернета по внешнему IP.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы