Captive Portal Logfile
-
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. -
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#L344What do you mean by troubleshooting ?
-
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#L344What 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. -
Squid + CP does NOT work. Save your troubleshooting effort for something more meaningful and remove Squid.
-
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.
-
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.
-
… 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 ? -
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.
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.