Pagina 1 di 4 1 2 3 ... ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 37
  1. #1

    problema configurazione squid

    ciao a tutti

    è da stamattina che sto litigando con squid!

    dunque mi sono scaricato la versione 2.5.STABLE4

    ./configure
    ./make
    ./make install

    tutto ok..ho creato la cache ..ok

    seguendo la quickstart..giusto per testarlo...ho configurato squid.conf come mi veniva detto

    in seguito ho dato i comandi

    ./squid -z #apparentemente tutto ok
    ./squid #idem


    ora provo a collegarmi con il browser di un'altro pc all'ip della macchina du cui ho messo squid ma non mi rispone...

    ho provato anche a dare il comando

    ./Runcache che mi da il seguente output:

    output di ./Runcache

    root@criminal:/usr/local/squid/bin# ./RunCache
    Running: squid -sY >> /usr/local/squid/var/squid.out 2>&1
    ./RunCache: line 35: 909 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
    Running: squid -sY >> /usr/local/squid/var/squid.out 2>&1
    ./RunCache: line 35: 916 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
    Running: squid -sY >> /usr/local/squid/var/squid.out 2>&1
    ./RunCache: line 35: 923 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
    Running: squid -sY >> /usr/local/squid/var/squid.out 2>&1
    ./RunCache: line 35: 930 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
    Running: squid -sY >> /usr/local/squid/var/squid.out 2>&1
    ./RunCache: line 35: 937 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
    Running: squid -sY >> /usr/local/squid/var/squid.out 2>&1
    ./RunCache: line 35: 944 Aborted squid -NsY $conf >>$logdir/squid.out 2>&1
    RunCache: EXITING DUE TO REPEATED, FREQUENT FAILURES


    andando a leggere squid.out trovo

    Startup: Sun Apr 18 16:34:12 CEST 2004
    WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log
    /usr/local/squid/var/logs/cache.log: Permission denied
    messages will be sent to 'stderr'.
    2004/04/18 16:34:12| WARNING: Closing open FD 2
    2004/04/18 16:34:12| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/18 16:34:12| Process ID 820
    2004/04/18 16:34:12| With 1024 file descriptors available
    2004/04/18 16:34:12| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.011 seconds = 0.006 user + 0.005 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    Startup: Sun Apr 18 16:39:59 CEST 2004
    Startup: Sun Apr 18 16:40:09 CEST 2004
    Startup: Sun Apr 18 16:40:19 CEST 2004
    Startup: Sun Apr 18 16:40:29 CEST 2004
    Startup: Sun Apr 18 16:41:19 CEST 2004
    Startup: Sun Apr 18 16:41:29 CEST 2004
    Startup: Sun Apr 18 16:41:39 CEST 2004
    Startup: Sun Apr 18 16:41:49 CEST 2004
    Startup: Sun Apr 18 16:41:59 CEST 2004
    Startup: Sun Apr 18 16:42:09 CEST 2004


    gli errori relativi alle 16:34 li ho risolti dando all'utente nobody i permessi alla cartella log di squid (in squid.conf infatti avevo messo questo utente)

    ma quegli startup...che tipo di errore sono? a me non sembrano errori! non capisco!!

    dove ho kannato?
    "durante i primi 5 miuti di pioggia nel bosco c'è ancora asciutto, poi quando smetterà di piovere nel bosco cadranno gocce per 5 minuti.....la natura ha un'ottima memoria..."

    http://www.kumbe.it

  2. #2
    Utente di HTML.it L'avatar di osiryx
    Registrato dal
    Dec 2002
    Messaggi
    1,021
    Installa il pacchetto apposito per la tua distro, hai controllato di aver configurato per bene le varie acl ed il resto ?
    Avevo una ragazza, dovevamo sposarci, ma c'era un conflitto religioso.
    Lei era atea ed io agnostico. Non sapevamo *senza* quale religione
    educare i figli.
    -- Woody Allen

  3. #3
    io uso slackware 9.1, di conseguenza mi sono scaricato il .tar.gz che contiene il puro codice sorgente e l'ho compilato!!

    x le acl ho settato squid.conf secondo le indicazioni di QUICKSTART

    "durante i primi 5 miuti di pioggia nel bosco c'è ancora asciutto, poi quando smetterà di piovere nel bosco cadranno gocce per 5 minuti.....la natura ha un'ottima memoria..."

    http://www.kumbe.it

  4. #4
    Utente di HTML.it
    Registrato dal
    Nov 2002
    Messaggi
    556
    forse è un problema di routing!!!

  5. #5
    perchè routing?

    ho provato anche a pingare il proxy cun una macchina winzozz e risponde...anche la macchina winzozz risponde ai ping del proxy....

    entrambe sono sulla stessa clasee

    proxy 192.168.42.124
    macchina 192.168.42.3

    secondo me però squid nemmeno parte! perchè quando do il comando
    #squid

    dopo un paio di secondi il programma termina senza darmi nessun output!! è giusto?

    inoltre facendo un telnet sulla porta 3128 del proxy non mi risponde! questo mi fa pensare che squid non è avviato correttamente...o sbaglio?
    "durante i primi 5 miuti di pioggia nel bosco c'è ancora asciutto, poi quando smetterà di piovere nel bosco cadranno gocce per 5 minuti.....la natura ha un'ottima memoria..."

    http://www.kumbe.it

  6. #6
    Utente di HTML.it
    Registrato dal
    Nov 2002
    Messaggi
    556
    prova a dare il comando

    #nmap -sT localhost

    così vediamo se squid è attivo e se ascolta sulla porta 3128!!

  7. #7
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    2,894
    Guarda i logs di SQUID!

    E /var/log/messages

    E nel mio sito, nella firma, c'è del materiale su SQUID nei downloads

  8. #8
    ciao

    ho seguito passo passo la tua ottima guida x la configurazione di squid...ma ho ancora lo stesso problema!!

    nella cartella dei log di squid l'unico file che viene generato è questo:

    cache.log che dice:

    2004/04/19 10:57:13| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 10:57:13| Process ID 781
    2004/04/19 10:57:13| With 1024 file descriptors available
    2004/04/19 10:57:13| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.011 seconds = 0.008 user + 0.003 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 10:57:16| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 10:57:16| Process ID 783
    2004/04/19 10:57:16| With 1024 file descriptors available
    2004/04/19 10:57:16| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.011 seconds = 0.009 user + 0.002 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 10:57:19| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 10:57:19| Process ID 785
    2004/04/19 10:57:19| With 1024 file descriptors available
    2004/04/19 10:57:19| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.011 seconds = 0.008 user + 0.003 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 10:57:22| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 10:57:22| Process ID 787
    2004/04/19 10:57:22| With 1024 file descriptors available
    2004/04/19 10:57:22| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.011 seconds = 0.009 user + 0.002 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 10:57:25| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 10:57:25| Process ID 789
    2004/04/19 10:57:25| With 1024 file descriptors available
    2004/04/19 10:57:25| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.011 seconds = 0.008 user + 0.003 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 10:57:48| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 10:57:48| Process ID 797
    2004/04/19 10:57:48| With 1024 file descriptors available
    2004/04/19 10:57:48| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.011 seconds = 0.009 user + 0.002 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 11:18:16| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 11:18:16| Process ID 834
    2004/04/19 11:18:16| With 1024 file descriptors available
    2004/04/19 11:18:16| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.010 seconds = 0.006 user + 0.004 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 11:18:19| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 11:18:19| Process ID 836
    2004/04/19 11:18:19| With 1024 file descriptors available
    2004/04/19 11:18:19| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.009 seconds = 0.006 user + 0.003 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 11:18:22| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 11:18:22| Process ID 839
    2004/04/19 11:18:22| With 1024 file descriptors available
    2004/04/19 11:18:22| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.008 seconds = 0.004 user + 0.004 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 11:18:27| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 11:18:27| Process ID 841
    2004/04/19 11:18:27| With 1024 file descriptors available
    2004/04/19 11:18:27| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.008 seconds = 0.006 user + 0.002 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0
    2004/04/19 11:18:30| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
    2004/04/19 11:18:30| Process ID 843
    2004/04/19 11:18:30| With 1024 file descriptors available
    2004/04/19 11:18:30| Performing DNS Tests...
    FATAL: ipcache_init: DNS name lookup tests failed.
    Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
    CPU Usage: 0.008 seconds = 0.005 user + 0.003 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0


    a quanto pare ha problemi con il dns..che ho settato a 127.0.0.1 (come è spiegato nella tua guida)...

    x funzionare correttamente devo essere collegato a internet? non capisco!
    "durante i primi 5 miuti di pioggia nel bosco c'è ancora asciutto, poi quando smetterà di piovere nel bosco cadranno gocce per 5 minuti.....la natura ha un'ottima memoria..."

    http://www.kumbe.it

  9. #9
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    2,894
    Problemi col DNS

    Commenta la direttiva dns_nameservers 127.0.0.1

    Dovresti avere BIND in locale attivo

    Che DNS usi? Sono settati in /etc/resolv.conf?

  10. #10
    ho una macchina interna alla rete come dns...ma quando io testavo squid non avevo ancora configurato /etc/resolv.conf...

    ora provo e ti faccio sapere!!
    "durante i primi 5 miuti di pioggia nel bosco c'è ancora asciutto, poi quando smetterà di piovere nel bosco cadranno gocce per 5 minuti.....la natura ha un'ottima memoria..."

    http://www.kumbe.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.