Hi
User profile:
b NAS-IP-Address == 192.168.31.10, Auth-Type :=
Local, Password == "b", Pool-Name :=
"RAS1"
Service-Type = Framed-User,
Framed-Protocol = PPP,
Framed-Routing = Broadcast-Listen,
Framed-MTU = 1500,
Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT NAS-IP-Address == 192.168.59.244, Auth-Type :=
Accept, Pool-Name := "RAS"
Fall-Through = 1
DEFAULT NAS-IP-Address == 192.168.31.10, Auth-Type :=
Accept, Pool-Name := "RAS1"
Fall-Through = 1
DEFAULT Auth-Type := CHAPPAP
Fall-Through = 1
DEFAULT Service-Type == Framed-User
Framed-MTU = 1500,
Service-Type = Framed-User,
Framed-Protocol = PPP,
Framed-Compression = Van-Jacobson-TCP-IP
radiusd.conf:
ippool RAS {
range-start = 192.168.59.193
range-stop = 192.168.59.195
netmask = 255.255.255.0
cache-size = 3
session-db = ${raddbdir}/db.ippool
ip-index = ${raddbdir}/db.ipindex
}
ippool RAS1 {
range-start = 192.168.31.193
range-stop = 192.168.31.195
netmask = 255.255.255.0
cache-size = 3
session-db = ${raddbdir}/db1.ippool
ip-index = ${raddbdir}/db1.ipindex
}
}
Authorize {
preprocess
chap
suffix
sql
files
RAS
RAS1
}
authenticate {
unix
authtype CHAPPAP {
chap
pap
}
}
accounting {
unix
sql
RAS
RAS1
radutmp
}
debug output:
Module: Loaded IPPOOL
ippool: session-db = "/usr/local/etc/raddb/db.ippool"
ippool: ip-index = "/usr/local/etc/raddb/db.ipindex"
ippool: range-start = 192.168.59.193 IP address
[192.168.59.193]
ippool: range-stop = 192.168.59.195 IP address
[192.168.59.195]
ippool: netmask = 255.255.255.0 IP address
[255.255.255.0]
ippool: cache-size = 3
Module: Instantiated ippool (RAS)
ippool: session-db =
"/usr/local/etc/raddb/db1.ippool"
ippool: ip-index = "/usr/local/etc/raddb/db1.ipindex"
ippool: range-start = 192.168.31.193 IP address
[192.168.31.193]
ippool: range-stop = 192.168.31.195 IP address
[192.168.31.195]
ippool: netmask = 255.255.255.0 IP address
[255.255.255.0]
ippool: cache-size = 3
Module: Instantiated ippool (RAS1)
Module: Loaded radutmp
radutmp: filename =
"/usr/local/var/log/radius/radutmp"
radutmp: username = "%{User-Name}"
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on IP address *, ports 1812/udp and
1813/udp, with proxy on 1814/udp.
Ready to process requests.
rad_recv: Access-Request packet from host
192.168.31.10:1645, id=112, length=92
NAS-IP-Address = 192.168.31.10
NAS-Port = 30
NAS-Port-Type = Async
User-Name = "b"
Called-Station-Id = "190962"
Calling-Station-Id = "85290200959"
User-Password =
"t\365\000\261\324[\324\025_Z\r\324\306\035\217\356"
Service-Type = Framed-User
Framed-Protocol = PPP
modcall: entering group authorize
modcall[authorize]: module "preprocess" returns ok
rlm_chap: Could not find proper Chap-Password
attribute in request
modcall[authorize]: module "chap" returns noop
rlm_realm: Looking up realm NULL for User-Name =
"b"
rlm_realm: No such realm NULL
modcall[authorize]: module "suffix" returns noop
radius_xlat: 'b'
sql_set_user: escaped user --> 'b'
radius_xlat: 'SELECT id,UserName,Attribute,Value,op
FROM radcheck WHERE Username = 'b' ORD
ER BY id'
rlm_sql: Reserving sql socket id: 3
rlm_sql: User b not found
radius_xlat: 'SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radg
roupcheck.Value,radgroupcheck.op FROM
radgroupcheck,usergroup WHERE usergroup.Username = '
b' AND usergroup.GroupName = radgroupcheck.GroupName
ORDER BY radgroupcheck.id'
radius_xlat: 'SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radg
roupreply.Value,radgroupreply.op FROM
radgroupreply,usergroup WHERE usergroup.Username = '
b' AND usergroup.GroupName = radgroupreply.GroupName
ORDER BY radgroupreply.id'
sql_set_user: escaped user --> 'DEFAULT'
radius_xlat: 'SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radg
roupcheck.Value,radgroupcheck.op FROM
radgroupcheck,usergroup WHERE usergroup.Username = '
DEFAULT' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id'
radius_xlat: 'SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radg
roupreply.Value,radgroupreply.op FROM
radgroupreply,usergroup WHERE usergroup.Username = '
DEFAULT' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id'
rlm_sql: DEFAULT not found
rlm_sql: Released sql socket id: 3
modcall[authorize]: module "sql" returns notfound
users: Matched b at 150
modcall[authorize]: module "files" returns ok
modcall[authorize]: module "RAS" returns noop
rlm_ippool: Searching for an entry for nas/port:
192.168.31.10/30
rlm_ippool: No available ip addresses in pool.
modcall[authorize]: module "RAS1" returns noop
modcall: group authorize returns ok
rad_check_password: Found Auth-Type Local
auth: type Local
auth: user supplied User-Password matches local
User-Password
Sending Access-Accept of id 112 to 192.168.31.10:1645
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-Routing = Broadcast-Listen
Framed-MTU = 1500
Framed-Compression = Van-Jacobson-TCP-IP
Finished request 1
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Accounting-Request packet from host
192.168.31.10:1646, id=113, length=102
NAS-IP-Address = 192.168.31.10
NAS-Port = 30
NAS-Port-Type = Async
User-Name = "b"
Called-Station-Id = "190962"
Calling-Station-Id = "85290200959"
Acct-Status-Type = Start
Acct-Authentic = RADIUS
Service-Type = Framed-User
Acct-Session-Id = "00000150"
Framed-Protocol = PPP
Acct-Delay-Time = 0
modcall: entering group preacct
modcall[preacct]: module "preprocess" returns noop
rlm_realm: Looking up realm NULL for User-Name =
"b"
rlm_realm: No such realm NULL
modcall[preacct]: module "suffix" returns noop
modcall[preacct]: module "files" returns noop
modcall: group preacct returns noop
modcall: entering group accounting
modcall[accounting]: module "unix" returns ok
radius_xlat: 'b'
sql_set_user: escaped user --> 'b'
radius_xlat: 'INSERT into radacct (RadAcctId,
AcctSessionId, AcctUniqueId, UserName, Realm
, NASIPAddress, NASPortId, NASPortType, AcctStartTime,
AcctStopTime, AcctSessionTime, AcctA
uthentic, ConnectInfo_start, ConnectInfo_stop,
AcctInputOctets, AcctOutputOctets, CalledSta
tionId, CallingStationId, AcctTerminateCause,
ServiceType, FramedProtocol, FramedIPAddress,
AcctStartDelay, AcctStopDelay) values('', '00000150',
'', 'b', '', '192.168.31.10', '30',
'Async', '2002-09-20 17:51:47', '0', '0', 'RADIUS',
'', '', '0', '0', '190962', '8529020095
9', '', 'Framed-User', 'PPP', '', '0', '0')'
rlm_sql: Reserving sql socket id: 2
rlm_sql: Released sql socket id: 2
modcall[accounting]: module "sql" returns ok
modcall[accounting]: module "RAS" returns noop
modcall[accounting]: module "RAS1" returns noop
radius_xlat: 'b'
modcall[accounting]: module "radutmp" returns ok
modcall: group accounting returns ok
Sending Accounting-Response of id 113 to
192.168.31.10:1646
Finished request 2
Going to the next request
Cleaning up request 2 ID 113 with timestamp 3d8aefb3
rl_next: returning NULL
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 1 ID 112 with timestamp 3d8aefb3
Nothing to do. Sleeping until we see a request.
rad_recv: Accounting-Request packet from host
192.168.31.10:1646, id=114, length=138
NAS-IP-Address = 192.168.31.10
NAS-Port = 30
NAS-Port-Type = Async
User-Name = "b"
Called-Station-Id = "190962"
Calling-Station-Id = "85290200959"
Acct-Status-Type = Stop
Acct-Authentic = RADIUS
Service-Type = Framed-User
Acct-Session-Id = "00000150"
Framed-Protocol = PPP
Acct-Terminate-Cause = Lost-Carrier
Acct-Input-Octets = 453
Acct-Output-Octets = 42
Acct-Input-Packets = 8
Acct-Output-Packets = 3
Acct-Session-Time = 28
Acct-Delay-Time = 0
modcall: entering group preacct
modcall[preacct]: module "preprocess" returns noop
rlm_realm: Looking up realm NULL for User-Name =
"b"
rlm_realm: No such realm NULL
modcall[preacct]: module "suffix" returns noop
modcall[preacct]: module "files" returns noop
modcall: group preacct returns noop
modcall: entering group accounting
modcall[accounting]: module "unix" returns ok
radius_xlat: 'b'
sql_set_user: escaped user --> 'b'
radius_xlat: 'UPDATE radacct SET AcctStopTime =
'2002-09-20 17:52:15', AcctSessionTime = '
28', AcctInputOctets = '453', AcctOutputOctets = '42',
AcctTerminateCause = 'Lost-Carrier',
AcctStopDelay = '0', ConnectInfo_stop = '' WHERE
AcctSessionId = '00000150' AND UserName =
'b' AND NASIPAddress = '192.168.31.10' AND
AcctStopTime = 0'
rlm_sql: Reserving sql socket id: 1
rlm_sql: Released sql socket id: 1
modcall[accounting]: module "sql" returns ok
modcall[accounting]: module "RAS" returns ok
modcall[accounting]: module "RAS1" returns ok
radius_xlat: 'b'
modcall[accounting]: module "radutmp" returns ok
modcall: group accounting returns ok
Sending Accounting-Response of id 114 to
192.168.31.10:1646
Finished request 3
Going to the next request
--- Walking the entire request list ---
Cleaning up request 3 ID 114 with timestamp 3d8aefcf
Nothing to do. Sleeping until we see a request.
_______________________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html