Re: [squid-users] Blocking by ip

From: Alejandro Bednarik <alejandro_at_xtech.com.ar>
Date: Tue, 30 Sep 2008 17:18:19 -0300 (ART)

Sebastian Jaurena wrote:
> Hello, I have in mysql database a list of ip of networks what I want
> to admit connect to the proxy. Is possible verify if a new connection
> try to connect to the proxy verify if their ip is in the database and
> if is in, in that case, allow him to connect?
>
> Thanks.
>

  You can make a perl/python script to generate a file with a list of ip's
and add a acl to allow users who match that list.

acl users_ip src "/etc/squid/users_ip.acl"
http_access allow users_ip

Cheers!.

-- 
 Alejandro Bednarik
 XTech - Soluciones Linux para Empresas
 (011) 5219-0678
 alejandro_at_xtech.com.ar
Received on Tue Sep 30 2008 - 20:00:48 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 01 2008 - 12:00:03 MDT