You want to use the ip or iplist directives in squidGuard to block ranges.
IP addresses and/or ranges (multiple): ip xxx.xxx.xxx.xxx [...] or ip xxx.xxx.xxx.xxx/nn [...] or ip xxx.xxx.xxx.xxx/mmm.mmm.mmm.mmm [...] or ip xxx.xxx.xxx.xxx-yyy.yyy.yyy.yyy [...] where: xxx.xxx.xxx.xxx is an IP address (host or net, i.e. 10.11.12.13 or 10.11.12.0), /nn a net prefix (i.e. /23), mmm.mmm.mmm.mmm is a netmask (i.e. 255.255.254.0) and yyy.yyy.yyy.yyy is a host address (must be >= xxx.xxx.xxx.xxx) IP address/range list (single): iplist filename where: filename is either a path relative to dbhome or an absolute path (i.e. /full/path) to a database file. the iplist file format is simply addresses and/or networks separated by a newline as above but without the ip keyword. Thus an iplist for all the private addresses could look something like (Though the preferred use of "iplist" over "ip" is for long lists of WS/PC addresses primarily to reduce the size of the configuration file): 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 - Nick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Holdowanski Sent: Friday, March 17, 2006 5:48 AM To: [email protected] Subject: Re: IP range - how to block in squidGuard? At 16:10 2006-03-16, you wrote: >On Thu, 16 Mar 2006 14:50:38 +0100, Tomasz wrote: > > >URLs, but whole IP ranges? I see that most porn sites are in the same > >Why not block all IPs full stop, then only allow the ones you >know are safe? Thanks for the answer, but I can`t do that. I work in a library with an internet cafe, so it`s rather impossible to make a list of "good" IPs and not spend whole days only adding entries requested by users. I need to block specific IPs and IP ranges - the list of servers hosting adult content is somewhat shorter than "safe list" in this case. The question is if SquidGuard can do it, and how. Any othes suggestions? Thanks in advance. Regards, Tomasz. mailto:[EMAIL PROTECTED] The only thing worth waiting for is a world-wide disaster. --------------------- Confidentiality note The information in this email and any attachment may contain confidential and proprietary information of VistaPrint and/or its affiliates and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may cause liability. In case you have received this message due to an error in transmission, please notify the sender immediately and to delete this email and any attachment from your system. ---------------------
