Search squid archive

RE: squid not using squidguard acl

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

 



On Tue, 2010-03-30 at 15:26 -0500, Johnson, S wrote:
ok, I guess I just needed to talk spell it out... I figured it out and
> in the name of documentation here's how:
>
> in the dansguardian.conf change the line on forwardonfor to
> forwardedfor = on

I am facing problem with squidGuard.. I am not using dansguardian

>
> in squid.conf add the following to the acl:
> follow_x_forwarded_for allow localhost
> acl_uses_indirect_client on
> delay_pool_uses_indirect_client on
> log_uses_indirect_client on
>
> Restart both dansguardian and squid and then you'll see the IP address
> showing in the squid/access.log
>
> This also fixed my issue with the AUP session.
>
> -----Original Message-----
> From: Muhammad Sharfuddin [mailto:m.sharfuddin@xxxxxxxxxx]
> Sent: Tuesday, March 30, 2010 3:03 PM
> To: squid-users@xxxxxxxxxxxxxxx
> Subject:  squid not using squidguard acl
>
> squid 2.7STABLE5
> squidguard 1.4
> db berkeley 2.7
>
> all urls/domains I am trying to block via squidguard are accessible, it
> seems that squid is not using squidguard .. please help
>
> from squid.conf
>
> url_rewrite_program /usr/local/bin/squidGuard
> -c /usr/local/squidGuard/squidGuard.conf
> acl myipes src 192.168.0.233/32
> acl myipes src 192.168.0.200/32
> http_access allow nds
>
>
> from squidguard.conf
>
> dbhome /usr/local/squidGuard/db
> logdir /usr/local/squidGuard/logs
>
> dest music {
>         domainlist music/domains
>         urllist music/urls
>         }
> dest porn {
>         domainlist porn/domains
>         urllist porn/urls
>        }
> acl {
>         default {
>                pass !music !porn all
>                redirect http://192.168.0.233/block.html
>         }
>  }
>
> following is the dry run output
>
> echo "http://www.music.com 192.168.0.233/ - - GET" | squidGuard
> -c /usr/local/squidGuard/squidGuard.conf -d
> 2010-03-30 17:55:42 [5400] New setting: dbhome: /usr/local/squidGuard/db
> 2010-03-30 17:55:42 [5400] New setting:
> logdir: /usr/local/squidGuard/logs
> 2010-03-30 17:55:42 [5400] init
> domainlist /usr/local/squidGuard/db/music/domains
> 2010-03-30 17:55:42 [5400] loading
> dbfile /usr/local/squidGuard/db/music/domains.db
> 2010-03-30 17:55:42 [5400] domainlist empty, removed from memory
> 2010-03-30 17:55:42 [5400] init
> urllist /usr/local/squidGuard/db/music/urls
> 2010-03-30 17:55:42 [5400] loading
> dbfile /usr/local/squidGuard/db/music/urls.db
> 2010-03-30 17:55:42 [5400] urllist empty, removed from memory
> 2010-03-30 17:55:42 [5400] init
> domainlist /usr/local/squidGuard/db/porn/domains
> 2010-03-30 17:55:42 [5400] loading
> dbfile /usr/local/squidGuard/db/porn/domains.db
> 2010-03-30 17:55:42 [5400] domainlist empty, removed from memory
> 2010-03-30 17:55:42 [5400] init
> urllist /usr/local/squidGuard/db/porn/urls
> 2010-03-30 17:55:42 [5400] loading
> dbfile /usr/local/squidGuard/db/porn/urls.db
> 2010-03-30 17:55:42 [5400] urllist empty, removed from memory
> 2010-03-30 17:55:42 [5400] squidGuard 1.4 started (1269953742.464)
> 2010-03-30 17:55:42 [5400] squidGuard ready for requests
> (1269953742.474)
> 2010-03-30 17:55:42 [5400] source not found
> 2010-03-30 17:55:42 [5400] no ACL matching source, using default
>
> 2010-03-30 17:55:42 [5400] squidGuard stopped (1269953742.475)
>
> and nothing special in squid and squidguard logs
> --
> Regards
> Muhammad Sharfuddin | NDS Technologies Pvt Ltd | +92-333-2144823
>
> Novice: name a single major diff b/w Redhat and SUSE
> GURU:   One is Red and the other one is Green
>
>
>
--
Regards
Muhammad Sharfuddin | NDS Technologies Pvt Ltd | +92-333-2144823

Novice: name a single major diff b/w Redhat and SUSE
GURU:   One is Red and the other one is Green


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

  Powered by Linux