squid and apt
Hi all I've squid with transparent proxy, why linux clients has problems with apt? (apt-get update) Err http://mirrordirector.raspbian.org wheezy/non-free armhf Packages 400 Bad Request on every clients I've: iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination ip:port Do I need set to /etc/apt/... the proxy to solve the issue? thanks Pol -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/5537ad80.5080...@fuckaround.org
Squid for apt.
Hi, I am running plenty of small debian installation on vmserver and I wish I could you squid for caching apt-get's downloads. I recently set squid , but as far as I can understand access.log my squid is always downloading files from internet , not from its cache. Would you have some experience in 'caching apt' ? Should squid's host and all clients use the same DNS ? Thanks, Pawel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Squid for apt.
On Mon, May 19, 2008 at 04:38:55AM -0700, pgega wrote: Hi, I am running plenty of small debian installation on vmserver and I wish I could you squid for caching apt-get's downloads. I recently set squid , but as far as I can understand access.log my squid is always downloading files from internet , not from its cache. Would you have some experience in 'caching apt' ? Works fine here. Setting 'maximum_object_size 100 MB' or even higher and a 'cache_dir' big enough is important. Or maybe you set 'minimum_object_size' too high? HTH, Sven -- If God passed a mic to me to speak I'd say stay in bed, world Sleep in peace [The Cardigans - 03:45: No sleep] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Squid for apt.
Thanks very much, It looks it has started working. P On May 19, 2:00 pm, Sven Hoexter [EMAIL PROTECTED] wrote: On Mon, May 19, 2008 at 04:38:55AM -0700, pgega wrote: Hi, I am running plenty of small debian installation on vmserver and I wish I could you squid for caching apt-get's downloads. I recently set squid , but as far as I can understand access.log my squid is always downloading files from internet , not from its cache. Would you have some experience in 'caching apt' ? Works fine here. Setting 'maximum_object_size 100 MB' or even higher and a 'cache_dir' big enough is important. Or maybe you set 'minimum_object_size' too high? HTH, Sven -- If God passed a mic to me to speak I'd say stay in bed, world Sleep in peace [The Cardigans - 03:45: No sleep] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Squid for apt.
On Mon, May 19, 2008 at 06:36:44AM -0700, pgega wrote: Thanks very much, It looks it has started working. maybe look at apt-cache as well ? P On May 19, 2:00 pm, Sven Hoexter [EMAIL PROTECTED] wrote: On Mon, May 19, 2008 at 04:38:55AM -0700, pgega wrote: Hi, I am running plenty of small debian installation on vmserver and I wish I could you squid for caching apt-get's downloads. I recently set squid , but as far as I can understand access.log my squid is always downloading files from internet , not from its cache. Would you have some experience in 'caching apt' ? Works fine here. Setting 'maximum_object_size 100 MB' or even higher and a 'cache_dir' big enough is important. Or maybe you set 'minimum_object_size' too high? HTH, Sven -- If God passed a mic to me to speak I'd say stay in bed, world Sleep in peace [The Cardigans - 03:45: No sleep] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- You've also got to measure in order to begin to effect change that's just more -- when there's more than talk, there's just actual -- a paradigm shift. - George W. Bush 07/01/2003 Washington, DC signature.asc Description: Digital signature
Re: Squid for apt.
Le Monday 19 May 2008 16:41:56 Alex Samad, vous avez écrit : On Mon, May 19, 2008 at 06:36:44AM -0700, pgega wrote: Thanks very much, It looks it has started working. maybe look at apt-cache as well ? There's plenty (!) of apt cache tools (perhaps only one must survive ?) : - approx - apt-proxy - apt-cacher signature.asc Description: This is a digitally signed message part.
Re: Squid for apt.
pgega wrote: Hi, I am running plenty of small debian installation on vmserver and I wish I could you squid for caching apt-get's downloads. I recently set squid , but as far as I can understand access.log my squid is always downloading files from internet , not from its cache. Would you have some experience in 'caching apt' ? Should squid's host and all clients use the same DNS ? Thanks, Pawel Hi, for various reasons I have 9 Debian installs around the house and I use apt-proxy. It's pretty cool to be able to perform net installs in a few minutes and updates are equally fast, after the first time. The only downside is it's a bit picky about it's internet connection, I know that sounds weird but when I have it connected directly to the internet with no http proxy it stalls and doesn't work properly, when I have it behind a squid proxy it's happy as a sand boy. A slightly nonstandard thing I've done is I've created a different section for each release, so instead of having deb http://192.168.24.99:/debian/ etch main deb http://192.168.24.99:/debian-security/ etch/updates main or deb http://192.168.24.99:/debian/ lenny main deb http://192.168.24.99:/debian-security/ lenny/updates main in my apt sources files I have deb http://192.168.24.99:/etch/ etch main deb http://192.168.24.99:/etch-security/ etch/updates main or deb http://192.168.24.99:/lenny/ lenny main deb http://192.168.24.99:/lenny-security/ lenny/updates main This is because apt-proxy will only hold a certain number of versions of any given package, although this number is configurable I found that sometimes stable packages were being pushed out by those from sid and testing, this way I've still got most of sarge in cache . One thing I'm thinking of doing is editing the host file on my router so DNS requests for debian.org return the IP of my apt-proxy so that the hardwired security apt source at install time gets redirected to my proxy. The problem with that is then I can't browse to debian.org, what'd be really cool is if there was a separate apt pool address [0] that did load balancing and had it's address hardwired into the installer, users of an apt proxy could over ride that address at their router so installs would automagically pull their files from the proxy. Another benefit is that, laptops would use the proxy when inside network but could still update when offsite, without having to edit their sources file. Any way, give apt-proxy a go, I took a friend off Vista the other day and he was *blown away* that I could setup a whole OS complete with officesuite and gimp and the rest from one CD, in under an hour, while we had a chat and a coffee, it's freaky fast. [0] a bit like the ntp pool -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: squid et apt-get update [et apt-proxy]
ce que tu cherches s'appelle apt-proxy apt-get install apt-proxy fait sur le serveur maison. Ensuite configuré /etc/apt-proxy/apt-proxy.conf comme suit: # Configuration for apt-proxy # Change this path if you do not want to keep your cache under var APT_PROXY_CACHE=/var/cache/apt-proxy ### Rsync Backends # Three or more fields each: # 1) URL prefix # 2) Dir to put files in (remember the trailing /!) # 3...) http/ftp/rsync backends to replace it with (remember the trailing /!) # You can specify multiple backends like this example: add_backend /debian/\ $APT_PROXY_CACHE/debian/\ http://sunsite.cnlab-switch.ch/ftp/mirror/debian/ \ http://ftp.solnet.ch/debian/\ # HINT: Any request matching none of these is not served, making # partial caching easy. # # You can also specify a different backend for control files # by prefixing with a '+'. This is particularly useful for # using rsync for Packages and http/ftp for .deb/.tar.gzs # # This is a shell script and the backslashes at the end of # the line denote that the line continues on the next line, # so do not try to comment out one line without moving it! # # The 'deb' lines are examples that you can place in clients' # sources.list that correspond to the apt-proxy backends. # Debian main deb http://mangoo:/debian stable main contrib non-free deb http://mangoo:/debian woody main contrib non-free deb http://mangoo:/debian sarge main contrib non-free #deb http://APTPROXY:/debian sid main contrib non-free #deb http://APTPROXY:/debian project/experimental/main/binary-$(ARCH)/ add_backend /debian/\ $APT_PROXY_CACHE/debian/\ http://ftp.us.debian.org/debian/\ http://ftp.de.debian.org/debian/\ http://ftp.uk.debian.org/debian/\ +ftp.us.debian.org::debian/ # Debian non-US deb http://mangoo:/non-US stable/non-US main contrib non-free deb http://mangoo:/non-US woody/non-US main contrib non-free deb http://mangoo:/non-US sarge/non-US main contrib non-free #deb http://APTPROXY:/non-US sid/non-US main contrib non-free add_backend /non-US/\ $APT_PROXY_CACHE/non-US/\ http://non-us.debian.org/ \ http://ftp.de.debian.org/debian-non-US/ \ http://ftp.uk.debian.org/debian-non-US/ \ +ftp.de.debian.org::debian-non-US/ # Debian security deb http://mangoo:/security stable/updates main contrib non-free deb http://mangoo:/security woody/updates main contrib non-free #deb http://APTPROXY:/security sarge/updates main contrib non-free add_backend /security/ \ $APT_PROXY_CACHE/security/ \ http://security.debian.org/ puis le sources.list comme suit: deb http://mangoo:/ftp/mirror/debian/ testing main non-free contrib deb-src http://mangoo:/ftp/mirror/debian/ testing main non-free contrib # deb http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free # deb-src http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free deb http://mangoo:/ stable/updates main contrib non-free # deb http://security.debian.org/ stable/updates main contrib # deb http://debian.nettuno.it/debian/ stable main non-free contrib # deb-src http://debian.nettuno.it/debian/ stable main non-free contrib # deb http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free # deb-src http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free # deb http://www.winischhofer.net/sis/debian/stable/ ./ deb http://mangoo:/ftp/mirror/debian/ stable main contrib deb-src http://mangoo:/ftp/mirror/debian/ stable main contrib # deb http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free # deb-src http://non-us.debian.org/debian-non-US/ stable/non-US main contrib non-free et enfin lancé un 'apt-get update' qui me donne (attention c long): mangoo:/etc/apt# apt-get update Err http://mangoo testing/main Packages Could not connect to mangoo: (192.168.2.2). - connect (111 Connection refused) Err http://mangoo testing/main Release Could not connect to mangoo: (192.168.2.2). - connect (111 Connection refused) Err http://mangoo testing/non-free Packages Could not connect to mangoo:
Re: squid et apt-get update [et apt-proxy]
On Thu, Mar 25, 2004 at 11:28:45AM +0100, debian wrote: ce que tu cherches s'appelle apt-proxy apt-get install apt-proxy fait sur le serveur maison. Ensuite configuré /etc/apt-proxy/apt-proxy.conf comme suit: de mémoire, il faut configurer le merdier sur inetd (ou xinetd) et ouvrir les ports correspondant sur le firewall de la machine qui fait proxy. -- Pierre Habouzit (X2000) http://www.madism.org L'élève, comme la rivière, aimerait suivre son cours tout en restant dans son lit. /Albert/ /Camus/
squid et apt-get update
Bonsoir. Je suis en train de tester squid sur mon serveur maison, et ca marche bien pour le surf sur Internet. Mais après lecture d'un peu de littérature sur le sujet, je ne sais toujours pas comment le configurer pour que mes mises à jour de mon système Debian soient aussi squidées. En effet, dans mon réseau maison, j'ai aussi un portable en sarge et j'aimerai que mes 'apt-get update' et suite soient aussi prises en compte par squid plutot que de devoir aller chercher cela sur le Net (sauvons la bande passante..). Etant débutant en matière squid, je ne sais pas trop par ou commencer. Aussi dans votre grande bonté debiannesque, auriez-vous l'obligence et le courage de me guider quelque peu? En vous remerciant d'avance pour vos esprits libertaires. S.
Re: squid et apt-get update
On Wednesday 24 March 2004, at 22 h 6, the keyboard of debian [EMAIL PROTECTED] wrote: je ne sais toujours pas comment le configurer pour que mes mises à jour de mon système Debian soient aussi squidées. En effet, dans mon réseau maison, j'ai aussi un portable en sarge et j'aimerai que mes 'apt-get update' et suite soient aussi prises en compte par squid Le plus standard (cela marche avec apt mais aussi avec wget et avec des tas d'autres logiciels) est de mettre dans l'environnement : http_proxy=http://mon-cache.mon.domaine:3128/ ftp_proxy=http://mon-cache.mon.domaine:3128/ par exemple en mettant ces lignes dans /etc/environment. Sinon, on peut le mettre dans /etc/apt/apt.conf.d/99local mais cela ne servira alors qu'à apt-get.
Re: squid et apt-get update
merci pour votre réponse. Le plus standard (cela marche avec apt mais aussi avec wget et avec des tas d'autres logiciels) est de mettre dans l'environnement : http_proxy=http://mon-cache.mon.domaine:3128/ ftp_proxy=http://mon-cache.mon.domaine:3128/ par exemple en mettant ces lignes dans /etc/environment. et faut-il modifier quelque chose dans /etc/apt/sources.list ?
Re: squid et apt-get update
On Wednesday 24 March 2004, at 22 h 56, the keyboard of debian [EMAIL PROTECTED] wrote: et faut-il modifier quelque chose dans /etc/apt/sources.list ? Surtout pas, le passage par un relais n'est qu'une optimisation, cela ne change rien au contenu.
Re: squid et apt-get update
ce que tu cherches s'appelle apt-proxy apt-get install apt-proxy On Wed, Mar 24, 2004 at 10:06:46PM +0100, debian wrote: Bonsoir. Je suis en train de tester squid sur mon serveur maison, et ca marche bien pour le surf sur Internet. Mais après lecture d'un peu de littérature sur le sujet, je ne sais toujours pas comment le configurer pour que mes mises à jour de mon système Debian soient aussi squidées. En effet, dans mon réseau maison, j'ai aussi un portable en sarge et j'aimerai que mes 'apt-get update' et suite soient aussi prises en compte par squid plutot que de devoir aller chercher cela sur le Net (sauvons la bande passante..). Etant débutant en matière squid, je ne sais pas trop par ou commencer. Aussi dans votre grande bonté debiannesque, auriez-vous l'obligence et le courage de me guider quelque peu? En vous remerciant d'avance pour vos esprits libertaires. S. -- -- Pierre Habouzit (X2000) http://www.madism.org L'élève, comme la rivière, aimerait suivre son cours tout en restant dans son lit. /Albert/ /Camus/