The squid server is alone here.

if i use this config :

# nom de la machine
visible_hostname moi

# niveau d'information en cas d'erreur
debug_options ALL, 9

#============== CREATION DES DROITS
#       nom             type            ip/masque
acl     all             src             0.0.0.0-255.255.255.255
acl     white           dstdomain       "/etc/squid/white"

#============== GESTION DES DROITS
#               relation        nom
http_access     allow           white
http_access     deny            !white


#============== GESTION DES PORTS
#               host:port
http_port       moi:81                  
icp_port        0

#==============  GESTION DU CACHE
# mémoire vive utilisé en cache
cache_mem 100 MB
# emplacement du cache avec taille en Mo avec 16 répertoires 
# et 256 sous répertoires 
# et la taille maximum de fichier a mettre en cache 
cache_dir ufs /var/spool/squid/ 100 16 256 max-size=1024

#============== GESTION DU CACHE PAR TYPE DE FICHIER
# ici il y a des expressions régulières puis la durée minimum, 
# le % de temps accpetable
#               type    min     %       max     options
refresh_pattern -i \.gif$ 1     50%     2       override-expire reload-into-ims
ignore-reload
refresh_pattern -i \.jpg$ 3000  20%     6000    override-expire reload-into-ims
ignore-reload
refresh_pattern -i \.swf$ 3000  20%     6000    override-expire reload-into-ims
ignore-reload
refresh_pattern -i \.txt$ 3000  20%     6000    override-expire reload-into-ims
ignore-reload
refresh_pattern -i \.html$ 3    20%     6       override-expire reload-into-ims
ignore-reload
refresh_pattern -i \.js$ 3      20%     6       override-expire reload-into-ims
ignore-reload

#============== LOGS
# type de log           emplacement
access_log              /var/log/squid/access.log
cache_log               /var/log/squid/cache.log
cache_store_log         /var/log/squid/store.log
cache_swap_log          /var/log/squid/swap.log
useragent_log           /var/log/squid/useragent.log
referer_log             /var/log/squid/referer.log
emulate_httpd_log       on

#============== LES REQUETES
# Pour limiter la taille de l'entête HTTP et éviter les 
# attaques de type DOS o
request_header_max_size 10 KB
# Pour éviter des données POST ou PUT
request_body_max_size   0 KB

#============== LES TIMEOUT
# fermeture immédiate des demiconnections
half_closed_clients on

#============== Page d'erreur
# ici la connection est coupé directemennt
#deny_info      TCP_RESET       white

pid_filename /var/run/squid2.pid

it works nicely when i config my browser to use it as proxy.

But how to force a PC outside my intranet to use it as proxy.

-- 
View this message in context: 
http://www.nabble.com/Squid-proxy-tp22369482p22376190.html
Sent from the Squid - Users mailing list archive at Nabble.com.

Reply via email to