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

    Squid + Virtual IP. HTTPS won't work

    Scheduled Pinned Locked Moved pfSense Packages
    9 Posts 5 Posters 5.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
      stramato
      last edited by

      Here's my config

      pfSense
      LAN's Real Interface IP: 192.168.1.1/22
      Virtual IP1: 10.1.1.1/24

      Client PC
      LAN IP: 10.1.1.2/24

      The client cannot access HTTPS websites (connection timeout). Normal HTTP is OK.

      Squid is set to Transparent.

      What seems to be the problem here?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        You cannot transparently proxy HTTPS connections.

        Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • R
          rds_correia
          last edited by

          Are you sure, jimp?
          I have squid set to transparent and my clients can open https sites.
          I'm confusedĀ  ???
          Cheers

          pfSense 2.2.4 running on a HP DL385 G5
          WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

          1 Reply Last reply Reply Quote 0
          • D
            dvserg
            last edited by

            @rds_correia:

            Are you sure, jimp?
            I have squid set to transparent and my clients can open https sites.
            I'm confusedĀ  ???
            Cheers

            Transparent Squid firewall rules direct 80 port requests to the squid proxy. But https use 443 port.

            SquidGuardDoc ENĀ  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              @rds_correia:

              Are you sure, jimp?
              I have squid set to transparent and my clients can open https sites.
              I'm confusedĀ  ???
              Cheers

              Sure you can get to https sites, but they aren't going through the proxy :-)

              Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • R
                rds_correia
                last edited by

                @jimp:

                Sure you can get to https sites, but they aren't going through the proxy :-)

                Serious? That would explain this.
                Is there any way around this issue?
                Cheers

                pfSense 2.2.4 running on a HP DL385 G5
                WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  I replied on your other thread since it's not strictly relevant to this one.

                  Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

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

                    I also just figured this out. By default, HTTPS bypasses Transparent Squid.

                    With "normal" configuration, pfSense does this automatically (send all HTTP to Squid, bypass Squid when HTTPS).

                    But in special cases such as mine (I have a LAN Virtual IP in a different subnet), you have to manually tell pfSense to Outbound NAT HTTPS traffic to a WAN from the LAN Virtual IP, or else, it will try to contact the "real" IP, which it cannot reach because the Virtual IP is in a different subnet from the real IP.

                    Automatic Outbound NAT only configures the "real" IP of an interface, not Virtual IP's.

                    1 Reply Last reply Reply Quote 0
                    • X
                      XIII
                      last edited by

                      As stated in the docs, you can proxy https and other traffic through squid but you must tell each program about the proxy, because if you tried to transparently proxy https traffic you would get security warnings.

                      -Chris Stutzman
                      Sys0:2.0.1: AMD Sempron 140 @2.7 1024M RAM 100GHD
                      Sys1:2.0.1: Intel P4 @2.66 1024M RAM 40GHD
                      freedns.afraid.org - Free DNS dynamic DNS subdomain and domain hosting.
                      Check out the pfSense Wiki

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