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

    Squid + Captive Portal Auth

    Scheduled Pinned Locked Moved Cache/Proxy
    9 Posts 7 Posters 5.2k 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.
    • P
      pfsensation
      last edited by

      Hey guys,

      Has anyone been able to successfully get Captive Portal + Squid proxy working correctly? I've seen many threads where people were complaining about Squid proxy being able to bypass their Captive Portal and old patches were made (and removed).

      I'm using Captive Portal to essentially limit bandwidth on a per uses basis, since I have WPAD setup I don't want people bypassing the captive portal by connecting directly to the proxy. Is it not possible to make the proxy work only for the people who have authenticated via captive portal or have their MAC address bypass set? I can see that there's a captive portal auth option but can't seem to get that working.

      Or if that somehow isn't possible, maybe we can put authenticated captive portal users on a separate DHCP pool which allows squid proxy? (time depends on their captive portal access / voucher)

      Thanks in advance :3

      1 Reply Last reply Reply Quote 0
      • C
        correajl
        last edited by

        Same doubt here. We found a lot of information about the bug, the patches and recommendations to remove them. The GUI still have the line telling about the bug (if the feature was removed, I don't understand this line telling about something that was a bug and was removed).

        Well, a network with captive portal and squid proxy accepts that clients access Internet without authenticate yourselves on CP.

        Here we have wpad because many browsers use this as default behavior (auto detect proxy configuration). On networks with CP enabled we have to send on wpad the "DIRECT" action elsewere clients bypass the authentication. In that way client access everything directly an the CP can filter. We have to enable transparent proxy on that network and not permit squid to listen on interface of pfSense, elsewere a client with manual configuration can bypass CP.

        I hope some day this proble could be solved. If I've understood it is necessary the creation of some firewall rules.

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          It was not a bug, the patch modified captive portal rules to block access to squid local ports.

          Core team denies this kind of modifications since 2.3.

          I've pushed a manual patch to captive on a forum topic that you can apply using system patches or you can point squid deny page to captive portal.

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

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

            I've pushed a manual patch to captive on a forum topic that you can apply using system patches or you can point squid deny page to captive portal.

            I could not find the patch you mentioned anywhere, I've searched though your last posts…

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              @robertolw:

              I've pushed a manual patch to captive on a forum topic that you can apply using system patches or you can point squid deny page to captive portal.

              I could not find the patch you mentioned anywhere, I've searched though your last posts…

              It's on the redmine "issue" page under comments and on git

              https://redmine.pfsense.org/issues/5594

              https://github.com/pfsense/pfsense-packages/pull/1210

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • L
                luisenrique
                last edited by luisenrique

                @marcelloc marcelloc
                the patch to Captive Portal work at today in V 2.4.4-RELEASE-p2 of pFSense??

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan
                  last edited by

                  Just to feed my curiosity : I use a captive portal (and some LAN's) : why should i use squid ?
                  Reading from http://www.squid-cache.org/Intro/ squid caches http (ftp ? wtf is that ? I thought is was dead by now).
                  For some reason, everything became "S" (SSL/TLS) these days. Caching these (private ?) streams is and stays a big no-no (for me).

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    luisenrique @Gertjan
                    last edited by

                    @gertjan for example for our company is important to have control over the activity of internal user about they access on the web, in recent days i was using squid transparent http and https pass under nat, i'm thinking to come back to thats config, another rason are make lees changes on the final client setting proxy etc...
                    Make me some recomendations please. thanks

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

                      Bonjour, j'ai beau navigué sur les forum en long en large et en travers, je ne trouve aucune information sur le fonctionnement de squid avec une authentification via portail captif couplé au ldap. C'est une solution proposée par pfsense mais je n'arrive pas à le faire fonctionner.
                      Merci.

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