Professional Documents
Culture Documents
Chilli Spot Ubuntu
Chilli Spot Ubuntu
4RC2
,
,
$%$6 41
#3
6
(4''6 /etc/network/interfaces #"
,
auto lo
iface lo inet loopback
auto eth0
auto eth1
iface eth1 inet dhcp
4$
%'"* 39
net.ipv4.ip_forward=1
( 4 restart 1
4$_#
wifi@wifi-desktop:/$ sudo /etc/init.d/networking restart
,
4$
%'" ) 4#'6
tun
( 4 enable 4$_#
wifi@wifi-desktop:/$ sudo modprobe tun
,
"#'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
%# 515
( 4(4''6
,
,
</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>
,
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
</VirtualHost>
,
10
,
= mytestkey
= private-network
11
,
3N#2"
"# 52&42%4
%#c
"
2&42%4 #"
IP address of radius server 1:
127.0.0.1
12
,
+
4$ ENABLED=1 2 6 #'6
(4''6 /etc/chilli.conf + 24$_# #"
wifi@wifi-desktop:/$ sudo nano /etc/chilli.conf
13
,
4$
%'"* 19 ( 20
EXTIF="eth1"
INTIF="eth0"
14
,
comment ( Password #* 27 ( 31 #"
$uamsecret = "sharedsecret";
$userpassword=1;
15
,
16
,
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
17
,
,
19
,
#
# 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
20
,
#
?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
# FreeRADIUS 4 Username ( Password
4
'2 4$_#
wifi@wifi-desktop:/etc/freeradius$ sudo radtest mysqltest testsecret 127.0.0.1 0
sharedsecret
21
,
22
,
23
,
# Connect info
server = "localhost"
login = "phpmyprepaid"
password = "prepaidadminsecret"
# Database table configuration
radius_db = "phpmyprepaid"
% 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
,
2&44$ #"
#
#
#
#
#
#
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
,
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
string
101
string
ATTRIBUTE ChilliSpot-MAC-Allowed
ATTRIBUTE ChilliSpot-Interval
102
integer
ChilliSpot
( 4
4$2'6 /etc/freeradius/dictionary 2&44$
%'"*
15
$INCLUDE
/etc/freeradius/dictionary.chillispot
,
"#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
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
,
,
29
,
30
,
31
,
32
,
,
,
O15
""
2
"#36
( phpMyPrepaid
35
,
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
,
37
,
,
39
,
,
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
41
,
,
-32 P
24#
( #P
24#+ (
# Account ( Billing Plan #( #2
-33
43
,
-33 P
24#(
Account ( Billing Plan
5"#P5 `4 2' 4& ( + $
Database mgt
2 4340 # -34
44