You are on page 1of 43

ChilliSpot + Ubuntu + phpmyprepaid0.

4RC2



, 
  



ChilliSpot + Ubuntu + phpmyprepaid0.4RC2


 !"#$"%& '(#)*+( +,-./0 -(12'& -,0!(/%(3" 42&56#$(-+6,& #.6.

 -1    "#$%& '(  #) *


+  eth0 $0 0 %1 
2 1 %(3 ( ' 4& 
'(  53
65 $0%'4
eth1 $0 0 %1 
2 2 %
1 ( ' 4& '
(  5 DHCP server 2
1
(3( $0#?424 ' 4& '(  53
6
5 $0%'4

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



1. 0,+( +"9: Ubuntu Linux -6,&3"= 8.04 [27]



"# C

 Ubuntu Linux  8.04 #2$0#3
6524# 3N#
Ubuntu  O36 (+%35(?%3  3N#P +& 36 (' 451'3 
www.ubuntu.com 3N#2" 
"#" 2&4
"#36 ((15

 ' 4(% LAMP
(Linux, Apache, MySQL (  PHP) 3N#
"# MySQL " 5P Password _&4
5 `4 2&42% Password  O mysqladminsecret 5" ( %#$%$6 %#c #"
2 $%$6 #$% 5 4#24

# root #"5 4#4# Password
# root + 24$_# #"
wifi@wifi-desktop:/$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:

 #24# O root + 24$_#


wifi@wifi-desktop:/$ su root

_ update (  upgrade 2&4 Ubuntu $) + 24$_#


wifi@wifi-desktop:/$ sudo apt-get update
wifi@wifi-desktop:/$ sudo apt-get upgrade

$%$6 41 
#3
6
(4''6  /etc/network/interfaces #"

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



wifi@wifi-desktop:/$ sudo nano /etc/network/interfaces

auto lo
iface lo inet loopback
auto eth0
auto eth1
iface eth1 inet dhcp

(4''6  /etc/sysctl.conf #"


wifi@wifi-desktop:/$ sudo nano /etc/sysctl.conf


4$ %' " *  39
net.ipv4.ip_forward=1

24$_# %' "


wifi@wifi-desktop:/$ echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward

( 4 restart 1 
 4$_#
wifi@wifi-desktop:/$ sudo /etc/init.d/networking restart

_ enable TUN/TAP device driver support + (4''6  /etc/modules


wifi@wifi-desktop:/$ sudo nano /etc/modules

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  




4$ %' " ) 4#'6 
tun

( 4 enable 4$_#
wifi@wifi-desktop:/$ sudo modprobe tun



, 
  



ChilliSpot + Ubuntu + phpmyprepaid0.4RC2

2. 0,),"156?*6:@6?+&A-,& Apache [27], [28]


0#536 ( Apache P
"#436 ((15 LAMP ( 42
" 
"# Ubuntu Linux #"5N#'% 4#
"#3"_ ( P $6 024#' 4 
#"
_& 2&43
6( #15( unsecure &0 http P24#' 4 
+ P4%$0#3
6"( 4 2&4
 localhost 2%#2&42% URL #
13 ( %P4 O24#5$0#0 
 '(  #$0#
3
6" 3N#2"$0 192.168.2.134 2%#2&42% URL #13
_& 2&43
6( #15( secure &0 https 5 4# $6 #"
 ssl module 4$_#
wifi@wifi-desktop:/$ sudo a2enmod ssl


"#'6  apache2-ssl.tar.gz + 24$_# %' "
wifi@wifi-desktop:/$ sudo wget ftp://ftp.psu.ac.th/pub/apache/apache2-ssl.tar.gz
wifi@wifi-desktop:/$ sudo tar zxvf apache2-ssl.tar.gz C tmp
wifi@wifi-desktop:/$ sudo mv /tmp/ssleay.cnf /usr/share/apache2
wifi@wifi-desktop:/$ sudo mv /tmp/apache2-ssl-certificate /usr/sbin
wifi@wifi-desktop:/$ sudo mkdir p /etc/apache2/ssl

4# certification 4$_#


wifi@wifi-desktop:/$ sudo apache2-ssl-certificate

54$2&4  2&4 Enter


/etc/apache2/sites-available/default #"

%# 515

( 4(4''6 

wifi@wifi-desktop:/$ sudo nano /etc/apache2/sites-available/default

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



(44$2'6 2&4 O #"


NameVirtualHost 10.0.134.1:80
NameVirtualHost 10.0.134.1:443
<VirtualHost 10.0.134.1:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
ServerName origin.hostname.domain
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
7

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



</Directory>
</VirtualHost>
<VirtualHost 10.0.134.1:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/secure/
ServerName new.name.domain
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/secure/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/secure/cgi-bin/
<Directory "/var/www/secure/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
</VirtualHost>

( 4 restart apache 4$_#


wifi@wifi-desktop:/$ sudo /etc/init.d/apache2 force-reload

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



3. 0,+( +"9:A'E),"156?*6:@6?+&A-,& FreeRADIUS [19], [26], [27]



"#36 ( 4$_#
wifi@wifi-desktop:/$ sudo apt-get install freeradius

#2&4 FreeRADIUS _# 4$_#


wifi@wifi-desktop:/$ sudo /etc/init.d/freeradius start

 _## FreeRADIUS 4$_#


wifi@wifi-desktop:/$ sudo radtest root your_root_password localhost 0 testing123

+ 5 %#$_#4# 4 2&4($%# your_root_password 4$% Password


 "#2" 4#?4240 root 
"# Ubuntu Linux & 
P 4# 5( #4$$ 4c #"
Sending Access-Request of id 144 to 127.0.0.1 port 1812
User-Name = "root"
User-Password = "your_root_password"
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=144, length=20

( #%P24# FreeRADIUS ' 4( 4 +  O


5  4 ?424
2 localhost

10

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



5" # $%$6 2'6  /etc/freeradius/clients.conf *


 35 +  $% secret  O%#0 ( 4#2&4 FreeRADIUS _#2&% 4$_#
sudo /etc/init.d/freeradius start (  _#$"#
4# RADIUS client 2&%+ 
4$2'6  /etc/freeradius/clients.conf 2
 ( %' " ( 4#2&4 FreeRADIUS _#2&%% _#
client 10.0.1.0/24 {
secret
shortname
}

= mytestkey
= private-network

11

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



4. 0,+( +"9:A'E),"156?*6:@6?+&A-,& ChilliSpot [26], [27]



"#36 ( 4$_#
wifi@wifi-desktop:/$ sudo apt-get install chillispot

3N#2" 
"# 52&42%4 %#c "  2&42%4 #"
IP address of radius server 1:
127.0.0.1

Radius shared secret:


sharedsecret

Ethernet interface for DHCP to listen:


eth0

URL for UAM server:


https://10.0.134.1/cgi-bin/hotspotlogin.cgi

URL for UAM homepage:


http://10.0.134.1/welcome.html

12

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



Shared password between chillispot and webserver:


sharedsecret

5"(4''6  /etc/default/chillispot #"


wifi@wifi-desktop:/$ sudo nano /etc/default/chillispot

+ 
4$ ENABLED=1 2  6 #'6 
(4''6  /etc/chilli.conf + 24$_# #"
wifi@wifi-desktop:/$ sudo nano /etc/chilli.conf

( 4(44$2'6  %#c #"


net 10.0.134.0/24
radiusserver1 127.0.0.1
radiusserver2 127.0.0.1
radiussecret sharedsecret
dhcpif eth0
uamserver https://10.0.134.1/cgi-bin/hotspotlogin.cgi
uamhomepage http://10.0.134.1/welcome.html
uamsecret sharedsecret
uamlisten 10.0.134.1
uamallowed www.psu.ac.th,redirect.psu.ac.th

13

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



_'6  firewall.iptables 24#+ 24$_# #"


wifi@wifi-desktop:/$ sudo cp /usr/share/doc/chillispot/firewall.iptables
/etc/init.d/chilli.iptables
wifi@wifi-desktop:/$ sudo chmod a+x /etc/init.d/chilli.iptables
wifi@wifi-desktop:/$ sudo ln s ../init.d/chilli.iptables /etc/scS.d/S41chilli.iptables

( 4(44$2'6  /etc/init.d/chilli.iptables + 24$_# #"


wifi@wifi-desktop:/$ sudo nano /etc/init.d/chilli.iptables


4$ %' " *  19 (  20
EXTIF="eth1"
INTIF="eth0"

( 424$_# %' "0#2&4 firewall _#


wifi@wifi-desktop:/$ sudo /etc/init.d/chilli.iptables

_'6  hotspotlogin.cgi 24#+ 24$_# #"


wifi@wifi-desktop:/$ sudo mkdir p /var/www/secure/cgi-bin
wifi@wifi-desktop:/$ zcat c /usr/share/doc/chillispot/hotspotlogin.cgi.gz | sudo tee
/var/ww/secure/cgi-bin/hotspotlogin.cgi
wifi@wifi-desktop:/$ sudo chmod a+x /var/www/secure/cgi-bin/hotspotlogin.cgi

( 4(44$2'6  /var/www/secure/cgi-bin/hotspotlogin.cgi + 24$_# #"


wifi@wifi-desktop:/$ sudo nano /var/www/secure/cgi-bin/hotspotlogin.cgi

14

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  




comment (   Password # *  27 (  31 #"
$uamsecret = "sharedsecret";
$userpassword=1;

4#'6  /var/www/welcome.html 0 O&4(_&424# + 5


 ( # %#
<html>
<head>
<title>Welcome to Eiffel Hotspot, Wireless Network.</title>
</head>
<body>
<center>
<H1><font color="red">TESTING ONLY</font></H1>
<img src="Paris_scene.jpg" mce_src="Paris_scene.jpg">
<H3><font color="blue">Welcome to Eiffel Hotspot, Wireless
Network.</font></H3>
<p>You are connected to an authentication and restricted network access point.
<H3><a href="http://10.0.134.1:3990/prelogin"
mce_href="http://10.0.134.1:3990/prelogin">Click here to login</a></H3>
<p>
<p>Enjoy.
</center>
</body>
</html>

3N#5' 4&41 # -2

15

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



 -2 %#&41 Welcome


#
_## ChilliSpot 4$_#
wifi@wifi-desktop:/$ sudo /etc/init.d/chillispot start

16

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



5. 0,3J=6#+K6A'EL3M:05,J6K0N,M!0
2" "5 4#0 %) *(343
65 $0%
'4 0 %1 
2 1 #( #2 -1 3N# "#$%#(35
( %#' ( 4( %&4 ( %+ '  "#$%_$x #"
1. SSID #$0% "# O0 Eiffel
2. Channel  0%#xx* $&( 4
"#
3. IP address  02&4(3& '(  53
6
5 $0%'4 ( 2&4$0#?424& '53
6%
3N#0 %(33
65 $0%'4( 4 00 %$0#
?424$0%'40 Eiffel (  13' #1'3 2 c 5( #&41
Welcome # -2 0$

# Click here to login 5' 4&4 Web Login # -3

 -3 &4 Web Login # ChilliSpot

17

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



2" " 2&424 Username (  Password # root 3N#4#N"2" 


"#
Ubuntu Linux ( 4$
)y Login 5P424$0%'4' 4 + 5( #&4
P# Login 4
#2&4 Logout # -4

 -4 &4( #P# Login


( 0
") 24#(  4#5 2&4$

# Logout 05
3N#5&4( #P* Logout 4
# Login 0424#$"# #( #2
 -5

 -5 &4( #P# Logout


18

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



6. 0,),"156?*$J=6 Login  L3MQ0M6#2'R2ML3M.0 MySQL [26], [27]


24#2&4( 4 O24 Username (  Password 3N# O root #$0#
3
6# 3N#224#5
#5 4#4#`4 # Username (  Password N"
2&%02&4#?424#5_
#"5N# 4#_ $6 02&45 
$0%'44#
#`4 ?4243N#4#N"2&%36 ( MySQL 3N#"  #"

"#36 (

 #"
wifi@wifi-desktop:/etc/freeradius$ sudo apt-get install freeradius-mysql

4#`4 ?424+ __ (4 54 0"`#


FreeRADIUS #"
wifi@wifi-desktop:/$ zcat /usr/share/doc/freeradius/examples/mysql.sql.gz | mysql -u
root -p radius

02&42% Password 2&42% O mysqladminsecret ' 4 "#'42$"#( 



"#36 ((15 LAMP 5"4#`4 0 radius 0
x?424
#2`4 2& # #"
wifi@wifi-desktop:/$ mysql -u root -p
mysql> GRANT ALL PRIVILEGES ON radius.* TO 'radius'@'localhost'
IDENTIFIED BY 'mysqladminsecret';
mysql> FLUSH PRIVILEGES;
mysql> quit

(4''6  /etc/freeradius/sql.conf (  /etc/freeradius/radiusd.conf #"


wifi@wifi-desktop:/etc/freeradius$ sudo nano -w /etc/freeradius/sql.conf

19

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



(4'$6 *  20-25 2&4 O #"


# Connect info
server = "localhost"
login = "radius"
password = "mysqladminsecret"
# Database table configuration
radius_db = "radius"

wifi@wifi-desktop:/etc/freeradius$ sudo nano -w /etc/freeradius/radiusd.conf

(4'$6 *  1863-1870 2&4 O #" + 2%$0#& # &4$_


% files (  $0#& # &4$_% sql 

#
# Read the 'users' file
files
#
# Look in an SQL database. The schema of the database
# is meant to mirror the "users" file.
#
# See "Authorization Queries" in sql.conf
sql

"# *  2038 2&4 $0#& # &4$_% sql 


#
# Log traffic to an SQL database.
#
# See "Accounting queries" in sql.conf
sql

20

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



#
?4240 mysqltest (  Password  O testsecret #2`4 + 24
$_# #"
wifi@wifi-desktop:/etc/freeradius$ mysql -uroot -pmysqladminsecret
mysql> use radius
mysql> INSERT INTO radcheck (UserName, Attribute, Op, Value) VALUES
('mysqltest', 'Password', '==', 'testsecret');
mysql> quit

5" restart FreeRADIUS 4$_#


wifi@wifi-desktop:/etc/freeradius$ sudo /etc/init.d/freeradius restart

 
5  # FreeRADIUS 4 Username (  Password 
4
' 2 4$_#
wifi@wifi-desktop:/etc/freeradius$ sudo radtest mysqltest testsecret 127.0.0.1 0
sharedsecret

5' 4? #" ( #%P


5  `4 4#N"' 4( 4
Sending Access-Request of id 152 to 127.0.0.1 port 1812
User-Name = "mysqltest"
User-Password = "testsecret"
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=152, length=20

21

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



5"  424#$0%'4 +  Login 4 Username ( 


Password 
 #2`4 5 4#P424#$0%'4' 4&0
* Login 4 Username (  Password # root

22

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



7. 0,+( +"9:@6?+&A-,& phpMyPrepaid A'E),"156?*$J=6L3M:0,K-#" [25], [26],


[29]
2&4"5 %PN#
"#36 ( phpMyPrepaid 0_&45 `4
?424# +  phpMyPrepaid 54#( 5 `4 ?424#4#
#36 ( MySQL
3N#24#?%P24#5 $0%'4`4 # %' 4( 4 5N#
& 0# $6 ( 
"#36 ( phpMyPrepaid 02&4P24#' 4%
+ "  #"
`4 radius 
24 2" ?% + 24$_# #"
wifi@wifi-desktop:/etc/freeradius$ mysql -uroot -pmysqladminsecret
mysql> DROP DATABASE radius;
mysql> quit

4#`4 2&% 0 phpmyprepaid + 24$_# #"


wifi@wifi-desktop:/etc/freeradius$ mysql -uroot pmysqladminsecret
mysql> CREATE DATABASE phpmyprepaid;
mysql> GRANT ALL PRIVILEGES ON phpmyprepaid.* to
'phpmyprepaid'@'localhost' IDENTIFIED BY 'prepaidadminsecret';
mysql> FLUSH PRIVILEGES;
mysql> quit

(4''6  /etc/freeradius/sql.conf #"


wifi@wifi-desktop:/etc/freeradius$ sudo nano sql.conf

(4'$6 *  20-25 2&4 O #"

23

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



# Connect info
server = "localhost"
login = "phpmyprepaid"
password = "prepaidadminsecret"
# Database table configuration
radius_db = "phpmyprepaid"

5" restart FreeRADIUS 4$_#


wifi@wifi-desktop:/etc/freeradius$ sudo /etc/init.d/freeradius restart

(4''6  /etc/freeradius/radiusd.conf #"


wifi@wifi-desktop:/etc/freeradius$ sudo nano -w /etc/freeradius/radiusd.conf


% sqlcounter  *  1461 #"
sqlcounter noresetcounter {
counter-name = Max-All-Session-Time
check-name = Max-All-Session
sqlmod-inst = sql
key = User-Name
reset = never
query = "SELECT SUM(AcctSessionTime) FROM radacct WHERE
UserName='%{%k}'"
}

( 
4$ *  1896 (4) #% authorize) #"
# Append for sql counter 30082008
noresetcounter
dailycounter
monthlycounter

24



, 
  



ChilliSpot + Ubuntu + phpmyprepaid0.4RC2

5" restart FreeRADIUS $"# 4$_#


wifi@wifi-desktop:/etc/freeradius$ sudo /etc/init.d/freeradius restart

4#'6  dictionary.chillispot 2'  /etc/freeradius #"


wifi@wifi-desktop:/etc/freeradius$ sudo nano /etc/freeradius/dictionary.chillispot

2&44$ #"
#
#
#
#
#
#

ChilliSpot (and CoovaChilli) captive portal


http://coova.org/wiki/index.php/CoovaChilli
$Id: dictionary.chillispot,v 1.3 2007/09/24 16:16:22 dwbird Exp $

VENDOR

ChilliSpot

BEGIN-VENDOR

14559

ChilliSpot

ATTRIBUTE ChilliSpot-Max-Input-Octets

integer

ATTRIBUTE ChilliSpot-Max-Output-Octets

ATTRIBUTE ChilliSpot-Max-Total-Octets
ATTRIBUTE

ChilliSpot-Bandwidth-Max-Up

ATTRIBUTE

ChilliSpot-Bandwidth-Max-Down

ATTRIBUTE

ChilliSpot-Config

ATTRIBUTE

ChilliSpot-Lang

ATTRIBUTE

ChilliSpot-Version

ATTRIBUTE

ChilliSpot-OriginalURL

ATTRIBUTE

ChilliSpot-Acct-View-Point

ATTRIBUTE

ChilliSpot-Require-UAM

ATTRIBUTE

ChilliSpot-Require-Splash

integer

integer

4
5

6
7
8
9

integer
integer

string
string
string
string

10

integer

11 string
12 string

25

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



13 string

ATTRIBUTE

ChilliSpot-Route-To-Interface

ATTRIBUTE

ChilliSpot-DHCP-Vendor-Class-Id

ATTRIBUTE

ChilliSpot-DHCP-Client-Id

ATTRIBUTE

ChilliSpot-DHCP-Options

ATTRIBUTE

ChilliSpot-DHCP-Filename

ATTRIBUTE

ChilliSpot-DHCP-Hostname

ATTRIBUTE

ChilliSpot-DHCP-Server-Name

ATTRIBUTE

ChilliSpot-DHCP-Client-FQDN

ATTRIBUTE

ChilliSpot-DHCP-Parameter-Request-List 57

50 string
51
52
53
54
55
56

string
string
string
string
string
string
string

VALUE

ChilliSpot-Acct-View-Point ChilliSpot-NAS-View-Point

VALUE

ChilliSpot-Acct-View-Point ChilliSpot-Client-View-Point 2

# Configuration management parameters (ChilliSpot Only)


ATTRIBUTE ChilliSpot-UAM-Allowed
100

string

101

string

ATTRIBUTE ChilliSpot-MAC-Allowed
ATTRIBUTE ChilliSpot-Interval

102

integer

# Inline with RFC 2882 use of VSE-Authorize-Only for remote config


# Note that 14559 = 0x38df is used as prefix for the VSE.
# This is recognized as the best (but bad) way of doing VSEs.
# (ChilliSpot Only - CoovaChilli uses Service-Type = Administrative-User)
VALUE
Service-Type
ChilliSpot-Authorize-Only
0x38df0001
END-VENDOR

ChilliSpot

( 4
4$2'6  /etc/freeradius/dictionary 2&44$ %' " *
  15
$INCLUDE

/etc/freeradius/dictionary.chillispot

5" restart FreeRADIUS $"# 4$_#


26

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



wifi@wifi-desktop:/etc/freeradius$ sudo /etc/init.d/freeradius restart


"#36 ( php5 4$_# #"
wifi@wifi-desktop:/etc/freeradius$ sudo apt-get install php5


"#36 ( rrdtool 4$_# #"
wifi@wifi-desktop:/etc/freeradius$ sudo apt-get install rrdtool


"#36 ( phpMyPrepaid +  +& '6 5
# %' "
http://downloads.sourceforge.net/phpmyprepaid/phpmyprepaid04RC2.tgz

1'42'  /home/wifi ( 424$_# #"


wifi@wifi-desktop:~$ cd /var/www
wifi@wifi-desktop:/var/www$ sudo tar -xvf /home/wifi/phpmyprepaid04RC2.tar
wifi@wifi-desktop:/var/www$ sudo chown -R www-data:www-data
/var/www/phpmyprepaid

0"  # %15
"( 4 $0#3
65 $0%'42&4
 3
 URL http://10.0.134.1/phpmyprepaid/www/install/setup.php
04%" 
"# 3N#5' 41&4( Welcome to PhpMyPrepaid Setup
 -6

27

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



 -6 4%&41



"# phpMyPrepaid
$
)y Start ) %# 54%"(5#0# License # -7 $

$0#&P&4$_% I Accept ( 4$


Next

 -7 $_"(5# License


28

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



54%&4 Verifying Configuration 3N#5( #?  5$0#5



"# # -8 &)%#'% |x&2&4 $
Next 0 _
 %

 -8 ?  5$6 #$0#


54%&4 Environment Configuration # -9 &)%#'% |x&2&4
$
Next

29

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



 -9 ?  5( 4#$0#


54%&4 Radius Configuration # -10 2&4$
Next

 -10  5$6 # RADIUS

30

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



54%&4 User Interface Configuration # -11 2&44


Administrator login 5242424#0
"#15
"( 4 ( 
0 Administrator ( 4$
Next

 -11  "#$%$6 2424#


54%&4 Database Configuration # -12 2&44 Root password,
Database name (  Database Password  O mysqladminsecret, phpmyprepaid ( 
Password  O prepaidadminsecret _& 4#`4 ( 4$
Next

31

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



 -12  "#$%$6 2


%`4 4#'4( 4
5( #P#4# Database 0)%#15( 42&4$
Next

 -13 ( #P#4#`4

32

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



5" "#$% Location # -14 ( 4$


Next

 -14  "#$% Location


"#$% general configuration # -15 ( 4$
Next

 -15  "#$% general configuration


33

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



5' 4&4 %# # -16 $


You can now return to your configured interface.

 -16 &4 Installation Finished


5 4%&4P Login 4% # -17 3N#54$(54#2&4
' 
"# (  +& #' 

 -17 &4 Installation Finished


34

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



24$_#04' ' 1'4 /home/wifi % (  +& #' 


 #"
wifi@wifi-desktop:/etc$ sudo mv /var/www/phpmyprepaid/www/install/ /home/wifi/
wifi@wifi-desktop:/var/www/phpmyprepaid$ sudo chmod 755
/var/www/phpmyprepaid/www

 O15
"" 2
"#36 ( phpMyPrepaid

35

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



8. 0,L3M:0@6?+&A-,& phpMyPrepaid
0_
"#36 ( phpMyPrepaid 15( 4 5P24#' 4+  
3( 
 URL http://10.0.134.1/phpmyprepaid/www/ 5' 4&42&42% Username ( 
Password 2&4244 2"   -11 ( 4$
)y Login

 -18 &4 Login # phpMyPrepaid


5P4%&4(#' 4 # -19

 -19 &4(#5 x?424 4 phpMyPrepaid


36

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



2(P# 4340 2 4&4 Create Accounts 52&4 04#x?4


24' 4& ( # -20

 -20  Create Accounts 2424#x?424


0 0 Timed Accounts 5P4#x?424P24#' 4  
_& &   % 30  (  10 +# + P_& 5_x 4#4#
' 4 0$
CREATE CARDS 54#x?4242&4+  +
# -21

 -21 4#x?424( Timed Accounts

37

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



%x?424( Octets Accounts 5 O4#x?424P24#' 4 


5_4 _& 2&4%#' 4 % 20 Mega Octets &0 20 Giga Octets  O 4 
  # Billing Plan _& '4 %#&4( 4 + P_& 5_x 4#
4#' 4%  ( 54#x?4242&4+  +
#( #2 -22

 -22 4#x?424( Octets Accounts


x?424( Expiration Accounts P_& ' 4%xP24#' 4PN#02
 Billing Plan _& ( 54#x?4242&4+  +
5_ 4# #
( #2 -23

 -23 4#x?424( Expiration Accounts


_&x?424( Subscriber Timed 5 O4#x?424(P_&
Username (  Password  4#4#' 4 ( P2%4 4#?424#x"
' 4 + 5%#0-) &  $4  (   "#P_& 5_
38

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



session P24#4 ( P5_ ( 


2 upload (  download 4
' 4 #( #2 -24

 -24 4#x?424( Subscriber Time


%x?424( Mac Account 5 O_& x?424+ 4#
#&  MAC
address #$0#?424 3N#&'% #_& 15'%P24#' 4  O24
5
 ( MAC address filtering # -25

 -25 4#x?424( Mac Account

39

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



4#x?424 %4# 4  Ox?424  ( Billing Plan _& N"


( 4+ 36 ( phpMyPrepaid 3N##P2&4?4 ( P4# Billing Plan
N"' 4 $ 4# + 5 4# 04# Billing Plan 2# 4340 3N#P
4# Billing Plan ' 4 3 ( ' 4(% Time, Octets (  Expiration #( #2 -26

 -26 4# Billing Plan 




0$
 0 Add Billing Plan 2 4340 2 4 Billing Plan # -27

 -27 4# Billing Plan 2&%


40

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



5P_&   24# Billing Plan 2&%' 4 # -28 (  -29
' 4(% 0# Billing Plan, # Billing Plan, $%245%224#( %  Account,
5_ session P24#' 44, 5_4 #) P upload ' 4,  
& )#x( % x ( P5_ ( 
2 upload (  download 4

 -28   #4# Billing Plan (1)

41

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



 -29   #4# Billing Plan (2)


& #5' 4_4#x?424  %#' ( 4 P   #x?424
(  #x' 4 #( #2 -30 3N# O( #x( Timed Accounts
%2 + $
 Timed Accounts 2 4&4 View Accounts 2 4340

 -30 ( #x?424( Timed Accounts 2


P( #?424424#2"c' 4 #( #2 -31 + $

Today 2 4&4 Useful View Accounts 2 4340
42

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



 -31 ( #x?424"#& 424#2 1 


( ##P

24# + $
 General statistics 2 4&4
Statistics # -32

 -32 P

24#
( #P

24#+ (  # Account (  Billing Plan #( #2
 -33

43

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2



, 
  



 -33 P

24#(  Account (  Billing Plan
5"#P5 `4 2' 4& ( + $
 Database mgt
2 4340 # -34

 -34 5 `4 #

44

You might also like