SquidGuard : pb de ports

Forum d'assistance et d'échange sur l'installation, la configuration, et l'utilisation des système Linux et BSD. Vous pouvez y poster vos questions concernant ces systèmes d'exploitation en faisant l'effort préalable de rechercher dans le forum, dans les manuels et les documentations que la réponse n'y figure pas.

Modérateur: modos Ixus

SquidGuard : pb de ports

Messagepar DeusLoic » 19 Avr 2006 17:22

bonjour,
j'ai installé squid et squidguard sur 1 linux (debian 3.1). Squid tout seul fonctionne tres bien, mais qd j'active squidguard, on voir avec un netstat -anpe qu'il escoute sur trop de port et surtout pas sur les bons (entre autres 3128).


voici une copie de mon /var/log/squid/cache.log :

2006/04/19 16:02:29| Starting Squid Cache version 2.5.STABLE9 for i386-debian-linux-gnu...
2006/04/19 16:02:29| Process ID 11109
2006/04/19 16:02:29| With 1024 file descriptors available
2006/04/19 16:02:29| DNS Socket created at 0.0.0.0, port 1040, FD 6
2006/04/19 16:02:29| Adding nameserver 212.27.39.135 from /etc/resolv.conf
2006/04/19 16:02:29| Adding nameserver 212.27.32.5 from /etc/resolv.conf
2006/04/19 16:02:29| helperOpenServers: Starting 4 'squidGuard' processes
2006-04-19 16:02:29 [11110] (squidGuard): can't write to logfile /var/log/squid/squidGuard.log
2006-04-19 16:02:29 [11110] init expressionlist /var/lib/squidguard/db/adult/expressions
2006-04-19 16:02:29 [11110] init urllist /var/lib/squidguard/db/fun/urls
2006-04-19 16:02:29 [11110] loading dbfile /var/lib/squidguard/db/fun/urls.db
2006-04-19 16:02:29 [11110] Error db_open: Permission denied
2006-04-19 16:02:29 [11111] (squidGuard): can't write to logfile /var/log/squid/squidGuard.log
2006-04-19 16:02:29 [11111] init expressionlist /var/lib/squidguard/db/adult/expressions
2006-04-19 16:02:29 [11111] init urllist /var/lib/squidguard/db/fun/urls
2006-04-19 16:02:29 [11111] loading dbfile /var/lib/squidguard/db/fun/urls.db
2006-04-19 16:02:29 [11111] Error db_open: Permission denied
2006-04-19 16:02:29 [11112] (squidGuard): can't write to logfile /var/log/squid/squidGuard.log
2006-04-19 16:02:29 [11112] init expressionlist /var/lib/squidguard/db/adult/expressions
2006-04-19 16:02:29 [11112] init urllist /var/lib/squidguard/db/fun/urls
2006-04-19 16:02:29 [11112] loading dbfile /var/lib/squidguard/db/fun/urls.db
2006-04-19 16:02:29 [11112] Error db_open: Permission denied
2006-04-19 16:02:29 [11113] (squidGuard): can't write to logfile /var/log/squid/squidGuard.log
2006-04-19 16:02:29 [11113] init expressionlist /var/lib/squidguard/db/adult/expressions
2006-04-19 16:02:29 [11113] init urllist /var/lib/squidguard/db/fun/urls
2006-04-19 16:02:29 [11113] loading dbfile /var/lib/squidguard/db/fun/urls.db
2006-04-19 16:02:29 [11113] Error db_open: Permission denied
2006/04/19 16:02:29| User-Agent logging is disabled.
2006/04/19 16:02:29| Referer logging is disabled.
2006/04/19 16:02:29| Unlinkd pipe opened on FD 15
2006/04/19 16:02:29| Swap maxSize 102400 KB, estimated 7876 objects
2006/04/19 16:02:29| Target number of buckets: 393
2006/04/19 16:02:29| Using 8192 Store buckets
2006/04/19 16:02:29| Max Mem size: 10240 KB
2006/04/19 16:02:29| Max Swap size: 102400 KB
2006/04/19 16:02:29| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2006/04/19 16:02:29| Rebuilding storage in /var/spool/squid (DIRTY)
2006/04/19 16:02:29| Using Least Load store dir selection
2006/04/19 16:02:29| Current Directory is /
2006/04/19 16:02:29| Loaded Icons.
2006/04/19 16:02:30| Accepting HTTP connections at 0.0.0.0, port 3128, FD 17.
2006/04/19 16:02:30| HTCP Disabled.
2006/04/19 16:02:30| WCCP Disabled.
2006/04/19 16:02:30| Ready to serve requests.
2006/04/19 16:02:30| WARNING: redirector #1 (FD 8) exited
2006/04/19 16:02:30| WARNING: redirector #2 (FD 9) exited
2006/04/19 16:02:30| Too few redirector processes are running
FATAL: The redirector helpers are crashing too rapidly, need help!

Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
CPU Usage: 0.170 seconds = 0.140 user + 0.030 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 373
Memory usage for squid via mallinfo():
total space in arena: 2113 KB
Ordinary blocks: 2041 KB 2 blks
Small blocks: 0 KB 0 blks
Holding blocks: 204 KB 1 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 72 KB
Total in use: 2245 KB 106%
Total free: 72 KB 3%

Si vous avez une idee, n'hesitez pas !! J'ajoute que j'utilise un firewall, mais pour l'instant tous les ports sont ouverts.

Merci

DeusLoïc
DeusLoic
Matelot
Matelot
 
Messages: 4
Inscrit le: 13 Avr 2006 11:46

Re: SquidGuard : pb de ports

Messagepar Boss » 24 Mai 2006 06:41

