Setting Up A FreeRadius Based AAA Server With MySQL & Management With Daloradius
Setting Up A FreeRadius Based AAA Server With MySQL & Management With DaloradiusThis tutorial explains how you can set up a FreeRadius (1.1.7) server with Wifi authentication and accounting in conjunction with MySQL & web management with Daloradius on Ubuntu 8.04 LTS Server Edition This howto should work for a novice. Production deployment is also possible with minor tweaking. But as usual I do not guarantee anything & take no responsibilities if something goes wrong. (For a basic how-to refer to the doc http://www.howtoforge.com/wifi-authentication-accounting-with-freeradius-on-centos5.) And of-course if you feel your are not cut-out for all this, you can always use this turn-key solution http://www.howtoforge.com/how-to-set-up-an-aaa-server-with-ciitix-wifi )
Following steps are involved:
Step 1- Building Ubuntu 8.04. packages Note: Those who don't need openssl/tls/ttls (certificates etc..) just fetch the FR packages from ubuntu repos with apt-get & skip to step 3. Before building the FreeRadius Ubuntu 8.04 package we have to apt-get some packages, necessary for the build process. sudo su - apt-get install debhelper libltdl3-dev libpam0g-dev \ Get hold of the FreeRadius sources and start building the package like given below. cd ~ Note: It is recommended that you carry this building process on a non-production server & move the final binary packages over to the production server. But it isn't mandatory if you know what you're doing. cd freeradius-1.1.7/ Edit rule file (debian/rules): vi debian/rules Now search for these lines: --without-rlm_eap_tls \ --without-rlm_eap_ttls \ --without-rlm_eap_peap \ and change them to look like this. --with-rlm_eap_tls \ --with-rlm_eap_ttls \ --with-rlm_eap_peap \ Also in the same file replace the text " --without-openssl " with " --with-openssl " Now search for these lines and delete them. for pkg in $(shell grep ^Package debian/control | awk '{print $$2}') ; d
o \
if dh_shlibdeps -p $$pkg -- -O | grep -q libssl; then \
echo "$$pkg links to openssl" ;\
exit 1 ;\
fi ;\
done
Save changes and quit vi. Now edit the control file (debian/control): vi debian/control Search for the line: Build-Depends: debhelper (>= 5), libltdl3-dev, libpam0g-dev, libmysqlclient15-dev | libmysqlclient-dev, libgdbm-dev, libldap2-dev, libsasl2-dev, libiodbc2-dev, libkrb5-dev, snmp, autotools-dev, dpatch (>= 2), libperl-dev, libtool, dpkg-dev (>= 1.13.19), libpq-dev, libsnmp-dev and append libssl-dev to the end of this line so that it looks like this. Build-Depends: debhelper (>= 5), libltdl3-dev, libpam0g-dev, libmysqlclient15-dev | libmysqlclient-dev, libgdbm-dev, libldap2-dev, libsasl2-dev, libiodbc2-dev, libkrb5-dev, snmp, autotools-dev, dpatch (>= 2), libperl-dev, libtool, dpkg-dev (>= 1.13.19), libpq-dev, libsnmp-dev, libssl-dev Save the changes and quit vi. Assuming you are here ~/freeradius-1.1.7. Start building packages: dpkg-buildpackage -rfakeroot Note: You still might require some packages for these. apt-get/aptitiude them & rerun the rebuild process. After a while (depending on your system) you should have some .deb files in the home directory. freeradius_1.1.7-1build4_i386.deb Move these to a production server if this is your development workstation. (In this setup you won't be needing the postgresql , ldap, krb5 , iodbc , dbg, dialupadmin binaries.)
Step 2- Installing the binary packagesdpkg -i freeradius_1.1.7-1build4_i386.deb dpkg -i freeradius-mysql_1.1.7-1build4_i386.deb After running with the out of the box configuration validate against a local user. E.g: run radius in debug mode: freeradius -X From another shell run this while the freeradius -X is running: radtest abc 123 localhost 1812 testing123 Make sure the user abc with password 123 is set in the /etc/freeradius/users file.
|
![]() | Please do not use the comment function to ask for help! If you need help, please use our forum. Comments will be published after administrator approval. |
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
One number. one voicemail. Seize the lead with Sprint. Learn more
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video
Sprint 4G - The Ultimate Mobile Broadband
Click here
SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial







Recent comments
22 hours 46 min ago
23 hours 53 min ago
1 day 27 min ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 11 hours ago
1 day 17 hours ago
2 days 30 min ago