|
|
|
![]() |
|
Strumenti |
![]() |
#21 |
Senior Member
Iscritto dal: Jan 2002
Città: Imola
Messaggi: 1116
|
No, io chiedevo con che uid e gid gira il demone squid
|
![]() |
![]() |
![]() |
#22 | |
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Quote:
__________________
Powered by Apple Macbook Pro Retina |
|
![]() |
![]() |
![]() |
#23 |
Senior Member
Iscritto dal: Jan 2002
Città: Imola
Messaggi: 1116
|
ps aux
|
![]() |
![]() |
![]() |
#24 | |
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
Quote:
![]()
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
![]() |
![]() |
![]() |
#25 | |
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Quote:
Codice:
[root@mydomain.com root]# ps aux |grep squid USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1210 0.0 0.1 5812 292 ? S 14:12 0:00 squid -D squid 1213 0.1 1.8 9828 4600 ? S 14:12 0:03 (squid) -D squid 1214 0.0 0.0 2216 164 ? S 14:12 0:00 (squidGuard) squid 1215 0.0 0.1 2216 260 ? S 14:12 0:00 (squidGuard) squid 1216 0.0 0.1 2216 260 ? S 14:12 0:00 (squidGuard) squid 1217 0.0 0.1 2216 296 ? S 14:12 0:00 (squidGuard) squid 1218 0.0 0.0 1340 156 ? S 14:12 0:00 (unlinkd) root 2417 0.0 0.2 3632 680 pts/1 S 15:12 0:00 grep squid [root@mydomain.com root]#
__________________
Powered by Apple Macbook Pro Retina |
|
![]() |
![]() |
![]() |
#26 | |
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Quote:
Tra l'altro nn capisco neanke come mai, se metto nel squidguard.conf la direttiva "default pass none", continuo liberamente a navigare... In teoria quella regola nn dovrebbe bloccarmi qlc sito ? Tnk a tutti
__________________
Powered by Apple Macbook Pro Retina |
|
![]() |
![]() |
![]() |
#27 |
Senior Member
Iscritto dal: Jan 2002
Città: Imola
Messaggi: 1116
|
Dai un chmod -R 770 delle cartelle che contengono i .db
Cmq |
![]() |
![]() |
![]() |
#28 | |
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Quote:
Adesso provo a rimuovere con rmp il pacchetto squidguard e squidguard-blacklist e riprovo a reinstallarli... P.S. Quale il file di conf d default per squidguard e dove risiede ? tnkkk
__________________
Powered by Apple Macbook Pro Retina |
|
![]() |
![]() |
![]() |
#29 |
Senior Member
Iscritto dal: Jan 2002
Città: Imola
Messaggi: 1116
|
Dai un chmod -R 770 delle cartelle che contengono i .db
Cmq squid gira come utente squid |
![]() |
![]() |
![]() |
#30 | |
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Quote:
P.S. Ke versione hai delle Berkeley DB Library ? Nel readme d SquidGuard dice ke tale pacchetto funziona sulle 2.x mentre io ho installato le 4.x
__________________
Powered by Apple Macbook Pro Retina |
|
![]() |
![]() |
![]() |
#31 |
Senior Member
Iscritto dal: Jan 2002
Città: Imola
Messaggi: 1116
|
Va bene che squid giri con user squid.
Io ho le 2.x 3.x 4.x |
![]() |
![]() |
![]() |
#32 | |
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Quote:
![]()
__________________
Powered by Apple Macbook Pro Retina |
|
![]() |
![]() |
![]() |
#33 |
Senior Member
Iscritto dal: Jan 2002
Città: Imola
Messaggi: 1116
|
Codice:
logdir /var/log/squid dbhome /var/lib/squidguard/blacklists dest porno { domainlist porn/domains urllist porn/urls } dest warez { domainlist warez/domains urllist warez/urls } dest hacking { domainlist hacking/domains urllist hacking/urls } acl { default { pass !porno !warez !hacking all redirect http://127.0.0.1/cgi-bin/squid-simpl...rgetclass=%t&u rl=%u } } |
![]() |
![]() |
![]() |
#34 |
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Ok, è = al mio....
Cmq se io definisco così la direttiva ACL dovrei avere l'effetto d "Blocco Totale d TUTTI i siti" ? Codice:
acl { default { pass none redirect http://127.0.0.1/cgi-bin/squid-simp...tclass=%t&u rl=%u }
__________________
Powered by Apple Macbook Pro Retina |
![]() |
![]() |
![]() |
#35 |
Senior Member
Iscritto dal: Jan 2002
Città: Imola
Messaggi: 1116
|
Sì
|
![]() |
![]() |
![]() |
#36 | |
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
Quote:
cat /etc/squid/squid.conf | grep cache_effective_user cat /etc/squid/squid.conf | grep cache_effective_group Puo' darsi che il tuo squid.conf sia in posizione diversa. Così capisci con che utente e gruppo gira squid: di solito è squid:squid. Poi ti sposti dentro dbhome (la dir che hai specificato un squidGuard.conf) e fai un: chown -R squid:squid ./* chmod -R 755 ./* e poi restarti squid.
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
![]() |
![]() |
![]() |
#37 | ||
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Quote:
Quote:
Ho scompattato il file dentro la dbhome ed ho lanciato (dalla mia root home "/root") il comando squidGuard -C all ma qui sembra tutto bloccato (è 30min ke aspetto). Ho fatto anke 1 prova con 1 solo file (andando dentro /var/lib/squidguard/blacklist/ads) col comando "squidGuard -C domains" ma nn mi crea lo stesso il db.... ![]()
__________________
Powered by Apple Macbook Pro Retina |
||
![]() |
![]() |
![]() |
#38 |
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
usa squidGuard -d -C all e vediamo cosa combina
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
![]() |
![]() |
![]() |
#39 | |
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Quote:
Intanto grazie d tutto...
__________________
Powered by Apple Macbook Pro Retina |
|
![]() |
![]() |
![]() |
#40 |
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Codice:
2004-08-27 09:38:18 [2275] parse error in configfile /etc/squid/squidguard.conf line 108 2004-08-27 09:38:18 [2275] going into emergency mode Codice:
acl {
__________________
Powered by Apple Macbook Pro Retina |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 17:34.