DeusLoic a écrit:bonjour,
j'ai installé squid et squidguard sur 1 linux (debian 3.1). Squid tout seul fonctionne tres bien, mais qd j'active squidguard, on voir avec un netstat -anpe qu'il escoute sur trop de port et surtout pas sur les bons (entre autres 3128).


voici une copie de mon /var/log/squid/cache.log :

2006/04/19 16:02:29| Starting Squid Cache version 2.5.STABLE9 for i386-debian-linux-gnu...
2006/04/19 16:02:29| Process ID 11109
2006/04/19 16:02:29| With 1024 file descriptors available
2006/04/19 16:02:29| DNS Socket created at 0.0.0.0, port 1040, FD 6
2006/04/19 16:02:29| Adding nameserver 212.27.39.135 from /etc/resolv.conf
2006/04/19 16:02:29| Adding nameserver 212.27.32.5 from /etc/resolv.conf
2006/04/19 16:02:29| helperOpenServers: Starting 4 'squidGuard' processes
2006-04-19 16:02:29 [11110] (squidGuard): can't write to logfile /var/log/squid/squidGuard.log
2006-04-19 16:02:29 [11110] init expressionlist /var/lib/squidguard/db/adult/expressions
2006-04-19 16:02:29 [11110] init urllist /var/lib/squidguard/db/fun/urls
2006-04-19 16:02:29 [11110] loading dbfile /var/lib/squidguard/db/fun/urls.db
2006-04-19 16:02:29 [11110] Error db_open: Permission denied
2006-04-19 16:02:29 [11111] (squidGuard): can't write to logfile /var/log/squid/squidGuard.log
2006-04-19 16:02:29 [11111] init expressionlist /var/lib/squidguard/db/adult/expressions
2006-04-19 16:02:29 [11111] init urllist /var/lib/squidguard/db/fun/urls
2006-04-19 16:02:29 [11111] loading dbfile /var/lib/squidguard/db/fun/urls.db
2006-04-19 16:02:29 [11111] Error db_open: Permission denied
2006-04-19 16:02:29 [11112] (squidGuard): can't write to logfile /var/log/squid/squidGuard.log
2006-04-19 16:02:29 [11112] init expressionlist /var/lib/squidguard/db/adult/expressions
2006-04-19 16:02:29 [11112] init urllist /var/lib/squidguard/db/fun/urls
2006-04-19 16:02:29 [11112] loading dbfile /var/lib/squidguard/db/fun/urls.db
2006-04-19 16:02:29 [11112] Error db_open: Permission denied
2006-04-19 16:02:29 [11113] (squidGuard): can't write to logfile /var/log/squid/squidGuard.log
2006-04-19 16:02:29 [11113] init expressionlist /var/lib/squidguard/db/adult/expressions
2006-04-19 16:02:29 [11113] init urllist /var/lib/squidguard/db/fun/urls
2006-04-19 16:02:29 [11113] loading dbfile /var/lib/squidguard/db/fun/urls.db
2006-04-19 16:02:29 [11113] Error db_open: Permission denied

2006/04/19 16:02:29| User-Agent logging is disabled.
2006/04/19 16:02:29| Referer logging is disabled.
2006/04/19 16:02:29| Unlinkd pipe opened on FD 15
2006/04/19 16:02:29| Swap maxSize 102400 KB, estimated 7876 objects
2006/04/19 16:02:29| Target number of buckets: 393
2006/04/19 16:02:29| Using 8192 Store buckets
2006/04/19 16:02:29| Max Mem size: 10240 KB
2006/04/19 16:02:29| Max Swap size: 102400 KB
2006/04/19 16:02:29| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2006/04/19 16:02:29| Rebuilding storage in /var/spool/squid (DIRTY)
2006/04/19 16:02:29| Using Least Load store dir selection
2006/04/19 16:02:29| Current Directory is /
2006/04/19 16:02:29| Loaded Icons.
2006/04/19 16:02:30| Accepting HTTP connections at 0.0.0.0, port 3128, FD 17.
2006/04/19 16:02:30| HTCP Disabled.
2006/04/19 16:02:30| WCCP Disabled.
2006/04/19 16:02:30| Ready to serve requests.
2006/04/19 16:02:30| WARNING: redirector #1 (FD 8) exited
2006/04/19 16:02:30| WARNING: redirector #2 (FD 9) exited
2006/04/19 16:02:30| Too few redirector processes are running
FATAL: The redirector helpers are crashing too rapidly, need help!

Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
CPU Usage: 0.170 seconds = 0.140 user + 0.030 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 373
Memory usage for squid via mallinfo():
total space in arena: 2113 KB
Ordinary blocks: 2041 KB 2 blks
Small blocks: 0 KB 0 blks
Holding blocks: 204 KB 1 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 72 KB
Total in use: 2245 KB 106%
Total free: 72 KB 3%

Si vous avez une idee, n'hesitez pas !! J'ajoute que j'utilise un firewall, mais pour l'instant tous les ports sont ouverts.

Merci

DeusLoïc


Salut,

Ces warnings stipulent que tu n'as pas les bon droit sur le répertoire /var/lib/db. C'est généralement le cas lorsqu'on compile les domains en domains.db avec squidGuard -C all.
Change le propriétaire en "proxy" et les permissions en "760" sur /var/lib/db et cela ira déjà mieux.
[-X Pour 1998 .... [-X
Avatar de l’utilisateur
Boss
Capitaine de vaisseau
Capitaine de vaisseau
 
Messages: 292
Inscrit le: 16 Mars 2002 01:00
Localisation: Où je vis...


Retour vers Linux et BSD (forum généraliste)

Qui est en ligne ?

Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit et 1 invité

cron