Todo #9186
closed
Features in captive portal with large number of users
0%
Description
I am using Pfsense version 2.4.3p1 with the number of user captive portal is nearly 1000.
There is a problem here that after a user logs in with the voucher, sometimes the mac address of that user is not written in the config file (the user has access to the internet because there are rules in ipfw).
So, I hope the pfsense support team can add the mac address check feature that is already in the config file after the voucher has been activated.
I studied a code snippet in the captiveportal.inc file:
/ * check mac in config file * /
$ mac_checked = false;
foreach ($ config ['captiveportal'] [$ cpzone] ['passthrumac'] as $ mack_check) {
if ($ clientmac == $ mac_check ['mac']) {
$ mac_checked = true;
}
}
if ($ mac_checked false) {
write_config ("write again");
If you do not see the mac address in the config file then write_config again
But it seems the above code does not work maybe because I put the wrong place?
I put the bottom if ($ writecfg true);
Thanks!
Updated by Jim Pingle over 6 years ago
- Status changed from New to Rejected
- Assignee deleted (
Jim Pingle)
The captive portal underwent a major rewrite after 2.4.3-p1. You must upgrade to 2.4.4-p1 and test again before opening an issue, assuming the problem still exists.