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

"aws s3 cp" crashes the firewall when using squid web proxy

Scheduled Pinned Locked Moved General pfSense Questions
23 Posts 6 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.
  • S
    stephenw10 Netgate Administrator
    last edited by stephenw10 Jan 3, 2024, 1:18 PM Jan 3, 2024, 1:13 PM

    I would not expect it to. Unless I've misunderstood this the Squid instance is local and AWS here is remote. So the MTU of the link between them is very unlikely to be more than 1500B, probably less.

    The problem seems more likely to be that it's trying to cache the full file and then stops accepting traffic.

    Do you see the same thing if you try to upload that file to somewhere else? Or any file >500MB to anywhere?

    A 1 Reply Last reply Jan 3, 2024, 6:16 PM Reply Quote 0
    • A
      adamw @stephenw10
      last edited by Jan 3, 2024, 6:16 PM

      @stephenw10

      To recap:

      Squid is local and runs on our LAN firewall / gateway.
      AWS S3 bucket is obviously remote.
      "Aws s3 cp" tries to copy from a LAN Debian machine to that bucket.
      Transfer goes through fine if it bypasses Squid.
      When it's told to use web proxy it crashes the firewall after uploading 0.5 / 8 GB.

      I've just successfully uploaded a 8 GB file to Google Drive involving Squid.
      The transfer took several minutes. CPU usage remained at 50-60%.
      MBUF Usage reached 30% (3036/10035) and stayed there.
      No crash or any noticeable impact on other services and connectivity.

      J 1 Reply Last reply Jan 3, 2024, 6:17 PM Reply Quote 0
      • J
        JonathanLee @adamw
        last edited by Jan 3, 2024, 6:17 PM

        @adamw What port is used? You need to add that to safe ports in Squid.. I had issues with the college ports needed to be marked safe in Squid that was in use without them it failed any connections

        Make sure to upvote

        A 1 Reply Last reply Jan 3, 2024, 6:18 PM Reply Quote 0
        • A
          adamw @JonathanLee
          last edited by Jan 3, 2024, 6:18 PM

          @JonathanLee
          TCP 443 in both cases (aws s3 cp and Google Drive upload).

          J 1 Reply Last reply Jan 3, 2024, 6:22 PM Reply Quote 0
          • J
            JonathanLee @adamw
            last edited by JonathanLee Jan 3, 2024, 6:24 PM Jan 3, 2024, 6:22 PM

            @adamw

            Is Squid set as Custom SSL MITM or Transparent or both??

            ee7ade31-5516-437f-8526-129d174800cb-image.png

            Some sites need to be splice only add this as a splice only

            I do this with advanced

            a70cf919-9ffe-4c71-adae-365c990e1e2f-image.png

            I have a regex splice file that has sites always set to splice

            daa37ff5-da56-47a3-8f63-9666b1ddc253-image.png

            Make sure to upvote

            A 1 Reply Last reply Jan 3, 2024, 6:29 PM Reply Quote 0
            • A
              adamw @JonathanLee
              last edited by Jan 3, 2024, 6:29 PM

              @JonathanLee

              My settings:

              squid_proxy_settings.png

              Making it bypass proxy has basically solved my problem but thanks for the suggestions.

              J 2 Replies Last reply Jan 3, 2024, 6:33 PM Reply Quote 0
              • J
                JonathanLee @adamw
                last edited by Jan 3, 2024, 6:33 PM

                @adamw @mcury I also bypass destination of my firewall IP that helped me with weird firewall logs showing up. I have my 192.168.1.1 as go to firewall rules

                Make sure to upvote

                M 1 Reply Last reply Jan 3, 2024, 7:52 PM Reply Quote 0
                • J
                  JonathanLee @adamw
                  last edited by Jan 3, 2024, 6:35 PM

                  @adamw IP addresses that are set to already use the proxy don’t need to be transparent also because they know the proxy addresses already. That is what my bypass is so it doesn’t double them.

                  Make sure to upvote

                  1 Reply Last reply Reply Quote 0
                  • M
                    mcury @JonathanLee
                    last edited by Jan 3, 2024, 7:52 PM

                    @JonathanLee said in "aws s3 cp" crashes the firewall when using squid web proxy:

                    @adamw @mcury I also bypass destination of my firewall IP that helped me with weird firewall logs showing up. I have my 192.168.1.1 as go to firewall rules

                    If you are going to use transparent proxy for some users and explicit proxy for others, as I used to do back in my Squid days, the best way I found was :

                    Bypass Proxy for These Source IPs: Include all IPs that are going to use explicit proxy.
                    Bypass Proxy for These Destination IPs: Inlucde here all the local networks, advice would be to add 10.0.0.0/8;172.16.0.0/12;192.168.0.0/16

                    For users using explicit mode, do the same bypass but in the client settings (Browser and/or OS, or through the .pac file directly).

                    dead on arrival, nowhere to be found.

                    A 1 Reply Last reply Jan 4, 2024, 1:21 PM Reply Quote 1
                    • A
                      adamw @mcury
                      last edited by Jan 4, 2024, 1:21 PM

                      @mcury

                      Just a quick reminder that the thread is not about bypassing squid but about a sensible https request crashing the firewall requiring a power cycle :)

                      M 1 Reply Last reply Jan 4, 2024, 1:25 PM Reply Quote 0
                      • M
                        mcury @adamw
                        last edited by Jan 4, 2024, 1:25 PM

                        @adamw said in "aws s3 cp" crashes the firewall when using squid web proxy:

                        Just a quick reminder that the thread is not about bypassing squid but about a sensible https request crashing the firewall requiring a power cycle :)

                        Hm, unfortunately I can't help you with that.. I was a SG-3100 owner for almost 6 years, used Squid for a long long time and no crashes for me.
                        I would suggest you to try to a clean squid install, then go configuring little by little to find what is the trigger for the crash.

                        good luck!

                        dead on arrival, nowhere to be found.

                        1 Reply Last reply Reply Quote 0
                        • A
                          adamw @marcosm
                          last edited by adamw Jan 4, 2024, 1:30 PM Jan 4, 2024, 1:28 PM

                          @marcosm

                          Is config exported from Netgate 3100 expected to work with Netgate 4100 out of the box?
                          I might be ok with exchanging one of our 3100 devices for 4100 and use the latter for further testing.

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Jan 4, 2024, 1:31 PM

                            You'd have to reassign the interfaces but otherwise yes. If you have any complex VLAN/switch port setup in the 3100 that wouldn't apply in a 4100 of course.

                            1 Reply Last reply Reply Quote 0
                            • A adamw referenced this topic on Jun 24, 2024, 5:05 PM
                            23 out of 23
                            • First post
                              23/23
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                              This community forum collects and processes your personal information.
                              consent.not_received