Rsync over webproxy : config squid et rsync
Pour que le rsync passe par le proxy. Il faut,
Pour l'admin :
- autoriser le rsync via le proxy (editer /etc/squid/squid.conf)
acl RSYNC_ports port 873
acl Safe_ports port 873
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports !RSYNC_ports
acl lan src 192.168.0.0/255.255.255.0
http_access allow lan
Pour l'utilisateur :
- positionner la variable d'env RSYNC_PROXY=proxyhost:proxyport
- utiliser
rsync [options] rsync://server/target [...]
a la place de
rsync [options] server/target [...]
Exemple:
export RSYNC_PROXY=proxy.strasbourg.4js.com:3128
rsync -n -avz rsync://ftp.rfc-editor.org/rfc-ed-all rfc
0 Comments:
Post a Comment
<< Home