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

    Squid, Squidguard IP address and Port in URL

    Scheduled Pinned Locked Moved Cache/Proxy
    11 Posts 2 Posters 2.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.
    • R
      Resolute
      last edited by

      Hello,

      Is there a way to use Ip address and different HTTP port (example 8000) in URL for filtering?

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Not that I'm aware of.

        1 Reply Last reply Reply Quote 0
        • R
          Resolute
          last edited by

          Can we do it, with or without pfsense?

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Isn't URL redirection something you do with your web server?

            1 Reply Last reply Reply Quote 0
            • R
              Resolute
              last edited by

              Can I use web server as a transparent proxy?

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

                Well, no of course not, but you can tell your web server to redirect requests to a specific page to another page.

                http://httpd.apache.org/docs/2.4/rewrite/remapping.html

                https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-apache-and-nginx

                https://www.linode.com/docs/websites/apache-tips-and-tricks/redirect-urls-with-the-apache-web-server

                http://www.yolinux.com/TUTORIALS/ApacheRedirect.html

                http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

                1 Reply Last reply Reply Quote 0
                • R
                  Resolute
                  last edited by

                  Thanks for you help, KOM.

                  But I have not web server.
                  I have a host PC only. There is a remote WEB Server (It's not mine)
                  I want to redirect URL request to Remote WEB server

                  For example
                  When 192.168.1.10 Ip connect to http://208.123.73.68:8080/index.php?action=post;topic=95749.0
                  I want redirect to http://208.123.73.68:8080/index.php?action=post;topic=8000.0

                  1 Reply Last reply Reply Quote 0
                  • KOMK
                    KOM
                    last edited by

                    Not possible with squid or pfSense by itself.  Squid relies on external redirectors like squidguard, so maybe you could write a small script that does the redirection you require.

                    1 Reply Last reply Reply Quote 0
                    • R
                      Resolute
                      last edited by

                      I don't have an idea how I can write script.
                      An example script will be good. If it's easy maybe a programmer help me.

                      1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM
                        last edited by

                        Either learn to do it yourself, pay someone to do it with a Bounty, or search online to see if someone already made such a thing.

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