On Saturday 30 September 2006 16:59, Tomasz Holdowanski wrote:
> What I need to do to make SquidGuard block unwanted content not only
> by domains and urls list, but by IP list?
>
> Most of porn sites are placed on relatively few servers. I tried
> writing their IPs in domains and url lists, but it doesn`t work.
> Someone told me to include iplist /path/iplist_file_name and so on,
> but it also doesn`t work.

Hi Tomasz,
In my squidguard.conf I use this acl regarding IP:
dest banip {
        domainlist /etc/squid/banip
                }
acl {
        ournetwork { pass !banip }
        }

In /etc/squid/banip we can put domain name or IPs. And don't forget to build 
the squidguard database afterwards (squidguard -C banip).

Pls note that the above example is only for rule of thumb only. The exact rule 
would be more complex.
HTH,
-- 
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial 
http://linux2.arinet.org
10:49pm up 0:46, 2.6.16.13-4-default GNU/Linux 
Let's use OpenOffice. http://www.openoffice.org

Reply via email to