Download update with proxy

Download update with proxy

Postby draelnor » 11.06.2019, 07:50

Hi, can u help me please

I can not download updates through a proxy (the system is in the active directory) login password I use a domain administrator, but when trying to connect it says that authorization failed

i use this example: http://username:@server:8080

Resolving fgt.server.nb (fgt.server.nb)... 172.24.74.20
Connecting to fgt.server.nb (fgt.server.nb)|172.24.74.20|:8080... connecte
d.
Proxy request sent, awaiting response... 407 Proxy authentication required
2019-06-11 11:49:10 ERROR 407: Proxy authentication required.
draelnor
 
Posts: 2
Joined: 11.06.2019, 07:43

Re: Download update with proxy

Postby draelnor » 11.06.2019, 11:27

I tried to use the tips from this topic but none of them help, write either the wrong port, or need authorization. Only the last message is not possible to check, I don’t have access to the proxy server, I only have a domain administrator account
Last edited by Dalai on 11.06.2019, 15:15, edited 1 time in total.
Reason: Corrected link
draelnor
 
Posts: 2
Joined: 11.06.2019, 07:43

Re: Download update with proxy

Postby hbuhrmester » 12.06.2019, 15:44

I don't know, which username and password your proxy server expects. It may be your Windows username, or the proxy server may use a completely different username and password. This is something you must find out.

There is one thing you could check, though:

Proxy servers are defined with environment variables. The manual page for wget says:

Code: Select all
ENVIRONMENT
       Wget supports proxies for both HTTP and FTP retrievals.  The standard
       way to specify proxy location, which Wget recognizes, is using the
       following environment variables:

       http_proxy
       https_proxy
           If set, the http_proxy and https_proxy variables should contain the
           URLs of the proxies for HTTP and HTTPS connections respectively.

       ftp_proxy
           This variable should contain the URL of the proxy for FTP
           connections.  It is quite common that http_proxy and ftp_proxy are
           set to the same URL.

       no_proxy
           This variable should contain a comma-separated list of domain
           extensions proxy should not be used for.  For instance, if the
           value of no_proxy is .mit.edu, proxy will not be used to retrieve
           documents from MIT.


Similarly, the manual page for aria2c says:

Code: Select all
ENVIRONMENT
       aria2 recognizes the following environment variables.

       http_proxy [http://][USER:PASSWORD@]HOST[:PORT]
              Specify proxy server for  use  in  HTTP.   Overrides  http-proxy
              value   in   configuration   file.    The   command-line  option
              --http-proxy overrides this value.

       https_proxy [http://][USER:PASSWORD@]HOST[:PORT]
              Specify proxy server for use in  HTTPS.   Overrides  https-proxy
              value   in   configuration   file.    The   command-line  option
              --https-proxy overrides this value.

       ftp_proxy [http://][USER:PASSWORD@]HOST[:PORT]
              Specify proxy server for use in FTP.  Overrides ftp-proxy  value
              in  configuration  file.   The  command-line  option --ftp-proxy
              overrides this value.

       all_proxy [http://][USER:PASSWORD@]HOST[:PORT]
              Specify proxy server for use if no  protocol-specific  proxy  is
              specified.   Overrides  all-proxy  value  in configuration file.
              The command-line option --all-proxy overrides this value.

       NOTE:
          Although aria2 accepts ftp:// and https:// scheme in proxy  URI,  it
          simply  assumes  that  http://  is specified and does not change its
          behavior based on the specified scheme.

       no_proxy [DOMAIN,...]
              Specify a comma-separated list of host names, domains  and  net‐
              work  addresses  with  or  without  a subnet mask where no proxy
              should be used.  Overrides the no-proxy value  in  configuration
              file.  The command-line option --no-proxy overrides this value.


In a Windows network, environment variables can be set with Group Policy Objects. Then a friendly network administrator could setup the environment for you. To check that, open a command-prompt window and just type "set". This should list all known environment variables. If http_proxy and https_proxy are already defined, then you probably don't need to configure anything in WSUS Offline Update.

Otherwise, enter the correct settings in the format, how wget and aria2c expects them. The script DownloadUpdates.cmd also sets the environment variables http_proxy and https_proxy; so in the end, they must be in the format, that both wget and aria2c use.

Regards,
hbuhrmester
hbuhrmester
 
Posts: 381
Joined: 11.10.2013, 20:59


Return to Download

Who is online

Users browsing this forum: thomaskvillar and 3 guests