• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Jun 27, 2015, 11:13 AM

    I can use rewrite function with URL address. But I want to use with IP address and port.

    http://IP:Port/URL
    http://192.168.1.50:3030/files.php to http://192.168.1.50:3030/newfiles.php

    Is it possible?

    1 Reply Last reply Reply Quote 0
    • R
      Resolute
      last edited by Jun 29, 2015, 4:01 PM

      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
      • K
        KOM
        last edited by Jun 29, 2015, 4:39 PM

        Not that I'm aware of.

        1 Reply Last reply Reply Quote 0
        • R
          Resolute
          last edited by Jun 30, 2015, 7:26 AM

          Can we do it, with or without pfsense?

          1 Reply Last reply Reply Quote 0
          • K
            KOM
            last edited by Jun 30, 2015, 1:10 PM

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

            1 Reply Last reply Reply Quote 0
            • R
              Resolute
              last edited by Jun 30, 2015, 1:43 PM

              Can I use web server as a transparent proxy?

              1 Reply Last reply Reply Quote 0
              • K
                KOM
                last edited by Jun 30, 2015, 1:49 PM

                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 Jun 30, 2015, 1:57 PM

                  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
                  • K
                    KOM
                    last edited by Jun 30, 2015, 2:07 PM

                    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 Jun 30, 2015, 3:01 PM

                      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
                      • K
                        KOM
                        last edited by Jun 30, 2015, 3:10 PM

                        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
                        1 out of 11
                        • First post
                          1/11
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received