Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Squidguard abrindo pagina de erro sgerror.php em http://127.0.0.1 - [RESOLVIDO]

    Scheduled Pinned Locked Moved Portuguese
    5 Posts 3 Posters 1.2k 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.
    • E
      edilinhares
      last edited by

      Olá,

      Configurei o squidguard com a blacklist, mas ao acessar uma página bloqueada, está tentando redirecionar para a sgerror.php no meu computador local, e não no servidor pfsense…

      https://127.0.0.1/sgerror.php?url=403%20&a=192.168.2.160&n=192.168.2.160&i=suporte.ti&s=default&t=none&u=http://www.g1.com/

      Tentei adicionar uma pagina externa como teste, mas não funciona...
      Tentei editar o arquivo "/usr/local/pkg/squidguard_configurator.inc" modificando "define('REDIRECT_BASE_URL', '/sgerror.php');" para "define('REDIRECT_BASE_URL', 'https://192.168.2.1/sgerror.php');" mas também não funcionou...

      Alguém sabe como mudar isso?

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

        Boa tarde!

        Volte as configurações que vc fez e deixe padrão: (define('REDIRECT_BASE_URL', '/sgerror.php');).
        Edite novamente o arquivo "/usr/local/pkg/squidguard_configurator.inc"

        Procure a linha abaixo (No meu está como linha 1242):

        $guiip = (!empty($squidguard_config[F_CURRENT_LAN_IP])) ? $squidguard_config[F_CURRENT_LAN_IP] : '127.0.0.1'

        Altere para

        $guiip = (!empty($squidguard_config[F_CURRENT_LAN_IP])) ? $squidguard_config[F_CURRENT_LAN_IP] : '192.168.2.1';

        Reinicie o pfsense e teste novamente

        1 Reply Last reply
        Reply Quote 0
        • danilosv.03D
          danilosv.03
          last edited by

          Não esquece de adicionar o https:// no seu script também.


          :)
          |E-mail: danilosv.03@gmail.com
          |Skype: danilosv.03


          1 Reply Last reply
          Reply Quote 0
          • E
            edilinhares
            last edited by

            Davidson e Danilo, perfeito

            Agora está funcionando, obrigado mesmo pelo help, valeu

            Edson Linhares

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

              Boa tarde!

              Edita o tópico e marca como [RESOLVIDO].  :)

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy