Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid e password alfanumerica bypassa autenticazione internet

    Italiano
    2
    9
    6.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tinex
      last edited by

      Ho installato e configurato il pacchetto squid versione 2.7.8_1 con accesso ad internet tramite autenticazione locale.
      Ho poi creato gli utenti di prova e configurato il browser per utilizzare il proxy.
      Gli utenti locali sono:
      usr:    test1
      pwd:  test01
      e
      user: test2
      pwd: test02

      Quando tento di accedere ad internet, mi viene richiesto di inserire le credenziali, e fin qui tutto funziona bene ,
      ma il problema strano è che se come password di test1 oppure di test2 inserisco solo la parte composta dalle lettere , quindi "test"
      mi fa accedere ugualmente ad internet. Come se non cosiderasse il resto della password oppure non facesse un controllo per intero.
      Se invece come password inserisco solo le lettere o solo i numeri funziona bene, ma se la password è alfanumerica sembra avere qualche problema.
      Ho provato a cercare nei forum ma nessun topic parla di questo strano "effetto". Oppure sbaglio qualcosa io ?
      Grazie

      squid.GIF
      squid.GIF_thumb

      1 Reply Last reply Reply Quote 0
      • T
        tinex
        last edited by

        Facendo altri test , ho rilevato che il controllo della password avviene sui primi 9 caretteri , come se ci fosse un limite alla lunghezza della password .
        Può essere ?!?!?  ???
        Grazie

        1 Reply Last reply Reply Quote 0
        • T
          tinex
          last edited by

          Qualcuno di voi ha mai avuto un problema simile ?
          Grazie

          1 Reply Last reply Reply Quote 0
          • Z
            Zanotti
            last edited by

            Provo a fare un test domani mattina e ti faccio sapere.

            1 Reply Last reply Reply Quote 0
            • T
              tinex
              last edited by

              Grazie , attendo con curiosità il tuo test.

              1 Reply Last reply Reply Quote 0
              • Z
                Zanotti
                last edited by

                Ho fatto le mie prove ma non ho riscontrato alcun problema, sia che le password fossero corte o lunghe ed anche complesse ma non mi ha mai dato un problema. Su quale interfaccia attesti squid? Per caso hai abilitato il proxy trasparente?

                1 Reply Last reply Reply Quote 0
                • T
                  tinex
                  last edited by

                  Ciao Zanotti ,
                  ti posto tutte le configurazioni che ho fatto per il proxy. In sostanza blocco della porta 80 su lan. Attivazione squid su interfaccia LAN in modalità non trasparente, sulla porta 3128. Autenticazione locale.
                  Nota l'indirizzo ip che vedi su Unrestricted IP in Access Control , non è il pc da ho fatto i test. :D
                  Forse sbaglio io a impostare qualcosa oppure è il servizio squid che non ricarica bene la lista degli account , ma ho riprovato a creare un nuovo utente :
                  user: backtrack
                  pass: backtrack123
                  Provando ad accedere ad internet , se inserisco la pwd sino a "backtrack" riesco a navigare.
                  Ho pensato che sia la cache di i.e. e l'ho svuotata , ma nulla da fare.
                  PS: non ho mai riavviato pfsense dopo l'aggiunta dell'utente backtrack. Che sia il caso ?

                  Ti posto anche dei log di access.log proprio sul punto in cui accede l'utente backtrack

                  1268477275.197    134 192.168.1.2 TCP_MISS/200 6056 GET http://www.google.it/ backtrack DIRECT/74.125.43.104 text/html
                  1268477275.734      0 192.168.1.2 TCP_NEGATIVE_HIT/204 283 GET http://clients1.google.it/generate_204 backtrack NONE/- text/html
                  1268477275.899     83 192.168.1.2 TCP_MISS/204 365 GET http://www.google.it/csi? backtrack DIRECT/74.125.43.104 text/html
                  1268477349.834      0 192.168.1.2 TCP_DENIED/407 1729 GET http://www.google.it/ - NONE/- text/html
                  1268477390.560      0 192.168.1.2 TCP_DENIED/407 1729 CONNECT urs.microsoft.com:443 - NONE/- text/html
                  1268477390.585      0 192.168.1.2 TCP_DENIED/407 1729 CONNECT urs.microsoft.com:443 - NONE/- text/html
                  1268477390.883      0 192.168.1.2 TCP_DENIED/407 1729 CONNECT urs.microsoft.com:443 - NONE/- text/html
                  1268477390.903      0 192.168.1.2 TCP_DENIED/407 1729 CONNECT urs.microsoft.com:443 - NONE/- text/html
                  1268477422.696      0 192.168.1.2 TCP_DENIED/407 1729 GET http://www.google.it/ - NONE/- text/html
                  1268477428.562      0 192.168.1.2 TCP_DENIED/407 1729 GET http://www.google.it/ backtrack NONE/- text/html
                  1268477436.512      1 192.168.1.2 TCP_DENIED/407 1729 GET http://www.google.it/ backtrack NONE/- text/html
                  1268477441.700    304 192.168.1.2 TCP_MISS/200 6083 GET http://www.google.it/ backtrack DIRECT/74.125.43.106 text/html
                  1268477441.939      0 192.168.1.2 TCP_MEM_HIT/200 733 GET http://www.google.com/images/mgyhp_sm.png backtrack NONE/- image/png
                  1268477442.194      0 192.168.1.2 TCP_NEGATIVE_HIT/204 284 GET http://clients1.google.it/generate_204 backtrack NONE/- text/html
                  1268477442.500    192 192.168.1.2 TCP_MISS/204 365 GET http://www.google.it/csi? backtrack DIRECT/74.125.43.106 text/html
                  1268477496.030      0 192.168.1.2 TCP_DENIED/407 1729 GET http://www.google.it/ - NONE/- text/html
                  1268477502.691      2 192.168.1.2 TCP_DENIED/407 1729 GET http://www.google.it/ backtrack NONE/- text/html
                  1268477506.792    259 192.168.1.2 TCP_MISS/200 6003 GET http://www.google.it/ backtrack DIRECT/74.125.43.147 text/html
                  1268477507.311      0 192.168.1.2 TCP_NEGATIVE_HIT/204 284 GET http://clients1.google.it/generate_204 backtrack NONE/- text/html
                  1268477507.566    158 192.168.1.2 TCP_MISS/204 365 GET http://www.google.it/csi? backtrack DIRECT/74.125.43.147 text/html
                  
                  

                  e ti posto anche la configurazione del squid.conf

                  # Do not edit manually !
                  http_port 192.168.1.1:3128
                  icp_port 0
                  
                  pid_filename /var/run/squid.pid
                  cache_effective_user proxy
                  cache_effective_group proxy
                  error_directory /usr/local/etc/squid/errors/Italian
                  icon_directory /usr/local/etc/squid/icons
                  visible_hostname localhost
                  cache_mgr tinex1@tin.it
                  access_log /var/squid/log/access.log
                  cache_log /var/squid/log/cache.log
                  cache_store_log none
                  logfile_rotate 60
                  shutdown_lifetime 3 seconds
                  # Allow local network(s) on interface(s)
                  acl localnet src  192.168.1.0/255.255.255.0
                  uri_whitespace strip
                  
                  cache_mem 8 MB
                  maximum_object_size_in_memory 32 KB
                  memory_replacement_policy heap GDSF
                  cache_replacement_policy heap LFUDA
                  cache_dir aufs /var/squid/cache 3000 16 256
                  minimum_object_size 0 KB
                  maximum_object_size 4 KB
                  offline_mode off
                  cache_swap_low 90
                  cache_swap_high 95
                  
                  # No redirector configured
                  
                  # Setup some default acls
                  acl all src 0.0.0.0/0.0.0.0
                  acl localhost src 127.0.0.1/255.255.255.255
                  acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901  3128 1025-65535
                  acl sslports port 443 563 
                  acl manager proto cache_object
                  acl purge method PURGE
                  acl connect method CONNECT
                  acl dynamic urlpath_regex cgi-bin \?
                  acl unrestricted_hosts src "/var/squid/acl/unrestricted_hosts.acl"
                  cache deny dynamic
                  http_access allow manager localhost
                  
                  http_access deny manager
                  http_access allow purge localhost
                  http_access deny purge
                  http_access deny !safeports
                  http_access deny CONNECT !sslports
                  
                  # Always allow localhost connections
                  http_access allow localhost
                  
                  request_body_max_size 0 KB
                  reply_body_max_size 0 allow all
                  delay_pools 1
                  delay_class 1 2
                  delay_parameters 1 -1/-1 -1/-1
                  delay_initial_bucket_level 100
                  delay_access 1 allow all
                  
                  # These hosts do not have any restrictions
                  http_access allow unrestricted_hosts
                  auth_param basic program /usr/local/libexec/squid/ncsa_auth /var/etc/squid.passwd
                  auth_param basic children 5
                  auth_param basic realm Please enter your credentials to access the proxy
                  auth_param basic credentialsttl 60 minutes
                  acl password proxy_auth REQUIRED
                  http_access allow unrestricted_hosts
                  http_access allow password localnet
                  # Default block all to be sure
                  http_access deny all
                  

                  squid_sett_1.GIF
                  squid_sett_1.GIF_thumb
                  squid_sett_2.GIF
                  squid_sett_2.GIF_thumb
                  squid_sett_3.GIF
                  squid_sett_3.GIF_thumb
                  squid_sett_4.GIF
                  squid_sett_4.GIF_thumb
                  squid_sett_5.GIF
                  squid_sett_5.GIF_thumb
                  squid_sett_6.GIF
                  squid_sett_6.GIF_thumb

                  1 Reply Last reply Reply Quote 0
                  • T
                    tinex
                    last edited by

                    siccome non mi stavano tutti gli allegati ti posto anche le regole della LAN.  :D

                    lan_rules_squid.GIF
                    lan_rules_squid.GIF_thumb

                    1 Reply Last reply Reply Quote 0
                    • T
                      tinex
                      last edited by

                      io ho riprovato a rivedere la configurazione , ma mi da sempre lo stesso risultato.
                      Non è che per sbaglio ho le regole sulla LAN sbagliate?!?!?
                      Potete dirmi altri accorgimenti o verifiche da fare?

                      Grazie :'(

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.