CP shows total bytes in and out for each user, what about storing these information in xml configuration file, so CP could keep track of bandwidth used by users. for this, after each session ends, the downloaded/uploaded bytes are added to the total size stored in xml as <traffic>2345222</traffic> and so the uploaded bytes. It could be automated every defined period of time. to avoid power loss. maybe limiting users to use certain amount of bandwidth monthly, weekly. maybe be adding another editable page shows traffic consumption for each user. warning about used bandwidth, and every authenticated user could be redirected to it . this needs to change the way CP works with user names and passwords. instead of removing the user after expiry, the user get suspended or disabled. so users would get <status>disabled</status> <status>suspended</status> instead of <expirationdate/> this will be a major add-on to the Captive Portal. also if adding static IP and Mac Address entry for each user would be great, and it will minimize the need for external radius server. if not defined, the user get authenticated normally. i hope i could write php to bring up more help. i even don't know how much lines needs to be added to captive portal files. but i hope it is not pretty much. thanks for reading my long boring and non well-arranged post. i will try to re arrange it as a replay for it
Best Regards, Mohammed Ismail.
|