• 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.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.
  • S
    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
      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
        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
          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
            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
              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
                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
                  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
                    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
                      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
                        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