freeradius 1.1.0 with rp-pppoe 3.8 pppoe-server

root linux rootlinux at yahoo.com
Mon May 22 10:28:02 CEST 2006


How do I check is PPPoE sending the attribute to
FreeRADIUS?

Below is the freeradius in debug mode: -

rad_recv: Access-Request packet from host
127.0.0.1:32793, id=32, length=88
        Service-Type = Framed-User
        Framed-Protocol = PPP
        User-Name = "guest"
        User-Password = "guest"
        Calling-Station-Id = "00:04:E2:48:7E:D8"
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
  modcall[authorize]: module "preprocess" returns ok
for request 0
  modcall[authorize]: module "chap" returns noop for
request 0
  modcall[authorize]: module "mschap" returns noop for
request 0
    rlm_realm: No '@' in User-Name = "guest", looking
up realm NULL
    rlm_realm: No such realm "NULL"
  modcall[authorize]: module "suffix" returns noop for
request 0
radius_xlat:  'guest'
rlm_sql (sql): sql_set_user escaped user --> 'guest'
radius_xlat:  'SELECT id,UserName,Attribute,Value,op
FROM radcheck WHERE Username = 'guest' ORDER BY id'
rlm_sql (sql): Reserving sql socket id: 3
radius_xlat:  'SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op
 FROM radgroupcheck,usergroup WHERE usergroup.Username
= 'guest' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id'
radius_xlat:  'SELECT id,UserName,Attribute,Value,op
FROM radreply WHERE Username = 'guest' ORDER BY id'
radius_xlat:  'SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value,radgroupreply.op
 FROM radgroupreply,usergroup WHERE usergroup.Username
= 'guest' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id'
rlm_sql (sql): Released sql socket id: 3
  modcall[authorize]: module "sql" returns ok for
request 0
rlm_sqlcounter: Entering module authorize code
rlm_sqlcounter: Could not find Check item value pair
  modcall[authorize]: module "noresetcounter" returns
noop for request 0
modcall: leaving group authorize (returns ok) for
request 0
  rad_check_password:  Found Auth-Type Local
auth: type Local
auth: user supplied User-Password matches local
User-Password
  Processing the session section of radiusd.conf
modcall: entering group session for request 0
radius_xlat:  'guest'
rlm_sql (sql): sql_set_user escaped user --> 'guest'
radius_xlat:  'SELECT COUNT(*) FROM radacct WHERE
UserName='guest' AND AcctStopTime = 0'
rlm_sql (sql): Reserving sql socket id: 2
rlm_sql (sql): Released sql socket id: 2
  modcall[session]: module "sql" returns ok for
request 0
modcall: leaving group session (returns ok) for
request 0
Login OK: [guest/guest] (from client localhost port 0
cli 00:04:E2:48:7E:D8)
  Processing the post-auth section of radiusd.conf
modcall: entering group post-auth for request 0
rlm_sql (sql): Processing sql_postauth
radius_xlat:  'guest'
rlm_sql (sql): sql_set_user escaped user --> 'guest'
radius_xlat:  'INSERT into radpostauth (id, user,
pass, reply, date) values ('', 'guest', 'guest',
'Access-Accept', NOW())'
rlm_sql (sql) in sql_postauth: query is INSERT into
radpostauth (id, user, pass, reply, date) values ('',
'guest', 'guest', 'Access-Accept', NOW())
rlm_sql (sql): Reserving sql socket id: 1
rlm_sql (sql): Released sql socket id: 1
  modcall[post-auth]: module "sql" returns ok for
request 0
modcall: leaving group post-auth (returns ok) for
request 0
Sending Access-Accept of id 32 to 127.0.0.1 port 32793
        Framed-Protocol = PPP
        Framed-Routing = Broadcast-Listen
        Framed-Compression = Van-Jacobson-TCP-IP
        RP-Upstream-Speed-Limit = 64
        RP-Downstream-Speed-Limit = 64
        Service-Type = Framed-User
        Framed-MTU = 1500
        Idle-Timeout = 60
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Accounting-Request packet from host
127.0.0.1:32793, id=33, length=116
        Acct-Session-Id = "446BD2061D7D00"
        User-Name = "guest"
        Acct-Status-Type = Start
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Calling-Station-Id = "00:04:E2:48:7E:D8"
        Acct-Authentic = RADIUS
        NAS-Port-Type = Async
        Framed-IP-Address = 10.38.1.7
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
        Acct-Delay-Time = 0
  Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 1
  modcall[preacct]: module "preprocess" returns noop
