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

    ERRO AO REDIRECIONAR DE UM SITE BLOQUEADO PARA UM SITE LIBERADO

    Scheduled Pinned Locked Moved Portuguese
    4 Posts 2 Posters 744 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.
    • F
      filipesilva
      last edited by

      Pessoal, boa tarde ! ja procurei em diversos lugares mas não obtive sucesso,

      estou com uma bronca para redirecionar urls de sites que eu configurei como bloqueado, porque o squid está colocando no endereço do link o /IPdamaquina/ – GET entao ele não consegue ser redirecionado,

      alguem sabe como tirar isso ? segue em anexo as imagens

      Obrigado a todos !
      ![erro pfsense2.png](/public/imported_attachments/1/erro pfsense2.png)
      ![erro pfsense2.png_thumb](/public/imported_attachments/1/erro pfsense2.png_thumb)
      ![erro pfsense.png](/public/imported_attachments/1/erro pfsense.png)
      ![erro pfsense.png_thumb](/public/imported_attachments/1/erro pfsense.png_thumb)

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

        https://forum.pfsense.org/index.php?topic=91820.msg508168

        Peguei deste tópico e fiz um ajuste:

        Procure no arquivo sgerror.php pela linha:

        if ($cl['u'])        $str[] = " **URL:** {$cl['u']} 
        ";
        

        e troque por:

        if ($cl['u'])        { $str[] = " **URL:** ".preg_replace("/({$cl['a']}|{$cl['i']}).--GET/","",$cl['u'])."
        "; }
        

        Faça uma copia do arquivo antes!

        Tomas @ 2W Consultoria

        1 Reply Last reply Reply Quote 0
        • F
          filipesilva
          last edited by

          Obrigado amigo, vou tentar realizar o teste e em breve retorno com novidades !

          Agradecido !

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

            Eu já ajustei 3 pfSense;

            Tomas @ 2W Consultoria

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