freeradius first hour free ???
i have installed this configuration: CentOS 5.1; freeradius 1.1.3; i have installed VMware on Centos, and pfsense (freeBSD) on it; i also have my php aplication on Centos and i use it for add new user to mysql and for generate report about used trafic; when user try to browse some page (google.com; facebook.com; e.t.c) pfsense popup its captive portal, and if user have username and pass he can pass throught, but if havent it cant, so everything works perfect. what i need? i just wana to make all my new users, to have first hour free to use internet, and when the hour exceed then the pfsense captive portal popup. sory for my english, i google about this thing all 4 days, and i belive i dont answer right question, so i think somebody can help me about this thing. tthank you again -- View this message in context: http://freeradius.1045715.n5.nabble.com/freeradius-first-hour-free-tp5101241... Sent from the FreeRadius - User mailing list archive at Nabble.com.
On Mon, Dec 26, 2011 at 3:53 PM, backghost <mikoletic@gmail.com> wrote:
i just wana to make all my new users, to have first hour free to use internet, and when the hour exceed then the pfsense captive portal popup.
Short version: hire an expert. Seriously. Long version: What you want SEEMS easy, but it requires several piece of software which you need to understand. Your post indicates you master none (hopefully I'm wrong on this). Here's some logical flow of how things should work which might help you later. Note that you'll have to find out yourself how to implement them, or hire an expert. (1) You can use client MAC address as identifier, to determine whether it's the same client or not. (2) Create a web page for the captive portal using php (or whatever your favorite is). It needs to be on the same LAN as the user's LAN/WLAN (3) Create a script so that the web page can detect user's MAC address (might involve some "exec" to run "arp", hence the requirement of being on the same LAN). (4) The page then checks whether the MAC is already in database. If it does, it has already used its free allocation. In this case simply display a normal login page. (5) If the MAC is NOT in database, generate an user entry in FR's db with session-timeout one hour (or whatever you choose). Redirect to the NAS (e.g. chillispot) with the username/password that you just generated. That way new users can go to the web page they want for one hour without having to type user/password manually. (6) If you want the "free" session to repeat (every day/week/whatever), then setup a schedule job that will delete the automatically-generated entries. -- Fajar
Thanks a lot, i think that want be easy, and its make me happy, i just need someone to tell me is it posible, and what way i need to go what kind of software. so i just take Long version for now i have time about few days, and if i finish sucefuly, i will send my answer to comunity. Thanks again On Mon, Dec 26, 2011 at 12:41 PM, Fajar A. Nugraha <list@fajar.net> wrote:
On Mon, Dec 26, 2011 at 3:53 PM, backghost <mikoletic@gmail.com> wrote:
i just wana to make all my new users, to have first hour free to use internet, and when the hour exceed then the pfsense captive portal popup.
Short version: hire an expert. Seriously.
Long version: What you want SEEMS easy, but it requires several piece of software which you need to understand. Your post indicates you master none (hopefully I'm wrong on this). Here's some logical flow of how things should work which might help you later. Note that you'll have to find out yourself how to implement them, or hire an expert.
(1) You can use client MAC address as identifier, to determine whether it's the same client or not. (2) Create a web page for the captive portal using php (or whatever your favorite is). It needs to be on the same LAN as the user's LAN/WLAN (3) Create a script so that the web page can detect user's MAC address (might involve some "exec" to run "arp", hence the requirement of being on the same LAN). (4) The page then checks whether the MAC is already in database. If it does, it has already used its free allocation. In this case simply display a normal login page. (5) If the MAC is NOT in database, generate an user entry in FR's db with session-timeout one hour (or whatever you choose). Redirect to the NAS (e.g. chillispot) with the username/password that you just generated. That way new users can go to the web page they want for one hour without having to type user/password manually. (6) If you want the "free" session to repeat (every day/week/whatever), then setup a schedule job that will delete the automatically-generated entries.
-- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 12/26/2011 03:53 AM, backghost wrote:
i have installed this configuration: CentOS 5.1; freeradius 1.1.3;
You should install a more current version of freeradius on CentOS 5. It's available under the freeradius2 package names (because it's version 2.x) on RHEL5. All other RHEL distributions use the freeradius package name. The reason why RHEL5 is different is because RHEL5 had freeradius 1.x under the freeradius package name and versions 1.x and 2.x are not configuration compatible, therefore we couldn't just replace freeradius 1.x with 2.x. -- John Dennis <jdennis@redhat.com> Looking to carve out IT costs? www.redhat.com/carveoutcosts/
participants (4)
-
backghost -
Fajar A. Nugraha -
John Dennis -
Milenko Letic