martes, 10 de noviembre de 2009

4 Configurando x fin el proxy-cache Squid

Proxy * le agregaremos mas opciones segun vallamos aprendiendo mas

#Instalacion sudo apt-get install squid

#archivo1 /etc/squid/squid.conf
#segun esta configuracion se deben crear
#/etc/squid/plus.lst #Para las ip Permitidas
#/etc/squid/list.lst #Para los dominios Bloqueados
#servicio /etc/init.d/squid {stop|start|restart}

BackUp
*******************************************************
visible_hostname Millenium.internet
http_port 3128 transparent
cache_mem 128 MB
cache_dir aufs /angel/cache 30000 16 64
maximum_object_size 65535 KB

ie_refresh on

offline_mode on

#Controlde acceso

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl redlocal src "/etc/squid/plus.lst"
acl nopaginas dstdom_regex "/etc/squid/sites.lst"
acl bloquear urlpath_regex -i \.exe$ \.wav$ \.zip$ \.rar$ \.mov$ \.avi$ \.iso$ \.msi$ \.flv$
acl useragent browser -i ^application/NSPlayer$
acl useragent browser -i ^application/player$
acl useragent browser -i ^application/Windows-Media-Player$
acl useragentq rep_mime_type ^video
acl useragentq rep_mime_type ^audio

http_access deny useragent
http_access deny useragentq
http_access deny nopaginas
http_access deny bloquear
http_access allow redlocal
http_access deny all
******************************************************

haber px cuantos entraron?