Chillispot-ubuntu

  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Chillispot-ubuntu as PDF for free.

More details

  • Words: 3,524
  • Pages: 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&  '(  5ก3 65 ก$0%'4 eth1 $0ก 0 %1  ก2 2 %ก 1 ( ' 4& ' (  5ก DHCP server 2 1 (ก3( $0#?424 ' 4& '(  5ก3 6 5 ก$0%'4

2

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 (' 45ก1'3  www.ubuntu.com 3N#2" ก "#" 2&4 "#36 ((1กก5   ' 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 #"

3

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

4

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2

  ,      

 4$ %' " ) 4#'6  tun

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

5

  ,      

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2

2. ก0,),"156?*ก6:@6?+&A-,& Apache [27], [28] 0#5ก36 ( Apache Pก "#4ก36 ((1กก5 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 Oก24#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

6

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2

  ,      

(ก44$2'6 2&4 O #" NameVirtualHost 10.0.134.1:80 NameVirtualHost 10.0.134.1:443 ServerAdmin webmaster@localhost DocumentRoot /var/www/ ServerName origin.hostname.domain Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all 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/" 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

  ,      

ServerAdmin webmaster@localhost DocumentRoot /var/www/secure/ ServerName new.name.domain Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /var/www/secure/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all 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/" Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128

8

ChilliSpot + Ubuntu + phpmyprepaid0.4RC2

  ,      

SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem


( 4 restart apache 4$_# wifi@wifi-desktop:/$ sudo /etc/init.d/apache2 force-reload

9

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  ( # %# Welcome to Eiffel Hotspot, Wireless Network.

TESTING ONLY

Welcome to Eiffel Hotspot, Wireless Network.

You are connected to an authentication and restricted network access point.

Click here to login

Enjoy.



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 %) ก*(ก34ก3 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  0ก2&4(ก3& '(  5ก3 6 5 ก$0%'4 ( 2&4$0#?424& '5ก3 6%ก 3N#0 %(ก3ก3 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 0ก5ก 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 Oก24 Username (  Password 3N# O root #$0# 3 6# 3N#2ก24#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 5ก4 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 ((1กก5 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ก"  4ก24#$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

1

ATTRIBUTE ChilliSpot-Max-Input-Octets

integer

2

ATTRIBUTE ChilliSpot-Max-Output-Octets

3

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

1

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&4กก4 Administrator login 5242ก424#0 "#15 "( 4 ( กก 0 Administrator ( 4$ ก Next

 -11 ก "#$%$6 ก2ก424# 54%&4 Database Configuration # -12 2&4กก4 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 0ก4#x?4 24' 4& ( # -20

 -20  Create Accounts 242ก4#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 Oก4#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 Oก4#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  Oก24ก 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# 0ก4# 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ก_&   2ก4# Billing Plan 2&%' 4 # -28 (  -29 ' 4(ก% 0# Billing Plan, # Billing Plan, $%245%2ก24#( %  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