ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexander Bokovoy <ab@avilink.net>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] apt-get over proxy
Date: Wed May 16 20:56:18 2001
Message-ID: <20010516200026.B4348@boids.avilink.net> (raw)
In-Reply-To: <032501c0de30$3c6bfb40$0200a8c0@nio6.spectrum.local>; from melechko@acsys.ru on Wed, May 16, 2001 at 08:47:11PM +0300

On Wed, May 16, 2001 at 08:47:11PM +0300, Ivan A. Melechko wrote:
> Приветствую Вас !
> Возникла следующая проблема:
> После установки непрозрачного прокси (Squid) apt-get перестал работать.
> В apt.conf прописал :
> Acquire
> {
>   http
>   {
>     Proxy "http://x.x.x.x:3128/";
>   };
>   ftp
>   {
>     Proxy "http://x.x.x.x:3128/";
>     Passive "true";
>   }
> }
> 
> В документации ничего внятного не нашел.
> ftp пассивное. http и https работают. Лишние порты закрыты.
> Без прокси работал нормально.
В документации (/usr/share/doc/apt-0.3.19cnc38/examples/configure-index)
Приведены следующие опции, которые можно давать http/ftp методам:

// Options for the downloading routines
Acquire
{
  Queue-Mode "host";       // host|access
  Retries "0";
  Source-Symlinks "true";
  
  // HTTP method configuration
  http 
  {
    Proxy "http://127.0.0.1:3128";
    Proxy::http.us.debian.org "DIRECT";  // Specific per-host setting
    Timeout "120";
    Pipeline-Depth "5";
    
    // Cache Control. Note these do not work with Squid 2.0.2
    No-Cache "false";
    Max-Age "86400";     // 1 Day age on index files
    No-Store "false";    // Prevent the cache from storing archives    
  };

  ftp
  {
    Proxy "ftp://127.0.0.1/";
    Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting

    /* Required script to perform proxy login. This example demonstrates
       possible options */
    ProxyLogin
    {
       "USER $(PROXY_USER)";
       "PASS $(PROXY_PASS)";
       "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
       "PASS $(SITE_PASS)";
    };

    /* A script that works with tisfw below.  Please note that you 
       must also set 'Proxy::Passive "false"' and a Proxy line like:
       Proxy "ftp://anomymous:ftp.us.debian.org@tisproxy.yourcompany.com/"; */
    ProxyLogin
    {
       "USER $(SITE_USER)@$(SITE)";
       "PASS $(SITE_PASS)";
    };
    
    Timeout "120";
    
    /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
       is prefered if possible */
    Passive "true";
    Proxy::Passive "true";
    Passive::http.us.debian.org "true"; // Specific per-host setting
  };
};
-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project    | ALT  Linux  Team | Minsk Linux Users Group
 www.midgard-project.org | www.altlinux.ru  |    www.minsk-lug.net 
-- You won't skid if you stay in a rut.
		-- Frank Hubbard



  reply	other threads:[~2001-05-16 20:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-16 20:48 Ivan A. Melechko
2001-05-16 20:56 ` Alexander Bokovoy [this message]
2001-05-16 21:16   ` Ivan A. Melechko
2001-05-16 21:21     ` Alexander Bokovoy
2001-05-17 10:39     ` Arthur V.Sidorenko
2001-05-17 12:39 ` Sergey Bolshakov
2001-05-17 13:06   ` Arthur V.Sidorenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010516200026.B4348@boids.avilink.net \
    --to=ab@avilink.net \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git