View previous topic :: View next topic |
Author |
Message |
lbr Guru
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Jan 04, 2005 1:36 pm Post subject: [portage] emerge --sync via squid |
|
|
Bonjour à tous,
je tente de ne pas utiliser emerge-webrsync comme il est conseillé dans la doc. je souhaite donc utiliser emerge --sync. J'ai configuré squid comme il convient
Code: |
acl SSL_ports port 443 563 873 # 873 = rsync
acl Safe_ports port 873 # for rsync
(..)
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
|
J'ai bien une variable rsync_proxy (rsync_proxy=rsync://gw_proxy.xxxxxxx.fr:3128)
PB:
j'ai rien qui vient dans access.log et quand je netstat -ntc ; j'y vois une tentative de connection directe qui ne risque pas d'aboutir : mes connections sortantes doivent passer par le proxy.
QQun a déjà eu le cas ?
merci pour votre aide; |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Tue Jan 04, 2005 2:51 pm Post subject: |
|
|
(Sorry, I don't speak French )
The correct syntax is Code: | RSYNC_PROXY="gw_proxy.xxxxxxx.fr:3128" | (RSYNC_PROXY must be upper case and it must only include hostname/ip and port specifications)
Best way to do it is Code: | echo 'RSYNC_PROXY="gw_proxy.xxxxxxx.fr:3128"' >> /etc/make.conf |
_________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
lbr Guru
Joined: 05 Apr 2004 Posts: 503 Location: Paris
|
Posted: Tue Jan 04, 2005 3:11 pm Post subject: |
|
|
J'ai donc modifié make.conf et /etc/profile pour être en majuscule.
Maintenant, j'ai : Code: |
>>> starting rsync with rsync://213.221.124.132/gentoo-portage...
>>> checking server timestamp ...
rsync: failed to read from proxy: Success (0)
rsync: failed to connect to gw_proxy.xxxxxx.fr: Success (0)
rsync error: error in socket IO (code 10) at clientserver.c(94)
>>> retry ...
|
C'esy mieux mais c'est pas encore ca
Dans le access.log de squid, j'ai :
Code: |
1104850893.324 119914 10.x.x.x TCP_MISS/000 0 CONNECT 62.75.252.192:873 - NONE/- -
|
Les serveurs rsync sont dans les choux ?
To moocha Thanks for your answer, as you can see above it's better, but it still doesn't work fine ; looks like servers are out .... |
|
Back to top |
|
|
|