Captive Portal Free Wifi with Hard Timeout & Vouchers
-
Good morning!
after doing alot of research and scrambling through many posts:
What I need:
- 1 SSID with 1x CP
- Guests can connect to the Wi-Fi and surf for free (1 Token, 12 Hours (Hard Timeout), this token gets reset every 21 Days.
- If the guests want to continue surfing the web, they can buy a voucher, this voucher has a duration of ~20 days.
Problem:
- After doing a lot of testing, and annoying many people, everything works up until the Timeout, no matter if you have a voucher or not, you will be disconnected, which means, everyone who buys the Wi-Fi gets to type in the code every 12 hours.
How can I fix this, is there any way in the captiveportal.inc or maybe a script to disconnect unauth. users after 12 Hours and so on?
I would really be grateful for any help. Boss I think wants my head at the moment :.
-
What I understood :
Initially, everybody can obtain a free voucher, good for 12 hours.@zuzu-0 said in Captive Portal Free Wifi with Hard Timeout & Vouchers:
no matter if you have a voucher or not
What do you mean by "voucher or not' ? People can connect without a voucher ?
The duration of a voucher can't be changed after creation.
When users switch from the "12 hours" to a "21 days", they switch vouchers, right ?It is - in theory - possible to reset the "moment of first usage" of a voucher but this needs coding.
@zuzu-0 said in Captive Portal Free Wifi with Hard Timeout & Vouchers:
everyone who buys the Wi-Fi gets to type in the code every 12 hours
The "hard time" out will throw out any connection. Users that use vouchers that are still valid can / have to reconnect, that's correct. Probably not convenient for you, I understand.
You've tried a "hard time" out of "20 days" ?