Captive portal - dont disconect computer after voucher expire
After the voucher is end the computer who use it stay on internet. In Captive Portal status I see the voucher expired, but I also see the actuve user.
create a cron job that starts all 10 minutes the /etc/rc.prunecaptiveportal script. That helped me. First try to reboot the system. I have had a same problem some time ago.
Hello, i am new using pfsense and i am expirencing the exact same issue as "redpower"
can you explain, or show me a link explaining how to create a cron job that starts all 10 minutes?
I suppose you are referring to the active/online users in the DHCP leases?
the DHCP lease list is not the definite determiner of the active user (who have a voucher already expired).
or do you still see the same voucher as active user?
I had to figure out a workaround to kick out expired users…
Here's my case.
i give users vouchers to access internet.
Vouchers have let's say a time limit of 31 days.
when the month is over, the voucher expires but the user did not get kicked out.
the only way to prevent the user to access internet is to ask pfsense to kick the user out after let's say 6 hours of inactivity (when the user sleeps).
that only works if the user disconnect the device from the netwrok during the night because as long as data is kept transfering to the network, the connection is kept up.
I cannot use a force kick out after certain amout of time because during the whole month, if a user want to listen to web radio continously, i don't want anybody to be disconnected each x time.
So far so good, this workaround works pretty fine since almost everybody sleeps someday longer than 6 hours.
i'm using version 2.1.15, since i had noticed this bug one year ago, i upgraded pfsense to the actual version and i did'n perform any test to verify if the "kick out when voucher expire" bug is still there.
Hope that helps.
Gertjan last edited by
Solved my issue.