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

    Problema con Squid3-squidguard con la pagina personalizada de bloqueo

    Scheduled Pinned Locked Moved Español
    4 Posts 2 Posters 1.4k Views
    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.
    • D
      daniroquai
      last edited by

      Amigos, primero que todo saludarlos, porfin me anime a registrarme, siempre han sido de mucha ayuda y seguramente alguien podra iluminarme en estos momentos.

      Mi problema es el siguiente:

      Deje configurado que cuando alguien entre a un sitio que tengo en blacklist, le aparezca una pagina personalizada indicando que el sitio fue bloqueado por el administrador. Antes funcionaba muy bien, pero ahora que reinstale pfsense en una nueva maquina me da un extraño error:

      en vez de cargar la URL externa:  " www.ejemplo.com/sitiobloqueado.html "
      me carga esto en el navegador del usuario:  " www.ejemplo.com/sitiobloqueado.html 192.168.1.212- - GET "    (la ip que muestra es la ip del usuario y cambia en cada equipo)

      El tema es que ovbiamente el navegador me arroja "sitio no encontrado" por la URL que me genera el pfsense.
      He buscado por todos lados, he reinstalado pero nada….
      En el squidguard tengo bien configurado esa pagina, como ext found url (igual que antes) y www.ejemplo.com/sitiobloqueado.html

      nose por que le agrega de forma autonoma esa ip - - GET
      He reinstalado.. he probado de todo y nada

      ¿Alguien tiene una idea de que podria ser?

      Muy agracedido de antemano.

      1 Reply Last reply Reply Quote 0
      • belleraB
        bellera
        last edited by

        Mira en Proxy Filter / Logs el contenido de squidGuard.conf, a ver si es correcto.

        Tiene pinta de que en el configurador web veas una cosa y en squidGuard.conf tengas otra.

        http://www.squidguard.org/Doc/examples.html

        1 Reply Last reply Reply Quote 0
        • D
          daniroquai
          last edited by

          muchas gracias por reesponder…

          aqui aparece algo...

          
          		pass Dropbox Gmail !yahooMail !hotmail !blk_BL_aggressive !blk_BL_alcohol !blk_BL_chat !blk_BL_downloads !blk_BL_drugs !blk_BL_hacking !blk_BL_hobby_games-misc !blk_BL_hobby_games-online !blk_BL_hobby_gardening !blk_BL_hobby_pets !blk_BL_music !blk_BL_porn !blk_BL_radiotv !blk_BL_recreation_humor !blk_BL_ringtones !blk_BL_sex_lingerie !blk_BL_shopping !blk_BL_socialnet !blk_BL_spyware !blk_BL_tracker !blk_BL_violence !blk_BL_warez !blk_BL_weapons !blk_BL_webradio !blk_BL_webtv all
          		redirect http://192.168.1.2:8085/sgerror.php?url=blank&msg=http%3A%2F%2Fwww.dsvalpo.cl%2Ferror%2Ferrorsquid3.html&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
          		log block.log
          
          

          la pagina que quiero que cargue es www.dsvalpo.cl/error/errorsquid3.html

          ¿estara ahi el problema? veo artos caracteres raros.
          ¿se podra meter mano directamente a ese archivo? ¿como deberia quedar?

          De verdad muy agradecido por la ayuda. gracias!
          Saludos

          1 Reply Last reply Reply Quote 0
          • belleraB
            bellera
            last edited by

            Evidentemente

            http://192.168.1.2:8085/sgerror.php?url=blank&msg=http%3A%2F%2Fwww.dsvalpo.cl%2Ferror%2Ferrorsquid3.html&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
            

            no es

            www.dsvalpo.cl/error/errorsquid3.html
            

            Edita ese campo en la configuración de squidGuard vía interfase web, a ver si te genera lo que tú quieres o no.

            Redirect mode –-> ext url redirect  (enter URL)

            Redirect info -----> www.dsvalpo.cl/error/errorsquid3.html

            No tienes caracteres raros. Son parámetros que se pueden pasar a la página de error:

            http://www.squidguard.org/Doc/redirect.html

            %a Variable that holds the IP address of the client.
            %i Variable that holds the user ID (RFC931, LDAP or mySQL) or "unknown" if not available.
            %n Variable that holds the domainname of the client or "unknown" if not available.
            %p Variable that holds the REQUEST_URI, i.e. the path and the optional query string of %u, but note for convenience without the leading "/".
            %s Variable that holds the matched source group (client group) or "unknown" if no groups were matched.
            %t Variable that holds the matched destination group (target group) or "unknown" if no groups were matched.
            %u Variable that holds the requested URL.

            Que estén o no esos valores dependen de cómo sea la instalación.

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