Visualizzazione dei risultati da 1 a 9 su 9
  1. #1

    squid autenticazione degli utenti con ncsa_auth

    ciao a tutti sto cercando di configurare squid per avere l'accesso degli utenti tramite nome utente e password!!! ho fatto un giro sul web e ho trovato varie guide ma non mi sono chiari alcuni passaggi, per esempio quello che riguarda la creazione delle password htpasswd!!!!
    come devo procedere???
    questa è la guida che ho trovato http://openskills.info/infobox.php?ID=826
    C'è sempre tempo per imparare

  2. #2
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    796
    htpasswd -c /etc/squid/squidpasswd nome_utente

    Ti chiedera` la password per quell'utente. Per i successivi utenti ometti il parametro -c, se no il file ti viene ricreato da zero. Controllane il contenuto mano a mano che crei gli utenti, dovresti trovarti una serie di record nella forma utenteassword_md5

  3. #3
    scusami ma non mi è chiaro questo passaggio: Per il file delle password il percorso è arbitrario e va creato con il comando di Apache htpasswd.
    La sua sintassi è la seguente
    htpasswd -c [nome del file] [nome dell'utente]
    come faccio a creare il file con il comando di apache???? da terminale ho provato ma non succede nulla!!! devo installare il server apache??
    scusami ma è il mio primo server e sono alle prime armi!!!
    grazie
    C'è sempre tempo per imparare

  4. #4
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    796
    Ti ho scritto il comando preciso

    La prima volta che lo lancerai fara` due cose:

    1) ti creera` il file /etc/squid/squidpasswd
    2) ci aggiungera` dentro un utente con la password che sceglierai tu

    Per creare tutti gli altri utenti dovrai lanciarlo senza l'opzione -c.

  5. #5
    cucumiaoserver@cucumiaoserver:~$ htpasswd -c /etc/squid/squidpasswd cucumiaoserver
    -bash: htpasswd: command not found
    mi da questo errore
    C'è sempre tempo per imparare

  6. #6
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    796
    Si`, direi che devi installare apache

    Se usi debian o derivate, il pacchetto con htpasswd e` apache2-utils.

  7. #7
    ok ho installato apache come mi hai consigliato, e ho creato il file htpasswd -c /etc/squid/squidpasswd cucumiaoserver
    poi sono entrato su squid.conf e ho modificato e aggiunto le seguenti righe:
    #Recommended minimum configuration:
    auth_param digest program /usr/lib/squid/ncsa_auth /etc/squid/squidpasswd
    #auth_param digest children 5
    #auth_param digest realm Squid proxy-caching web server
    #auth_param digest nonce_garbage_interval 5 minutes
    #auth_param digest nonce_max_duration 30 minutes
    #auth_param digest nonce_max_count 50
    #auth_param ntlm program <uncomment and complete this line to activate>
    #auth_param ntlm children 5
    #auth_param ntlm max_challenge_reuses 0
    #auth_param ntlm max_challenge_lifetime 2 minutes
    #auth_param ntlm use_ntlm_negotiate off
    #auth_param basic program <uncomment and complete this line>
    #auth_param basic children 5
    auth_param basic realm Squid proxy-caching web server
    auth_param basic credentialsttl 2 hours
    auth_param basic casesensitive off

    sono le acl
    acl Safe_ports port 80 443 210 119 70 20 21 1025-65535
    acl all src 0.0.0.0/0.0.0.0
    acl manager proto cache_object
    acl localhost src 127.0.0.1/255.255.255.255
    acl to_localhost dst 127.0.0.0/8
    acl SSL_ports port 443 563 # https, snews
    acl SSL_ports port 873 # rsync
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 563 # https, snews
    acl Safe_ports port 70 # gopher
    acl Safe_ports port 210 # wais
    acl Safe_ports port 1025-65535 # unregistered ports
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl Safe_ports port 631 # cups
    acl Safe_ports port 873 # rsync
    acl Safe_ports port 901 # SWAT
    acl purge method PURGE
    acl CONNECT method CONNECT
    acl autenticazione_utenti proxy_auth REQUIRED
    acl CGI urlpath_regex cgi-bin \?
    acl ASP urlpath_regex asp \?
    acl PHP urlpath_regex php \?
    acl JSP urlpath_regex jsp \?
    no_cache deny CGI ASP PHP JSP

    queste sono le http
    http_access allow manager localhost
    http_access deny manager
    # Only allow purge requests from localhost
    http_access allow purge localhost
    http_access deny purge
    # Deny requests to unknown ports
    http_access deny !Safe_ports
    # Deny CONNECT to other than SSL ports
    http_access deny CONNECT !SSL_ports

    #
    # We strongly recommend the following be uncommented to protect innocent
    # web applications running on the proxy server who think the only
    # one who can access services on "localhost" is a local user
    #http_access deny to_localhost
    #
    # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS

    # Example rule allowing access from your local networks. Adapt
    # to list your (internal) IP networks from where browsing should
    # be allowed
    #http_access allow our_networks
    http_access allow autenticazione_utenti
    #http_access allow localnet

    # And finally deny all other access to this proxy
    http_access deny all

    quando vado nel browser mi appare la finestra per logarmi ma non mi fa entrare e non capisco il motivo
    C'è sempre tempo per imparare

  8. #8
    ho provato in mille modi ma non mi si collega!!! mi appare la finestra ma non va!!!! ho provato anche a fermare dansguardian ma il problema è lo stesso!!! mi appare la finestra di login ma quando vado ad inserire la password non entra!!!!
    ho dato anche i vari permessi al file creato con apache ma nada!!!
    C'è sempre tempo per imparare

  9. #9
    ragazzi continua a sbattere la testa
    ho seguito anche questa guida guida ma continuo a non riuscire a logarmi !!! la schermata appare ma è inutile non riesco ad entrare!!!
    vi prego qualche suggerimento
    C'è sempre tempo per imparare

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.