PPPoE-Server : Freeradius unlang clear user after client disconnect EasyZone - บริการ Software จัดการ อินเตอร์เน็ตในหอพัก, อพาร์ทเมนท์, แมนชั่น, คอนโด, โรงแรม
 


หน้าแรก | ลงทะเบียน | เข้าสู่ระบบ | สินค้าและบริการ | ลูกค้าของเรา | Dealer | Install | Support | ติดต่อ | DEMO
02-691-6382 (Office), 089-758-0691(ฝ่ายขาย), 086-644-2243 (ฝ่ายเทคนิค)

EasyZone Pro30 : บริการโปรแกรม Radius, Hotspot, PPPoE billing


  

 Question: PPPoE-Server : Freeradius unlang clear user after client disconnect

 

This method uses for PPPoE-Server with low signal to client (such as PPPoE Hotspot). when client get low signal . client always disconnect  from PPPoE dialup but user at PPPoE-Server still alive. so client can not connect to server. they must wait until server is clear the user.

 

this Freeradius unlang to clear user on server when client login again.

i setup on

Ubuntu 9.04 server i386

rp-pppoe 3.10

freeradius 2.1.0

ppp 2.4.5

 

add this line to your /etc/freeradius/site-enabled/default

on authorize section.

authorize {

#

#  The preprocess module takes care of sanitizing some bizarre

#  attributes in the request, and turning them into attributes

#  which are more standard.

#

#  It takes care of processing the 'raddb/hints' and the

#  'raddb/huntgroups' files.

#

#  It also adds the %{Client-IP-Address} attribute to the request.

preprocess

 

#Clear UserName

if (User-Name){  

"%{sql: UPDATE radacct set AcctTerminateCause='Clear-User',AcctStatusType='Stop',AcctStopTime=last_update WHERE UserName='%{User-Name}' and AcctStatusType!='Stop' and  CallingStationId='%{Calling-Station-Id}'}" 

}

 

 

 

 

 



  by: EasyZone      วันที่ 6/9/2553 - 16:44:30  

 it gives me error like "Line is not in 'attribute = value' format" at if (User-Name).

  By: sanjay   Date 05/03/2553 - 12:39:17  59.95.253.92,  [delete] 

 post your debug mode. i will check it.

  By: EasyZone   Date 05/03/2553 - 12:41:49  125.26.196.106.adsl.dynamic.totbb.net,  [delete] 




Question and Comment
name:
Email:
message:
Security Code :
    * กรุณากรอก Security Code เพื่อป้องการกันการโจมตีเว็บบอร์ด
 

Back