squid as proxy web cacher

Kernels & Hardware, configuring network, installing services

squid as proxy web cacher

Postby Cyrille » 2018-04-19 18:08

Hi
I'm trying to configure squid to use it ONLY AS a web cacher to optimized my intranet
It's working correctly for the html pages and the images but don't seem to put in cache the PDF files and FLASH objects.
I'm looking for the reason on the web but there is not really many how-to which explain this use of squid
So I'm looking for documentation or config file examples to analyze how configure squid to do that

Running on debian stretch, this is my actual file configuration
Code: Select all
http_port 3128

# LES ACL
acl SSL_ports port 443
acl Safe_ports port 80      # http
acl Safe_ports port 21      # ftp
acl Safe_ports port 443      # https
acl Safe_ports port 70      # gopher
acl Safe_ports port 210      # wais
acl Safe_ports port 1025-65535   # unregistered ports
acl Safe_ports port 280      # http-mgmt
acl Safe_ports port 488      # gss-http
acl Safe_ports port 591      # filemaker
acl Safe_ports port 777      # multiling http
acl LAN src 192.168.1.0/255.255.255.0
acl CONNECT method CONNECT

# HTTP_ACCESS
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access allow LAN
http_access deny all

cache_dir ufs /var/spool/squid 1000 16 256
coredump_dir /var/spool/squid

refresh_pattern ^ftp:      1440   20%   10080
refresh_pattern ^gopher:   1440   0%   1440
refresh_pattern -i (/cgi-bin/|\?) 0   0%   0
refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880
refresh_pattern .      0   20%   4320

cache_effective_user proxy
cache_effective_group proxy


Have you any ideas ? Thx ;)
DEBIAN Testing/ SID amd64
DEBIAN Stretch on HP Proliant ML 310e Gen 8 v2
Cyrille
 
Posts: 10
Joined: 2008-11-27 16:21
Location: FRANCE

Return to System configuration

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable