Writers' Community!

Search:

Writers' Community!

SearchWarp Home Submit An Article Frequently Asked Questions Contact Author Login
Article Submission
We Need YOUR Articles!
We'll Promote Them for FREE!

Author Login

New Authors
Register Here


Now Serving 5,258 Authors
44,640 Quality Articles
& 4,474 Current Users Online!
Featured Authors
Dianne Lehmann (2,545)
Mike Fak (3,556)
Robert Melaccio, Sr. (4,558)
Mark Parsec (23,731)
Danny Davids (13,298)
Camille Strate (1,248)
Dan Bimrose (1,772)
James Taylor (912)
Terry Mitchell (1,408)
Sandra E. Graham (2,091)
Susan Thom (8,103)
Aaron Taylor (415)
Jared Wilson (3,839)
April Lorier (5,781)

View All Featured Authors
Most Recent
Penetration Testing: How to Find Unexpected Leverage

How to Build and Configure Your Own Radio Referenced NTP Time Server

Windows 2003 Installing and Configuring an Authoritative NTP Network Time Server.

History of Time Keeping, Calendars, Clocks and NTP Servers

Everything You Need to Know About Computer LAN (Local Area Network) Backbone Wiring

How To Install Outdoor Fiber Optic Cables In Underground Ducts And Innerducts

Time Servers and the Importance of Synchronisation.

A Guide to NTP and Computer Network Time Synchronisation

A Guide to Time Synchronisation with Windows Vista

A word about Wifi or Wi-fi Technology

Home » Categories » Computers & Networking » Networking » Howto setup an Internet Wi-Fi Hotspot » Printer Friendly

Howto setup an Internet Wi-Fi Hotspot

Rated 3.5 out of 5
Rate It  /  View Comments  /  View All Articles submitted by Sean Bracken
Submitted Wednesday, November 16, 2005
Submitted by: Sean Bracken (574) Blue Level Author Verified Account
Swarm HotSpots
Log in to become a member of Sean Bracken's Fan Club!


This article is designed to help anyone that wants to setup a Wi-Fi Hotspot site or start a business supplying Internet Hotspots. Configuring a FreeRadius server is not for the faint hearted and documentation is sparse. I've tried to keep things simple but if anyone needs help you can reach me at sean@swatmhotspots.com. I'll do my best to help you get your system up and running. There are additional resources available on my site http://swarmhotspots.com such as free downloads and some typical Chillispot and DD-WRT configs.

A howto for DD-WRT, Chillispot and FreeRadius.



********Warning ********


Following these instructions may invalidate your Linksys warranty. You do so at your own risk. These instructions assume that you have an understanding of Linux, PHP MySQL and Apache. If you brick your AP you might get it back by holding down the reset pin for 20 seconds, unplug the power while still holding down the reset button for another 20 seconds and then plugging the power back in while still keeping the reset button held in for a further 20 seconds. This should bring it back to the defaults of whatever firmware you have installed. You should be able to login to 192.168.1.1

*******End of Warning********


Feel free to copy or use this information in any way you like.

What you will need:-

a) DD-WRT

Download the latest version

b) FreeRadius

Download the latest version

c) phpMyPrepaid

d) Linsys WRT54G AP

e) You will also need PHP, Apache, MySQL amd MySql Delopment Modules,(These need to be setup first.) some patience, plenty of beer and cigarettes.

Step 1 DD-WRT/Chillispot Configuration

Configure the WRT-54G with the standard Linksys software and the use the upgrade firmware module to install the dd-wrt package on the AP.

*******IMPORTANT*******
Use your cable connection to do the upgrade. NOT the wireless connection

Reboot the AP and login to your new firmare.

Set Dynamic configuration DHCP

Disable DHCP (Chillispot will manage DHCP for your clients.)

Change the Local IP of the AP to 192.168.10.1.

Set your gateway and DNS addresses.

Update changes and log back in to the new IP address.

Go to the administration page.

Enable Chillispot

Enter the IP address of your Radius server

Enter the DNS

Enter the redirect URL eg HTTPS://123.123.123.123/cgi-bin/hotspotlogin.cgi/ (MAke sure that the address ends in / and is https.)

Enter a shared key. (This can be anything you like, but keep a note of it you will need it later.)

Set DHCP Interface to Lan+Wlan

Enter a NAS id (Your name for your AP)

Enter a UAM secret (This is the password that Chilli will use to talk to hotspotlogin.cgi)

Save your settings and reboot the AP. Please give the AP about 10 minutes to reboot and initialise all the new services.

Step 2 FreeRadius Configuration.

Untar the FreeRadius tar file and enter its directory.