for request 1
rlm_acct_unique: Hashing 'NAS-Port =
0,Client-IP-Address = 127.0.0.1,NAS-IP-Address =
127.0.0.1,Acct-Session-Id = "446BD2061D7D00",User-Name
= "guest"'
rlm_acct_unique: Acct-Unique-Session-ID =
"0df05a425b9215fd".
  modcall[preacct]: module "acct_unique" returns ok
for request 1
    rlm_realm: No '@' in User-Name = "guest", looking
up realm NULL
    rlm_realm: No such realm "NULL"
  modcall[preacct]: module "suffix" returns noop for
request 1
modcall: leaving group preacct (returns ok) for
request 1
  Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 1
radius_xlat: 
'/usr/local/var/log/radius/radacct/127.0.0.1/detail-20060518'
rlm_detail:
/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d
expands to
/usr/local/var/log/radius/radacct/127.0.0.1/detail-20060518
  modcall[accounting]: module "detail" returns ok for
request 1
  modcall[accounting]: module "unix" returns ok for
request 1
radius_xlat:  '/usr/local/var/log/radius/radutmp'
radius_xlat:  'guest'
  modcall[accounting]: module "radutmp" returns ok for
request 1
radius_xlat:  'guest'
rlm_sql (sql): sql_set_user escaped user --> 'guest'
radius_xlat:  'INSERT into radacct (AcctSessionId,
AcctUniqueId, UserName, Realm, NASIPAddress,
NASPortId, NASPortType, AcctStartTime, AcctStopTime,
AcctSessionTime, AcctAuthentic, ConnectInfo_start,
ConnectInfo_stop, AcctInputOctets, AcctOutputOctets,
CalledStationId, CallingStationId, AcctTerminateCause,
ServiceType, FramedProtocol, FramedIPAddress,
AcctStartDelay, AcctStopDelay)
values('446BD2061D7D00', '0df05a425b9215fd', 'guest',
'', '127.0.0.1', '0', 'Async', '2006-05-18 09:46:46',
'0', '0', 'RADIUS', '', '', '0', '0', '',
'00:04:E2:48:7E:D8', '', 'Framed-User', 'PPP',
'10.38.1.7', '0', '0')'
rlm_sql (sql): Reserving sql socket id: 0
rlm_sql (sql): Released sql socket id: 0
  modcall[accounting]: module "sql" returns ok for
request 1
modcall: leaving group accounting (returns ok) for
request 1
Sending Accounting-Response of id 33 to 127.0.0.1 port
32793
Finished request 1
Going to the next request
--- Walking the entire request list ---
Waking up in 5 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 32 with timestamp 446bd205
Waking up in 1 seconds...
--- Walking the entire request list ---
Cleaning up request 1 ID 33 with timestamp 446bd206
Nothing to do.  Sleeping until we see a request.



--- Alan DeKok <aland at nitros9.org> wrote:

> root linux <rootlinux at yahoo.com> wrote:
> > Below is the command I run for pppoe-server: -
> > 
> > pppoe-server -I eth1 -k -L 10.3.0.1 -R 10.3.1.1
> ...
> > I did perform a download speed test and the
> download
> > speed is not correct. I can't get 128kbits but I
> get
> > the full speed of 1Mbps, why?
> 
>   Did  PPPoE send a RADIUS request to the server?
> 
>   Why is it so difficult to run the server in
> debugging mode?
> 
> > Doest the attribute field below works for
> FreeRADIUS?
> 
>   They work fine in FreeRADIUS.  But you have no
> idea if PPoE is doing
> RADIUS for authentication, you have no idea if
> FreeRADIUS is sending
> those attributes in the reply (if any), and you have
> no idea if PPPoE
> is listening to those attributes.
> 
>   Follow the FreeRADIUS documentation, and the PPPoE
> documentation for
> configured the servers.
> 
>   Alan DeKok.
> 
> - 
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Freeradius-Users mailing list