0% found this document useful (0 votes)
426 views12 pages

Ezradius

The document describes radius attributes for different user types on an ezradius server. It provides configuration details for attributes like Acct-Interim-Interval, Idle-Timeout, Session-Timeout, WISPr-Redirection-URL, and WISPr-Bandwidth for users with roles like admin, teacher, student, and register. It also provides instructions on importing the radius configuration SQL file, adding user accounts, and configuring ezradius.

Uploaded by

int21
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
426 views12 pages

Ezradius

The document describes radius attributes for different user types on an ezradius server. It provides configuration details for attributes like Acct-Interim-Interval, Idle-Timeout, Session-Timeout, WISPr-Redirection-URL, and WISPr-Bandwidth for users with roles like admin, teacher, student, and register. It also provides instructions on importing the radius configuration SQL file, adding user accounts, and configuring ezradius.

Uploaded by

int21
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

กก Attribute ก raduis  ezradius 1

กก Attribute ก raduis  ezradius

 !" กก#$ attribute  !$%ก&$'() *+,+-


ก&$'() Attribute Value #
Service-Type Login-User
Acct-Interim-Interval 60 9:ก;<ก 60 ;
Idle-Timeout 900 ก@ 15 ;  Disconnect CCก9
admin Session-Timeout 54000 Login 1  E @ 15 . FC 54000 ;
WISPr-Redirection-URL web 9:
;LMCก  Nก Login @ 
WISPr-Bandwidth-Max-Down 1024000 กT9: download 9;ก
1024 kbps
WISPr-Bandwidth-Max-Up 512000 กT9: upload 9;ก
512 kbps
Service-Type Login-User
Acct-Interim-Interval 60 9:ก;<ก 60 ;
Idle-Timeout 900 ก@ 15 ;  Disconnect CCก9
teacher Session-Timeout 28800 Login 1  E @ 8 . FC 28800 ;
WISPr-Redirection-URL web 9:
;LMCก  Nก Login @ 
WISPr-Bandwidth-Max-Down 1024000 กT9: download 9;ก
1024 kbps
WISPr-Bandwidth-Max-Up 512000 กT9: upload 9;ก
512 kbps
Service-Type Login-User
Acct-Interim-Interval 60 9:ก;<ก 60 ;
Idle-Timeout 600 ก@ 10 ;  Disconnect CCก9
student Session-Timeout 3600 Login 1  E @ 1 . FC 3600 ;
WISPr-Redirection-URL web 9:
;LMCก  Nก Login @ 
WISPr-Bandwidth-Max-Down 512000 กT9: download 9;ก
1024 kbps
WISPr-Bandwidth-Max-Up 512000 กT9: upload 9;ก
512 kbps
Service-Type Login-User
Acct-Interim-Interval 60 9:ก;<ก 60 ;
Idle-Timeout 600 ก@ 10 ;  Disconnect CCก9
register Session-Timeout 7200 Login 1  E @ 2 . FC 7200 ;
WISPr-Redirection-URL web 9:
;LMCก  Nก Login @ 
WISPr-Bandwidth-Max-Down 512000 กT9: download 9;ก
1024 kbps
WISPr-Bandwidth-Max-Up 512000 กT9: upload 9;ก
512 kbps

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 2
 WISPr-Redirection-URL M Value FLC9:
;LMCก  Nก
Login
@  9 http://www.google.co.th

+*>() ก+

1. MM E@\ radius.sql ก dnmp @\ radius.sql   ก phpMyAdmin
 ^ @\ radius.sql  Nก www.kroonis.org/radius.sql

9FCก@\ sql NกC 9FCก@\_C `9FCก<C ก_`_C@\


9 a tis-620 Nก Eก;L <b CNก  กN` import M c _C radius d
;TdกMCN`@M; E 15 M  ^

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 3
2. 9 e9:
@fM http://10.0.0.1/admin/  Login 9_`

FLC : admin

  : passwd

ก 9 Eกก&$'()

9FLC  ก9Lก<
9Lก<  E
- admin
- teacher
- student
- school

2.1 ก <b ;LC FLCก<  ^ Nก Eก;L


<b 9FLC
;gกก<

2.2 ก <b N`ก9 a 9FLCก< admin d;T@

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 4
2.3 ก9 9L 9FCกก< admin `
<NT;LMCก
9 a 1 ก <b

C ก  กN` NT 1  Cก< admin ;<ก E;L


ก <b FGก  ^

2.4 ก 9 Eก'() 9FCกก< admin

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 5
 กN` FLCก< admin N`<Nก  / 9FC / h 9;L
  ^

 CกFLC ก<@ @ ;L Notepad ก:@

3. ;Tกก<;L9FC
FC teacher student school ;T
MT
_ EMC_C;L 2.1 - 2.4 ก:N`@ ก<;LNก  ก .
 

 ^

