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

    Bypass ssl-bump on squid3-dev

    Scheduled Pinned Locked Moved pfSense Packages
    37 Posts 8 Posters 18.3k 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
      siceff
      last edited by

      Hello everyone !
      I'm looking for weeks about this issue too… and still have no answer. Here is my configuration : pfsense 2.2, squid3 v3.4.10_2 (pkg 0.2.6).
      If configure squid like that : proxy my whole LAN, resolv dns v4 first, transparent http proxy on all interface except WAN, bypass proxy for private addresses. About SSL Interception : enabled on all interface except on WAN with a self-signed certificat (which is included in trusted authority on all computer), adapt certificate "Not before" and I do not check the remote certificate (for test).

      Under 'Custom ACLS, before_auth, I try to avoid ssl_bumping for .microsoft.com (for testing purpose).
      The Squid service start normaly but when I access to https://www.microsoft.com, it's still be singned with my own CA, so the exception is not working.

      Could anyone help me to make this exception working ?

      PS: Microsoft KB about ssl exclusion for Windows update, which is my main problem actually : https://support.microsoft.com/kb/885819

      1 Reply Last reply Reply Quote 0
      • W
        webstor
        last edited by

        You could try to make an exception list based on ip's.

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          First of all you should not proxy these at all.

          1 Reply Last reply Reply Quote 0
          • W
            webstor
            last edited by

            He does not want to proxy them, but the problem is the bypass with fqdn's. (acl dstdomain isn't working as it should).

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              You need to tell the client that they should not be proxied… Via proxy.pac plus GPO or whatever. Too late to mess with that once the traffic already hit the transparent proxy!

              1 Reply Last reply Reply Quote 0
              • W
                webstor
                last edited by

                Maybe his standardgateway is also the proxy and he does not have the option to use another gateway ?

                1 Reply Last reply Reply Quote 0
                • S
                  siceff
                  last edited by

                  Thank you for taking time to solve my issue !
                  You're right, my pfsense is not only the proxy, but the router between vlans and my Gateway to internet, so I cannot tell the client to bypass squid.
                  I try to exclude the destination IP address  using :

                  acl ssl_bypass dst 104.66.167.176
                  ssl_bump none ssl_bypass
                  

                  And… that works !!! accessing https://www.microsoft.com stil signed by verisign :-) I'll check tomorrow to exclude all Windows update IPs. Thanks for your help. I'll come back tomorrow  8)

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    @siceff:

                    You're right, my pfsense is not only the proxy, but the router between vlans and my Gateway to internet, so I cannot tell the client to bypass squid.

                    Eeeeh? How many proxies are you running and where?

                    P.S. This MS stuff is a huge CDN, whitelisting individual IPs is just a total no go.

                    1 Reply Last reply Reply Quote 0
                    • W
                      webstor
                      last edited by

                      Microsoft Windows Update is using only one ip? Cannot believe that.

                      1 Reply Last reply Reply Quote 0
                      • W
                        webstor
                        last edited by

                        For the moment it is the best solution. Of course it would be better, but the acl dstdomain isn't working as it should.

                        1 Reply Last reply Reply Quote 0
                        • D
                          doktornotor Banned
                          last edited by

                          What solution? Cannot see any solution here - acl ssl_bypass dst with a single IP is nonsense and not a solution.

                          1 Reply Last reply Reply Quote 0
                          • W
                            webstor
                            last edited by

                            Then brinng up a solution depending in that Problem. ACL dstdomain wont work with SSL bump with hosts with multiple IP adresses.

                            1 Reply Last reply Reply Quote 0
                            • D
                              doktornotor Banned
                              last edited by

                              Already brought up a solution. Traffic to these domains should not hit a proxy at all. No other input until this gets answered.

                              1 Reply Last reply Reply Quote 0
                              • W
                                webstor
                                last edited by

                                Thats not a solution.

                                1 Reply Last reply Reply Quote 0
                                • D
                                  doktornotor Banned
                                  last edited by

                                  @webstor:

                                  Thats not a solution.

                                  What's not a solution? You do not MITM OS updates. Period.

                                  1 Reply Last reply Reply Quote 0
                                  • W
                                    webstor
                                    last edited by

                                    Try it yourself. Maybe you should understand SSL bumping first.

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      doktornotor Banned
                                      last edited by

                                      Why on earth should I try something known to NOT work by design? Stop directing your Windows Update traffic to the transparent SSL proxy. If you want to serve updates locally, use WSUS server or some of the other enterprise solutions intended for that purpose.

                                      1 Reply Last reply Reply Quote 0
                                      • W
                                        webstor
                                        last edited by

                                        As mentioned before, not a solution.  ;D

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          siceff
                                          last edited by

                                          Hello again !
                                          You're right, it's not possible to exclude the Windows update by IP, that's too big… by the way, I've quite the same problem with teamviewer, which is working, but the event viewer is full of schannel error due to this inspection too. Maybe I could place a WSUS server, but as it's not a main site, it's a lot of trouble for a few PCs.

                                          As I understand, the other way is to have a proxy for some sites and no proxy for others based on wpad files. But can I do that when pfsense is my single Gateway/router/NAT of the whole network ? I cannot understand how. Or I have to turn to a non-transparent proxy, so I could proxify some site and exclude others based on proxy port...

                                          Could you explain me what do you think exactly ?

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            doktornotor Banned
                                            last edited by

                                            @siceff:

                                            As I understand, the other way is to have a proxy for some sites and no proxy for others based on wpad files. But can I do that when pfsense is my single Gateway/router/NAT of the whole network ? I cannot understand how.

                                            I don't understand how's this a problem? See this, e.g.: http://findproxyforurl.com/example-pac-file/

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