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

    Captive Portal Logfile

    Scheduled Pinned Locked Moved Captive Portal
    8 Posts 4 Posters 2.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.
    • C
      comeback1106
      last edited by

      Hi everyone, How can I get Captive portal log file or enable that function to get log from captive portal. I want working logfile, such as when captive portal start, stop. I want this to troubleshoot my system. I see Captive portal have Authentication log file, to save the MAC Address of client was authentication with Captive portal but I don't need this.
      Thanks for your answer.

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

        Hi,

        If you want a log line that tells when the captive portal service started, start reading from here : https://github.com/pfsense/pfsense/blob/master/etc/inc/captiveportal.inc#L187 and a line ;)
        The same thing when stopping : put a line after here : https://github.com/pfsense/pfsense/blob/master/etc/inc/captiveportal.inc#L344

        What do you mean by troubleshooting ?

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

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

          @Gertjan:

          Hi,

          If you want a log line that tells when the captive portal service started, start reading from here : https://github.com/pfsense/pfsense/blob/master/etc/inc/captiveportal.inc#L187 and a line ;)
          The same thing when stopping : put a line after here : https://github.com/pfsense/pfsense/blob/master/etc/inc/captiveportal.inc#L344

          What do you mean by troubleshooting ?

          Thanks for your reply.
          I want troubleshooting this because I have problem when using Captive Portal with Squid. User can bypass captive portal when I enable squid on pfsense.

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

            Squid + CP does NOT work. Save your troubleshooting effort for something more meaningful and remove Squid.

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

              Better yet: these kind of issues won't be logged anyway.
              Its more something like squid modifying the firewall rules (captive portal is using two firewalls).

              The solution is easy: move Squid and all is well.

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

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

                doktornotor, care to elaborate what do you mean by "Squid + CP does NOT work"? I've got Squid (transparent) + CP running on a test system, and haven't been able to bypass the Captive Portal page yet.

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

                  @SaschaITM:

                  … elaborate ...

                  The current version of pfSEnse (2.2.2) using its Squid package Squid doesn't work (when a captive portal is used).
                  Many people - check out this forum for that - have signaled problems.

                  and haven't been able to bypass the Captive Portal page yet.

                  elaborate please.
                  Without password etc, that what it does, you can't pass by it.
                  Logged in users can bypass.
                  Or do you mean that when you use Squid you can't bypass, whatever you do ?
                  Something else ?

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

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

                    @Gertjan:

                    The current version of pfSEnse (2.2.2) using its Squid package Squid doesn't work (when a captive portal is used).
                    Many people - check out this forum for that - have signaled problems.

                    Well, it's working fine for me. What I can see in the forums is some people having trouble with CP, but that seems to be because they didn't configure it correctly, or have other config problems. My guess is that this is where OP's problem is coming from.

                    comeback1106, I think you're trying to solve the "users can access internet without being logged on" problem from your other thread, right? Maybe you should review/redo your confguration, using one of the many How-To's as a guide. Try to setup CP without Squid first, then test, then add Squid, and test again. This will probably give you more useful data than asking for a logging function that probably won't reveal anything useful anyway.

                    @Gertjan:

                    elaborate please.
                    Without password etc, that what it does, you can't pass by it.
                    Logged in users can bypass.
                    Or do you mean that when you use Squid you can't bypass, whatever you do ?
                    Something else ?

                    CP with Squid works fine for me. I was assuming that doktornotor meant "can be bypassed" by "doesn't work", but reading his message again, this was a misinterpretation.

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