4. Iก() JK!ก ezradius +LM>ก#$ attibile $ N  radius


O*+L*>+* กMM E `  ก ezradius  Download ezradius Nก
9:
@fM

http://nchc.dl.sourceforge.net/sourceforge/ezradius/ezradius-0.2.1.2stable.tar.gz
 Nก  ezradius @   Mก@\N`@ 9C ezradius C
@\; E
9C@ @;LC www 9FLCก_MM E ` 9FLC config l_C radius
@

4.1 Mก@\ ezradius  Cก 9C @ @;LC


/usr/local/www/apacge22/data/ FCN`;C Appserv ก:@

4.2 9 e9:
@fM http://10.0.0.1/ezradius  กN` mC_C9_
`

กC
User Name : admin
Password : admin

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 6
 ^d @

4.3 ก9 Tool => config editor 9FLCM EMMCก


l_C radius

9 L Password T

ก EMC@

mC_Cก9FLCMCก

l_C radius dกMC

M EM c 9:N  ก <b Save 9FLC


;gกกM E

4.4 ก9 Manage => List => All groups  ^

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 7

กT L Detail M dก<

;LMCกN`กT Atrribute กT L add new attribute

MNC
กC9MC9:M
;<ก 60 *FZ

9FCก9:N ก <b Add atrribute  กN`;Tก ก@_l_C radius 9L


 attribute Acct-Interrim-Interval M radgroupreply C M  M

กT L add new attribute 9FLCกT Attribute  M;L 1


;L9FC
 ^

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 8

!" #$ Attribute ก&$'()  admin

!" #$ Attribute ก&$'()  teacher

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 9

!" #$ Attribute ก&$'()  student M ก&$'() F>[K

5. MNC
  ก ezradius @9L atrribute NFC@ 9 e
phpMyAdmin _gE 9กl_C radius N`
  ก ezradius @9L
Atrribute M c 

p dกMC @MC99 ;ก T L9C9 9 a
FCCC

MNC
M radgroupcheck N`@ ^

MNC
M groups N`@ ^

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 10
MNC
M radgroupreply N`@ ^

6. 9 e  ก

C9MC9:M_C; 
 ;Tก
9L 9FLCก_ ;C
Login 9_C9MC9:M  กq d;T
M_ EMC;L9_ก; E ก:N`d
N ก
C9MC9:M@C
 @ error 9:Cก 

K]^FZ>LEกก()%*^)Z'() . L
1. logout ! User # $(% @CCCกNก`

 Nก e
M popup d`กC9MC9:M

!F !ก[K]^ ;T@r  E

1. ก popup 9LT L html link @ ;L http://10.0.0.1:3990/logoff 9C code


E @ @_C _CCr
ก (popup):

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 11
<div align="center"><a href="http://10.0.0.1:3990/logoff" title="+*ก() +-(#*กก
Eก%F&ก#I ++M#&e! !">[ กEก% ] </a></div>

FC9LT L ก ^ CCกNก`

;กก_C  E

<div align="center"><a href="http://10.0.0.1:3990/logoff"><b><img


src="https://10.0.1.1/admin/images/logout.gif"></b></a></div>

 admin MC@\ ^ logout.gif C


@ @;LC /admin/images

2. ก ก@_@\ hotspotlogin_popup.php 


;  function
doOnUnLoad() {  ก@_T L E

function doOnUnLoad() {

alert(\"#&eกEก%+Z!# \"); // 9

var browser=navigator.appName;

var b_version=navigator.appVersion;

var version=parseFloat(b_version);

if (browser!=\"Microsoft Internet Explorer\") {

self.opener.location = 'http://" . $_GET['uamip'] . ":" . $_GET['uamport'] . "/logoff';

} else {

self.location = 'http://" . $_GET['uamip'] . ":" . $_GET['uamport'] . "/logoff';

self.close();

</script>";

ก
 ก

 .
   
กก Attribute ก raduis  ezradius 12
ก@_ 9C alert(\"#&eกEก%+Z!# \"); $ก$F
self.close(); N`@9 a

function doOnUnLoad() {

var browser=navigator.appName;

var b_version=navigator.appVersion;

var version=parseFloat(b_version);

if (browser!=\"Microsoft Internet Explorer\") {

self.opener.location = 'http://" . $_GET['uamip'] . ":" . $_GET['uamport'] . "/logoff';

} else {

self.location = 'http://" . $_GET['uamip'] . ":" . $_GET['uamport'] . "/logoff';

alert(\"#&eกEก%+Z!# \"); // ก@_

self.close();

</script>";

FC @\ hotspotlogin_popup.php ;L ก@_9:N Nก9:


@fM ;L
http://www.kroonis.org/download/Authen/ hotspotlogin_popup.php

CC : ;L http://www.linuxthai.org/forum/index.php?topic=2260.0

ก
 ก

 .
   

You might also like