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

Patches update

Development
patch systempatches
3
13
1.4k
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.
  • J
    JonathanLee
    last edited by JonathanLee Aug 17, 2023, 12:43 AM Aug 17, 2023, 12:41 AM

    Hello fellow Netgate community members,

    I Thank you for the new patches today. That update and patch install was very smooth.

    I also now can now see my official redirect webpage when I hit a blocked URL on squid proxy. Prior to the patches it would only show an error.

    Thanks for fixing that.

    🔒 Log in to view

    Make sure to upvote

    M 1 Reply Last reply Aug 17, 2023, 2:17 AM Reply Quote 0
    • M
      michmoor LAYER 8 Rebel Alliance @JonathanLee
      last edited by Aug 17, 2023, 2:17 AM

      @JonathanLee you using an external redirect ?

      Firewall: NetGate,Palo Alto-VM,Juniper SRX
      Routing: Juniper, Arista, Cisco
      Switching: Juniper, Arista, Cisco
      Wireless: Unifi, Aruba IAP
      JNCIP,CCNP Enterprise

      J 1 Reply Last reply Aug 17, 2023, 2:22 AM Reply Quote 0
      • J
        JonathanLee @michmoor
        last edited by Aug 17, 2023, 2:22 AM

        @michmoor only Squidguard

        Make sure to upvote

        M 1 Reply Last reply Aug 17, 2023, 2:44 AM Reply Quote 0
        • M
          michmoor LAYER 8 Rebel Alliance @JonathanLee
          last edited by Aug 17, 2023, 2:44 AM

          @JonathanLee so you are redirecting to pfsense then?

          Firewall: NetGate,Palo Alto-VM,Juniper SRX
          Routing: Juniper, Arista, Cisco
          Switching: Juniper, Arista, Cisco
          Wireless: Unifi, Aruba IAP
          JNCIP,CCNP Enterprise

          J 1 Reply Last reply Aug 17, 2023, 3:42 AM Reply Quote 0
          • J
            JonathanLee @michmoor
            last edited by Aug 17, 2023, 3:42 AM

            @michmoor there is a built in redirecter for blocked urls that is in Squidguard. It's inside of pfSense

            Make sure to upvote

            M 1 Reply Last reply Aug 17, 2023, 5:05 PM Reply Quote 1
            • M
              michmoor LAYER 8 Rebel Alliance @JonathanLee
              last edited by michmoor Aug 17, 2023, 5:09 PM Aug 17, 2023, 5:05 PM

              @JonathanLee Ive been using the 'ext url found (enter URL) option. I have an instance of Apache stood up

              What option are you using? Im asking because if you select internal then pfsense serves the page but you need to allow access to the management port (443) which isnt a good option .

              Firewall: NetGate,Palo Alto-VM,Juniper SRX
              Routing: Juniper, Arista, Cisco
              Switching: Juniper, Arista, Cisco
              Wireless: Unifi, Aruba IAP
              JNCIP,CCNP Enterprise

              1 Reply Last reply Reply Quote 0
              • M
                mcury
                last edited by Aug 17, 2023, 5:08 PM

                As far as I remember, those redirects always worked.
                But they won't work for HTTPS since the domain blocked does not match the certificate presented by squidguard, thus the browser will prompt that error.

                dead on arrival, nowhere to be found.

                M 1 Reply Last reply Aug 17, 2023, 5:11 PM Reply Quote 0
                • M
                  michmoor LAYER 8 Rebel Alliance @mcury
                  last edited by michmoor Aug 17, 2023, 5:12 PM Aug 17, 2023, 5:11 PM

                  @mcury
                  If you use an external redirect which is what i do then http or https blocks dont matter as its being sent to my web server which is listening on port 80.
                  I just didnt want a dependency on something outside the pfsense box but its the only preferrable solution i can think of.

                  So for exampleanything matching my squidguard block gets sent to http://netadmin/info.php?url=403&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u

                  netadmin = locally hosted web server

                  Firewall: NetGate,Palo Alto-VM,Juniper SRX
                  Routing: Juniper, Arista, Cisco
                  Switching: Juniper, Arista, Cisco
                  Wireless: Unifi, Aruba IAP
                  JNCIP,CCNP Enterprise

                  M 1 Reply Last reply Aug 17, 2023, 5:16 PM Reply Quote 0
                  • M
                    mcury @michmoor
                    last edited by Aug 17, 2023, 5:16 PM

                    @michmoor said in Patches update:

                    If you use an external redirect which is what i do then http or https blocks dont matter as its being sent to my web server which is listening on port 80.
                    I just didnt want a dependency on something outside the pfsense box but its the only preferrable solution i can think of.

                    I don't see how a browser would allow that without showing a certificate error.
                    If you request a https URL, the browser is expecting the domain to match with the certificate, this is how SSL works.
                    Did you disable something in the browser for that to work ?

                    Are you using bump or splice option ?

                    dead on arrival, nowhere to be found.

                    M 1 Reply Last reply Aug 17, 2023, 6:44 PM Reply Quote 0
                    • M
                      michmoor LAYER 8 Rebel Alliance @mcury
                      last edited by michmoor Aug 17, 2023, 6:45 PM Aug 17, 2023, 6:44 PM

                      @mcury It works.
                      I am blocking .pdfs as a test.

                      Setting:

                      🔒 Log in to view

                      Block
                      🔒 Log in to view

                      Firewall: NetGate,Palo Alto-VM,Juniper SRX
                      Routing: Juniper, Arista, Cisco
                      Switching: Juniper, Arista, Cisco
                      Wireless: Unifi, Aruba IAP
                      JNCIP,CCNP Enterprise

                      M 1 Reply Last reply Aug 17, 2023, 6:47 PM Reply Quote 2
                      • M
                        mcury @michmoor
                        last edited by Aug 17, 2023, 6:47 PM

                        @michmoor Hm, so you are using Squid-in-the-middle SSL, bump SSL, mimicking the SSL on the demand.. Imported the certificate to the hosts. Ok then, thanks @michmoor.

                        dead on arrival, nowhere to be found.

                        M 1 Reply Last reply Aug 17, 2023, 6:47 PM Reply Quote 0
                        • M
                          michmoor LAYER 8 Rebel Alliance @mcury
                          last edited by Aug 17, 2023, 6:47 PM

                          @mcury Yep. Sorry if that wasnt clear.
                          I am doing full MITM.

                          If you rely only on the internal redirect then pfsense points back to itself on the management port (firewall.example.com:443) .
                          The problem of course is that in order to serve the page you must make your management port accessible to all LAN clients. That means making management accessible to all LAN clients. The only workaround is to use an external webserver that has php code on it to interrupt whats being sent to it from pfsense

                          Firewall: NetGate,Palo Alto-VM,Juniper SRX
                          Routing: Juniper, Arista, Cisco
                          Switching: Juniper, Arista, Cisco
                          Wireless: Unifi, Aruba IAP
                          JNCIP,CCNP Enterprise

                          M 1 Reply Last reply Aug 17, 2023, 6:50 PM Reply Quote 0
                          • M
                            mcury @michmoor
                            last edited by Aug 17, 2023, 6:50 PM

                            @michmoor said in Patches update:

                            Yep. Sorry if that wasnt clear.
                            I am doing full MITM.

                            Np, I was just trying to understand :)

                            @michmoor said in Patches update:

                            If you rely only on the internal redirect then pfsense points back to itself on the management port (firewall.example.com:443) .
                            The problem of course is that in order to serve the page you must make your management port accessible to all LAN clients. That means making management accessible to all LAN clients. The only workaround is to use an external webserver that has php code on it to interrupt whats being sent to it from pfsense

                            Now I see what you meant, yes, indeed that would be a problem.. Using an external server for that solves this problem.

                            dead on arrival, nowhere to be found.

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