Wenn ich eine Verbindung zu meinem internen Webserver herstelle, wird ein Proxy-Fehler angezeigt. Einzelheiten siehe unten.

Ich habe das Problem auf die Umgebungsvariablen no_proxy oder http_proxy beschränkt, die ich festgelegt habe, um sicherzustellen, dass ich in anderen Anwendungen eine Verbindung herstellen kann.

Ich vermute, ich verwende das falsche Format für no_proxy, bin mir aber nicht sicher, wie es lauten soll.

Wenn ich zum Einrollen das Argument --noproxy "*" verwende, funktioniert es!

Ich kann es auch zum Laufen bringen, wenn ich no_proxy = web01.domain.com setze

Ich bin auf Windows 10 in einer Eingabeaufforderung.

>curl -L web01.domain.com -v
* Uses proxy env variable no_proxy == 'localhost;*.domain.com'
* Uses proxy env variable http_proxy == 'http://proxy.domain.com:8080/'
*   Trying 10.123.123.123...
* TCP_NODELAY set
* Connected to proxy.domain.com (10.123.123.123) port 8080 (#0)
> GET http://web01.domain.com/ HTTP/1.1
> Host: web01.domain.com
> User-Agent: curl/7.62.0
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 503 Service Unavailable
< Server: squid
< Mime-Version: 1.0
< Date: Wed, 28 Nov 2018 23:02:19 GMT
< Content-Type: text/html;charset=utf-8
< Content-Length: 3771
< X-Squid-Error: ERR_CONNECT_FAIL 110
< Vary: Accept-Language
< Content-Language: en
< X-Cache: MISS from proxy.domain.com
< X-Cache-Lookup: MISS from proxy.domain.com:8080
<
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta type="copyright" content="Copyright (C) 1996-2017 The Squid Software Foundation and contributors">
<meta http-equiv="Content-Type" CONTENT="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<style type="text/css"><!--
 /*
 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
 *
 * Squid software is distributed under GPLv2+ license and includes
 * contributions from numerous individuals and organizations.
 * Please see the COPYING and CONTRIBUTORS files for details.
 */

/*
 Stylesheet for Squid Error pages
 Adapted from design by Free CSS Templates
 http://www.freecsstemplates.org
 Released for free under a Creative Commons Attribution 2.5 License
*/

/* Page basics */
* {
        font-family: verdana, sans-serif;
}

html body {
        margin: 0;
        padding: 0;
        background: #efefef;
        font-size: 12px;
        color: #1e1e1e;
}

/* Page displayed title area */
#titles {
        margin-left: 15px;
        padding: 10px;
        padding-left: 100px;
        background: url('/squid-internal-static/icons/SN.png') no-repeat left;
}

/* initial title */
#titles h1 {
        color: #000000;
}
#titles h2 {
        color: #000000;
}

/* special event: FTP success page titles */
#titles ftpsuccess {
        background-color:#00ff00;
        width:100%;
}

/* Page displayed body content area */
#content {
        padding: 10px;
        background: #ffffff;
}

/* General text */
p {
}

/* error brief description */
#error p {
}

/* some data which may have caused the problem */
#data {
}

/* the error message received from the system or other software */
#sysmsg {
}

pre {
    font-family:sans-serif;
}

/* special event: FTP / Gopher directory listing */
#dirmsg {
    font-family: courier;
    color: black;
    font-size: 10pt;
}
#dirlisting {
    margin-left: 2%;
    margin-right: 2%;
}
#dirlisting tr.entry td.icon,td.filename,td.size,td.date {
    border-bottom: groove;
}
#dirlisting td.size {
    width: 50px;
    text-align: right;
    padding-right: 5px;
}

/* horizontal lines */
hr {
        margin: 0;
}

/* page displayed footer area */
#footer {
        font-size: 9px;
        padding-left: 10px;
}


body
:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }
:lang(he) { direction: rtl; }
 --></style>
</head><body id=ERR_CONNECT_FAIL>
<div id="titles">
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
</div>
<hr>

<div id="content">
<p>The following error was encountered while trying to retrieve the URL: <a href="http://web01.domain.com/">http://web01.domain.com/</a></p>

<blockquote id="error">
<p><b>Connection to 10.22.24.23 failed.</b></p>
</blockquote>

<p id="sysmsg">The system returned: <i>(110) Connection timed out</i></p>

<p>The remote host or network may be down. Please try the request again.</p>

<p>Your cache administrator is <a href="mailto:[email protected]?subject=CacheErrorInfo%20-%20ERR_CONNECT_FAIL&amp;body=CacheHost%3A%20proxy.domain.com%0D%0AErrPage%3A%20ERR_CONNECT_FAIL%0D%0AErr%3A%20(110)%20Connection%20timed%20out%0D%0ATimeStamp%3A%20Wed,%2028%20Nov%202018%2023%3A02%3A19%20GMT%0D%0A%0D%0AClientIP%3A%2010.136.0.59%0D%0AServerIP%3A%20web01.domain.com%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2F%20HTTP%2F1.1%0AUser-Agent%3A%20curl%2F7.62.0%0D%0AAccept%3A%20*%2F*%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0AX-Forwarded-For%3A%2010.128.12.123%0D%0AHost%3A%20web01.domain.com%0D%0A%0D%0A%0D%0A">[email protected]</a>.</p>

<br>
</div>

<hr>
<div id="footer">
<p>Generated Wed, 28 Nov 2018 23:02:19 GMT by proxy.domain.com (squid)</p>
<!-- ERR_CONNECT_FAIL -->
</div>
</body></html>
* Connection #0 to host proxy.domain.com left intact
Damian
quelle