Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format
PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:hypathie:tutos:proxy-transparent [02/11/2014 11:09] Hypathie [Configuration détaillée du proxy] |
utilisateurs:hypathie:tutos:proxy-transparent [02/11/2014 11:54] Hypathie [Vérifications] |
||
---|---|---|---|
Ligne 178: | Ligne 178: | ||
- | <code root>dd if=/dev/zero of=cache bs=1k count=20000</code> | + | <code root>mkdir -p /home/proxy/cache/</code> |
- | <code root>ls -sh</code> | + | |
- | total 20M | + | <code root>chmod 777 /home/proxy/cache</code> |
- | 20M cache | + | <code root>chown proxy:proxy /home/proxy/cache</code> |
- | + | ||
- | <code root>chmod 777 /home/cache</code> | + | |
- | <code root>chown proxy:proxy /home/cache</code> | + | |
===Configuration de squid3 pour la mise en place du cache=== | ===Configuration de squid3 pour la mise en place du cache=== | ||
Ligne 305: | Ligne 301: | ||
http_access allow manager localhost | http_access allow manager localhost | ||
http_access deny manager | http_access deny manager | ||
- | http_access deny !Safe_ports | + | http_access deny !safeports |
- | http_access deny CONNECT !SSL_ports | + | http_access deny CONNECT !sslports |
http_access allow localhost | http_access allow localhost | ||
http_access allow localnet | http_access allow localnet | ||
- | http_access deny lan | + | http_access allow lan |
- | #http_access allow lan | + | |
http_access deny all | http_access deny all | ||
Ligne 324: | Ligne 319: | ||
memory_replacement_policy heap GDSF | memory_replacement_policy heap GDSF | ||
cache_replacement_policy heap LFUDA | cache_replacement_policy heap LFUDA | ||
- | cache_dir aufs /home/cache 20000 14 256 | + | cache_dir aufs /home/proxy/cache 20000 14 256 |
maximum_object_size 128000 KB | maximum_object_size 128000 KB | ||
cache_swap_low 95 | cache_swap_low 95 | ||
Ligne 331: | Ligne 326: | ||
# LOGFILE PATHNAMES AND CACHE DIRECTORIES | # LOGFILE PATHNAMES AND CACHE DIRECTORIES | ||
# ================================== | # ================================== | ||
- | |||
access_log /var/log/squid3/access.log | access_log /var/log/squid3/access.log | ||
- | cache_log /var/log/squid/cache.log | + | cache_log /var/log/squid3/cache.log |
cache_store_log none | cache_store_log none | ||
logfile_rotate 5 | logfile_rotate 5 | ||
Ligne 388: | Ligne 382: | ||
httpd_suppress_version_string on | httpd_suppress_version_string on | ||
visible_hostname routeur-debian | visible_hostname routeur-debian | ||
- | |||
ftp_list_width 32 | ftp_list_width 32 | ||
ftp_passive on | ftp_passive on | ||
Ligne 397: | Ligne 390: | ||
dns_timeout 10 seconds | dns_timeout 10 seconds | ||
- | dns_nameservers 192.168.0.1 212.27.40.240 212.27.40.241 # DNS Server | + | dns_nameservers 192.168.0.1 212.27.40.240 212.27.40.241 |
# MISCELLANEOUS | # MISCELLANEOUS | ||
# =========== | # =========== | ||
- | |||
memory_pools off | memory_pools off | ||
client_db off | client_db off | ||
Ligne 408: | Ligne 400: | ||
pipeline_prefetch on | pipeline_prefetch on | ||
offline_mode off | offline_mode off | ||
- | |||
- | #Marking ZPH | ||
- | #========== | ||
- | zph_mode tos | ||
- | zph_local 0x04 | ||
- | zph_parent 0 | ||
- | zph_option 136 | ||
</code> | </code> | ||
Ligne 487: | Ligne 472: | ||
* Tout en observant côté passerelle (i.e. serveur squid) | * Tout en observant côté passerelle (i.e. serveur squid) | ||
- | le fichier /var/log/squid3/access.logdes logs d'accès : | + | le fichier /var/log/squid3/access.log des logs d'accès : |
<code root> | <code root> |