Type ./configure --with-experimental-modules

make

login as root and type make install

When this is finished copy the radiusd.conf file that you downloaded earlier to /usr/local/etc/raddb/

You should not need to edit radiusd.conf

Edit /usr/local/etc/raddb/sql.conf and in the SQL section make these changes

# Database type

# Current supported are: rlm_sql_mysql, rlm_sql_postgresql,

# rlm_sql_iodbc, rlm_sql_oracle, rlm_sql_unixodbc, rlm_sql_freetds

driver = "rlm_sql_mysql"

# Connect info

server = "localhost"

login = "yourlogin"

password = "your password"

# Database table configuration

radius_db = "radius"

Edit the /usr/local/etc/raddb/clients.conf file and enter the details of your NAS (AP)

client xxx.xxx.xxx.xxx { (This is the address of your NAS or WRT54G )

secret = xxxxxxx (The secret you entered in the Chilli Config)

shortname = private-network-9 (This can be any name)

nastype = other

( If you want to set up several AP's with one secret the IP address above should be 0.0.0.0/0 )

}

Step 3 hotspotlogin.cgi

Copy hotspotlogin.cgi from http://chillispot.org to /var/www/cgi-bin

Edit the file and change the secret to the UAM secret that you entered in the Chillispot configuration on the WRT54G

Step 4 phpMyPrepaid and MySQL

Extract the phpMyPrepaid file to a directory on your webserver eg /var/www/html/myprepaid

Create a MySQL database called radius and create a user and password for it. Use a script called db_mysql.db that you will find in the phpMyPrepaid download to create the database tables.

Edit the dbconnect.php file in the phpMyPrepaid directory and enter the username and password for your MySQL radius database. IMPORTANT Save this file behind your web directory or your passwords will be easy to hack.

Edit config.inc.php and change the line that points to dbconnect to wherever you have saved dbconnect.php

In your web browser got to http://yoursite.com/whereveryouputphpmyprepaid/ and create some tickets. Check your database to see if the users have been setup in radcheck. Launch FreeRadius as root with this command radiusd -xxyx -l stdout. Pick a user and password from your database and try to login from a wireless client. If you can then it is time for step 5. If not go back to step 1 and check everything.

Step 5 Have a cup of coffee and unwind. If all is well you have finished. I'll keep an eye on this post and do my best to help anyone with problems.

I have also setup a free Radius test server for anyone that wants to test their Chillispot configuration

I hope that this article is of value to you and I would welcome any feedback.






Reprint Rights

Log in to become a member of Sean Bracken's Fan Club!

Comments on this article:


» left by Sinead Cleary from Dublin (2 years 281 days ago.)
Reader Rating: 5 out of 5
Thank's for a great howto and all the help you gave me setting up my AP.

Thanks again,

Sinead
Respond to this comment

» left by Bill Polion from United Kingdom (2 years 260 days ago.)
Reader Rating: 5 out of 5
Great article. I followed the steps and got my hotspot up in about an hous. I contacted the author for help at one stage and he was great. Instan response to my email and he setup test accounts on his own server for me.
Respond to this comment

» left by Anonymous (18 days 7 hours ago.)
Its a really great howto. But i would prefer a slolely hardware based hotspot.
 
less complicated and divided , more stable and solid.

Respond to this comment

Was this article helpful to you? Leave a Public Comment or Question:

 

This Article has been viewed 5,880 times.
Article added to SearchWarp.com on Wednesday, November 16, 2005
View other articles written by Sean Bracken (574) Blue Level Author Verified Account


If you found this article interesting, you may want to check out:

Disclaimer:  All information on this site is provided for informational purposes only! By no means is any information presented herein intended to substitute for the advice provided to you by any health care or other professional or organization.


Today's Most Popular
How To Install Outdoor Fiber Optic Cables In Underground Ducts And Innerducts

Installing a PCI Wireless Networking Card

Cisco Routing: "Ip Default-Network" vs. Static Default Routes

Wired Network Working Into Wireless Access Points

Howto setup an Internet Wi-Fi Hotspot

Surviving The Technical Job Interview

Networking Structures Explained: Access Point or Ad-hoc?

Sharing an Internet Connection over a Wi-Fi Network

Four Mistakes to Avoid During a Data Center or Server Move/Consolidation

Why Network Documentation Is So Important

Home  |  FAQ's  |  Contact  |  Terms of Service  |  Article Submission Guidelines  |  Writers' Contests  |  Privacy  |  Mission / About
Copyright © 1999-2008 SearchWarp.com, All Rights Reserved - SearchWarp.com is an IcoLogic, Inc. Company