I want to redirect expired user to billing web page .
i m using freeradius with mikrotik hotspot.
Waiting for your gud replies.
Freeradius redirect expried user to billing web page
-
- Naik
- Posts: 71
- Joined: Fri Sep 02, 2005 5:47 am
- Location: Lahore
- Contact:
i think freeradius use c family language !!!
http://wiki.freeradius.org/index.php/FAQ
http://freeradius.org/
http://freeradius.org/features/
http://wiki.freeradius.org/index.php/FAQ
http://freeradius.org/
http://freeradius.org/features/
-
- Naik
- Posts: 71
- Joined: Fri Sep 02, 2005 5:47 am
- Location: Lahore
- Contact:
Actually its not that difficult. I did that quiet some time back. You need to add an attribute in the profile "Expiration" and check this in authorization process.
Another work around which i now use is simpler then the above one. Just make a field in table "date_created" and make sure that the PHP form that you are using to create users inserts the date properly.
I have created a BASH script that runs daily at 1am and check for the date_created field and disables all users that have passed the 1 month time.
Another work around which i now use is simpler then the above one. Just make a field in table "date_created" and make sure that the PHP form that you are using to create users inserts the date properly.
I have created a BASH script that runs daily at 1am and check for the date_created field and disables all users that have passed the 1 month time.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Good Tip. I hope it can work.mudasir wrote:Actually its not that difficult. I did that quiet some time back. You need to add an attribute in the profile "Expiration" and check this in authorization process.
Another work around which i now use is simpler then the above one. Just make a field in table "date_created" and make sure that the PHP form that you are using to create users inserts the date properly.
I have created a BASH script that runs daily at 1am and check for the date_created field and disables all users that have passed the 1 month time.
Currently I am using DMASOFTLAB RM, it have nice GUI with NEXT Service option when current service expires, where you can either slow down the speed for the user, or redirect them to "ACCOUNT EXPIRED WARNING" message page via expired ip pool/firewall option. Try RM, the Price is cheap and it will give you a full feature rich GUI to control as per you requirements.
But if you wanna learn things, try MUDASSIR's advise. It's good to learn at your own first.