ACLs por IP [RESOLVIDO]

1. ACLs por IP [RESOLVIDO]

Patrick Pesegodinski
patrickpfp

(usa CentOS)

Enviado em 20/03/2013 - 14:28h

Pessoal, estou com um conflito de regras em meu squid. Estou fazendo algumas por IP. Tenho uma regras que libera para 3 ips a internet mas bloqueia alguns sites, mas ao colocar mais 2 regras, com outros ips, o squid está simplesmente ignorando a regra anterior. Já alterei as ordens e nada, segue meu arquivo de squid se alguem puder me ajudar:

[quote]
# Squid Configuracoes

http_port 3128 transparent
visible_hostname Srvfwl

acl manager proto cache_object
acl localhost src 192.168.1.0/24
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

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 CONNECT method CONNECT

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports


# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
acl redelocal src 192.168.1.2-192.168.1.5
acl livre src 192.168.1.30
acl block src 192.168.1.10-192.168.1.20

acl bloqueio url_regex -i "/etc/squid/regras/bloqueados"

http_access allow livre
http_access allow redelocal !bloqueio
http_access deny block

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?
# Uncomment and adjust the following to add a disk cache directory.

cache_dir ufs /var/spool/squid 512 16 256
# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
[quote]


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts