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

    Squidguard url-rewrite for Google safe search strange string !

    Scheduled Pinned Locked Moved Cache/Proxy
    9 Posts 3 Posters 2.6k 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.
    • A
      Arthur
      last edited by

      i use squid+squidguard+clamAV+ssl bump, all is ok but the rewrite safe search for google don't work.

      when i search "test" in https://www.google.com then the rewrite process change the URL with "https://www.google.fr/?gws_rd=ssl#q=test&safe=active192.168.1.131/-internetGET" instead of "https://www.google.fr/?gws_rd=ssl#q=test&safe=active"

      i don't known where the string "192.168.1.131/-internetGET" com from..
      just 192.168.1.131 is my lan ip but why squid or squidguard add this in my URL ?

      i use the standard rewrite rule : s@(google..*/search?.q=.)@&safe=active@i

      any help or idea is welcome

      1 Reply Last reply Reply Quote 0
      • C
        chris4916
        last edited by

        transparent proxy ?  ???

        Jah Olela Wembo: Les mots se muent en maux quand ils indisposent, agressent ou blessent.

        1 Reply Last reply Reply Quote 0
        • A
          Arthur
          last edited by

          hi,

          no transparent proxy, i use wpad and ldap authentification on AD server.

          1 Reply Last reply Reply Quote 0
          • C
            chris4916
            last edited by

            wow  strange  :o

            did you try without MITM?

            I can't see any reason why either Squid or Squidguard would add anything to URL string.
            I wonder if it has some link with the need for keeping any reference of source client because of MITM  :-X (although it should not show in URL  ::))

            Jah Olela Wembo: Les mots se muent en maux quand ils indisposent, agressent ou blessent.

            1 Reply Last reply Reply Quote 0
            • A
              Arthur
              last edited by

              yes i try without mitm but without mitm rewrite don't work because google is ssl website.
              so URL is not change.

              i try without clamav, without LDAP authentification, same result :-(

              very very strange ! MITM bug ?

              1 Reply Last reply Reply Quote 0
              • M
                maverik1
                last edited by

                Instead of trying a re-write maybe you can the following to the dns forwarder advanced options:

                address=/google.com/216.239.38.120

                It works for me

                1 Reply Last reply Reply Quote 0
                • A
                  Arthur
                  last edited by

                  yes the dns hack work for me too for google but i want to safesearch bing.com too and i don't found the same DNS hack for bing.
                  do you have a DNS tweak for bing ?

                  1 Reply Last reply Reply Quote 0
                  • M
                    maverik1
                    last edited by

                    I am currently using the following for bing.

                    address=/bing.com/216.239.38.120

                    This just redirects it to google.

                    I couldn't get the re-writes working

                    1 Reply Last reply Reply Quote 0
                    • A
                      Arthur
                      last edited by

                      thanks for this tweak.

                      it's ok when a make a search directly from www.bing.com.

                      but i have a problem when i make a search with the integrate search bar in star menu in windows 8 or 10.
                      it 's redirect to www.google.fr but with bing.com and some URL parameters.

                      so i have and ssl certificat error that say me URL is not the same as URL in certificat.
                      and finaly i have "404. That’s an error."  message from google that's say me page not found with this parameters :-(

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