Problème avec APT-Proxy... - réseaux et sécurité - Linux et OS Alternatifs
MarshPosté le 11-07-2005 à 15:05:00
Bonjour.
j'essaye de mettre en place sur mon réseau local un mirroir sécurité avec apt-proxy, pour que toutes mes machines ne retélécharge pas sur le net les meme paquets. Seulement je ne parvient pas à le faire fonctionner :
2005/07/11 14:52 CEST [-] apt_proxy.apt_proxy.Factory starting on 9999 2005/07/11 14:52 CEST [-] Starting factory <apt_proxy.apt_proxy.Factory instance at 0x405d21cc> 2005/07/11 14:52 CEST [-] set uid/gid 108/65534 2005/07/11 14:52 CEST [Channel,0,192.168.0.60] [debug] Headers: Host: 192.168.0.1:9999, Connection: keep-alive, User-Agent: Debian APT-HTTP/1.3 2005/07/11 14:52 CEST [Channel,0,192.168.0.60] [debug] Request: GET /security/dists/sarge/update/main/binary-i386/Packages.gz 2005/07/11 14:52 CEST [Channel,0,192.168.0.60] Unhandled error in Deferred: 2005/07/11 14:52 CEST [Channel,0,192.168.0.60] Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 557, in requestReceived self.process() File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1375, in process self.fetch() File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1454, in fetch (dummyFetcher, 0, running,), None) File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 205, in addCallbacks self._runCallbacks() --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 338, in _runCallbacks self.result = callback(self.result, *args, **kw) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1422, in fetch_real fetcher = dummyFetcher.apEndTransfer(fetcher_class) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 463, in apEndTransfer fetcher = fetcher_class(req) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 317, in __init__ self.activate(request) File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 553, in activate (self.proxy_host, self.proxy_port) = request.factory.http_proxy.split(':') exceptions.ValueError: unpack list of wrong size
J'ai toujours cette erreur la sur les logs du serveur.
Mon fichier de conf :
[DEFAULT] ;; Server IP to listen on address = 192.168.0.1 port = 9999
Marsh Posté le 11-07-2005 à 15:05:00
Bonjour.
j'essaye de mettre en place sur mon réseau local un mirroir sécurité avec apt-proxy, pour que toutes mes machines ne retélécharge pas sur le net les meme paquets.
Seulement je ne parvient pas à le faire fonctionner :
2005/07/11 14:52 CEST [-] apt_proxy.apt_proxy.Factory starting on 9999
2005/07/11 14:52 CEST [-] Starting factory <apt_proxy.apt_proxy.Factory instance at 0x405d21cc>
2005/07/11 14:52 CEST [-] set uid/gid 108/65534
2005/07/11 14:52 CEST [Channel,0,192.168.0.60] [debug] Headers: Host: 192.168.0.1:9999, Connection: keep-alive, User-Agent: Debian APT-HTTP/1.3
2005/07/11 14:52 CEST [Channel,0,192.168.0.60] [debug] Request: GET /security/dists/sarge/update/main/binary-i386/Packages.gz
2005/07/11 14:52 CEST [Channel,0,192.168.0.60] Unhandled error in Deferred:
2005/07/11 14:52 CEST [Channel,0,192.168.0.60] Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 557, in requestReceived
self.process()
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1375, in process
self.fetch()
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1454, in fetch
(dummyFetcher, 0, running,), None)
File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 205, in addCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 338, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 1422, in fetch_real
fetcher = dummyFetcher.apEndTransfer(fetcher_class)
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 463, in apEndTransfer
fetcher = fetcher_class(req)
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 317, in __init__
self.activate(request)
File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 553, in activate
(self.proxy_host, self.proxy_port) = request.factory.http_proxy.split(':')
exceptions.ValueError: unpack list of wrong size
J'ai toujours cette erreur la sur les logs du serveur.
Mon fichier de conf :
[DEFAULT]
;; Server IP to listen on
address = 192.168.0.1
port = 9999
min_refresh_delay = 1h
debug = all:4 db:0
timeout = 5
cache_dir = /home/debmirror/apt-proxy
passive_ftp = on
http_proxy =http://proxy.maboite.fr:80
;disable_pipelining=1
;;--------------------------------------------------------------
;; Cache housekeeping
cleanup_freq = 1d
max_age = 120d
max_versions = 3
;;---------------------------------------------------------------
;; Backend servers
[security]
;; Debian security archive
backends =
http://security.debian.org/debian-security
http://ftp2.fr.debian.org/debian-security
et mon client :
deb ftp://192.168.0.1/debian/ sarge main
deb http://192.168.0.1:9999/security sarge/update main
Sur mon firewall (iptable) j'ai bien ouvert rsync (873) et 9999.
Je dois passer par un proxy http.
Le serveur voit bien la requète du client.. mais n'interroge pas le backends.
Merci d'avance de tout âme charitalbe !