leomorenno
(usa Debian)
Enviado em 31/01/2014 - 13:42h
squid.conf
acl all src all
acl localhost src 127.0.0.1/32
##
### Meus controles de acesso ###
acl negados url_regex sexy sexo
[*****] playboy facebook globo
acl liberados url_regex libsexy computador sexoesaude
acl downloads urlpath_regex \.avi$ \.avi? \.mp3$ \.mp3? \.mp4$ \.mp4?
###
#### Http_access ####
http_access allow liberados
http_access deny negados
http_access deny downloads
#http_access allow usuarios####
http_access allow localhost
http_access allow all
##### Configuracoes Gerais #####
http_port 3128
cache_mem 256 MB
maximum_object_size_in_memory 4 MB
cache_dir ufs /var/spool/squid 3000 16 256
access_log /var/log/squid/access.log squid
cache_mgr leomorreno@gmail.com
visible_hostname proxy
error_directory /usr/share/squid/errors/Portuguese
httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
-------------------------------------------------
rc.local
#!/bin/sh -e
#
#rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
iptables -A FORWARD -p tcp --dport 80 -j DROP
iptables -A FORWARD -p tcp --dport 443 -j DROP
exit 0
~
~
---------------------
e dentro de /etc/init.d/rc.firewall que em um tutorial me mandaram criar não tem mais nada