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

Squid with Upstream Proxy - Config

Scheduled Pinned Locked Moved General pfSense Questions
12 Posts 3 Posters 1.8k Views 3 Watching
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.
  • S Offline
    shocko
    last edited by shocko Apr 12, 2023, 3:27 PM Apr 12, 2023, 3:27 PM

    I'm using pfsesne CE 2.5.2. I have the squid package installed to act as a proxy server (explicit and transparent) in my lab. pfSense bridges my lab to the internet but via an upstream proxy hosted outside my lab. As such I have pfSense with a LAN into my lab and WAN to my host (I'm using Hyper-V). I need to do the following:

    • configure the pfsense squid package/explicit proxy service with an upstream proxy
    • configure the pfsense squid package/transparent proxy service with an upstream proxy

    My upstream proxy is PX proxy so no auth required from the Squid instance on pfsense CE.

    1 Reply Last reply Reply Quote 0
    • S Offline
      stephenw10 Netgate Administrator
      last edited by Apr 12, 2023, 4:25 PM

      Squid will use the pfSense routing for outbound connections. Did you try adding the proxy in the general pfSense settings?
      https://docs.netgate.com/pfsense/en/latest/config/advanced-misc.html#proxy-support

      S 1 Reply Last reply Apr 12, 2023, 7:39 PM Reply Quote 0
      • S Offline
        shocko @stephenw10
        last edited by shocko Apr 12, 2023, 7:43 PM Apr 12, 2023, 7:39 PM

        @stephenw10 the link you send is for the proxy for the appliance itself not squid no?

        M S 2 Replies Last reply Apr 12, 2023, 8:03 PM Reply Quote 0
        • M Offline
          michmoor LAYER 8 Rebel Alliance @shocko
          last edited by Apr 12, 2023, 8:03 PM

          @shocko Your pfsense proxy talks to an upstream proxy, correct? The link provided are the settings you need to potentially modify.

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

          S 1 Reply Last reply Apr 12, 2023, 8:06 PM Reply Quote 0
          • S Offline
            shocko @michmoor
            last edited by Apr 12, 2023, 8:06 PM

            @michmoor said in Squid with Upstream Proxy - Config:

            Your pfsense proxy

            The squid package/service running in transparent proxy mode needs to talk to an upstream proxy. The pfsense appliance proxy used for appliance updates/package pull etc is a different thing no? That link states as much:

            If this firewall resides in a network which requires a proxy for outbound Internet access, enter the proxy options in this section so that requests from the firewall for items such as packages and updates will be sent through the proxy.

            1 Reply Last reply Reply Quote 0
            • S Offline
              stephenw10 Netgate Administrator
              last edited by Apr 12, 2023, 9:03 PM

              Squid is a service running on the firewall that opens TCP connections outbound like any other service. Have tried adding the proxy there?

              Squid can probably use an upstream proxy directly though if you add some custom config.

              1 Reply Last reply Reply Quote 0
              • S Offline
                shocko @shocko
                last edited by Apr 13, 2023, 8:07 PM

                Looks like we simply use the cache_peer directive in the pre-auth custom section. Problem is upstream you need a proxy that accepts TLS.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  stephenw10 Netgate Administrator
                  last edited by Apr 14, 2023, 12:04 AM

                  Why do you say that? Looks like you would need to specify TLS for the peer to use it to me.

                  http://www.squid-cache.org/Versions/v5/cfgman/cache_peer.html

                  S 1 Reply Last reply May 10, 2023, 3:33 PM Reply Quote 0
                  • S Offline
                    shocko @stephenw10
                    last edited by May 10, 2023, 3:33 PM

                    @stephenw10 said in Squid with Upstream Proxy - Config:

                    Why do you say that? Looks like you would need to specify TLS for the peer to use it to me.

                    http://www.squid-cache.org/Versions/v5/cfgman/cache_peer.html

                    We observed this on the wire.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      stephenw10 Netgate Administrator
                      last edited by May 10, 2023, 3:59 PM

                      You didn't specify TLS and it was still trying to use it?

                      S 1 Reply Last reply May 10, 2023, 9:49 PM Reply Quote 0
                      • S Offline
                        shocko @stephenw10
                        last edited by May 10, 2023, 9:49 PM

                        @stephenw10 Yes seems so.

                        S 1 Reply Last reply May 16, 2023, 9:37 AM Reply Quote 0
                        • S Offline
                          shocko @shocko
                          last edited by May 16, 2023, 9:37 AM

                          Any ideas anyone?

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received