Topic: How-To-[FreeRadius + WRT54 + Accounting + Authorization]

-----------This post is not own by me, I had a copy on my hard drive from the old forum, the owner is/was named Bartekj----------------------

FreeRadius (accounting, authorization) for WRT54G

This how will guide you how to install and configure FreeRadius to work with Linksys WRT54G on which Chillispot runs.
I am not a C programmer or something like that. And I do not know C code at all. I am just a user how did install FreeRadius for WRT54G HotSpot solution
My environment is Debian Woody.

Ok let

2 (edited by Revolver 2008-01-19 11:30:45)

Re: How-To-[FreeRadius + WRT54 + Accounting + Authorization]

Slight modification


Install/Configure Ubuntu 7.04 with freeradius 1.1.6
-----------------------------------------------------
This how will guide you how to install and configure FreeRadius to work with Linksys WRT54G on which Chillispot runs.
I assume LAMP is installed.
Go to www.freeradius.org and download Free Radius 1.1.6

Before Installing Radius
------------------------
Before you compile version 1.1.6 of Free Radius, ensure the following packages are installed.
They ensure that Free Radius can use the Perl and MySQL modules.

sudo apt-get install build-essential libmysqlclient15-dev libperl-dev


Installing Radius
-----------------
#tar -xzvf freeradius-1.1.6.tar.gz
#cd freeradius-1.1.6
#./configure
#make
#sudo make install

Testing Radius
--------------
#sudo /usr/local/sbin/radiusd -X

press ctrl+c to exit

Configuring Radius clients.conf
-------------------------------
Ok our radius is compiled and installed.
The configuration files can be found under /usr/local/etc/raddb/
#sudo nano /usr/local/etc/raddb/clients.conf

First thing we are going to edit clients.conf file.
In this file we will add every Linksys WRT54G to clients list.
Remember to add public IP address or address which are assigned to INTERNET port on our WRT54G.

For example I have only one WRT54G so I will add entry like that:

client ***.***.***.*** {
secret = testing123
shortname = r-wifi-01
nastype = other
}

The *** should be IP address of your WRT.
Secret - you should have the same entry here and in WRT54G

3 (edited by dinodegil 2008-01-31 13:01:30)

Re: How-To-[FreeRadius + WRT54 + Accounting + Authorization]

hi..my name is mohd nizam..i'm from malaysia...actually i want to develop radius authentication and prepaid system for my wireless hotspot at my college...my platform same with u debian..

Question 1: what i must change from ur tutorial or just follow the step to make a radius authentication??

Question 2:  how can i integrate my own prepaid system(rather than dialupadmin) with radius server?

Question 3: What is the function of chillispot?? why u all dont use it??

before that, i already try to setup freeradius and connect through my AP(WRT54GS) but error occur when i run freeradius -X

/etc/freeradius/eap.conf[308]: Unexpected end of file
error reading radiusd.conf

so i decide to remove and try to install back..

hope u dont mine to share with me ur knowledge...

Re: How-To-[FreeRadius + WRT54 + Accounting + Authorization]

Hi comandoBSD

You mentioned the following. "...how long specific user can be on line. Or how much he can upload or download data. When his all time will be used...."

I'm specifically interested in the, "..how much he can upload or download data.", part. Has anybody a complete setup for this specific options. I would like to limit my users and the amount of data downloaded or uploaded. Something in the region of 500MB or 1GB.

Any help would be appreciated.

Thank you

Joe