Search squid archive

Re: Creating a file of banned IP#s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



great, thanks for your help. :-)

Amos Jeffries-2 wrote:
> 
> -ronin- wrote:
>> Much like the fullspeed.dat file, where you can list hosts/domains to
>> which
>> you want squid to allow undelayed access....
>> 
>> # fullspeed.dat
>> 
>> hostname.com
>> anotherhost.com
>> yetanotherhost.net
>> 
>> .... and then in the squid.conf file, I would add a rule as follows:
>> 
>> acl fullspeed dstdomain "/etc/squid/fullspeed.dat"
>> 
>> 
>> Can I also create a file for single IP#s? I want to use them in an access
>> rule, e.g.
>> 
>> # bannedips.dat
>> 123.4.5.66
>> 234.1.2.34
>> 189.2.1.45
>> ....
>> ....
>> 
>> And then include a line in squid.conf:
>> 
>> acl banned_clients "/etc/squid/bannedips.dat"
>> http_access deny banned_clients
>> 
>> 
>> Is this correct? Would this be the way to go about it?
> 
> Forgot to mention in the other reply...
> 
> you can do the .example.com 'wildcard' for domains this way too. And the 
> IP version still has the same ip range formats available as with entries 
> straight in squid.conf.
> 
> Amos
> -- 
> Please use Squid 2.7.STABLE3 or 3.0.STABLE8
> 
> 

-- 
View this message in context: http://www.nabble.com/Creating-a-file-of-banned-IP-s-tp18528743p18538548.html
Sent from the Squid - Users mailing list archive at Nabble.com.


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux