Вот сессия работы клиента с "./radiusd -X":
Код: Выделить всё
rad_recv: Access-Request packet from host 127.0.0.2 port 55736, id=183, length=84
Service-Type = Framed-User
Framed-Protocol = PPP
User-Name = "bill"
User-Password = "qweqwe"
Calling-Station-Id = "192.168.200.46"
NAS-IP-Address = 127.0.0.2
NAS-Port = 0
+- entering group authorize
Exec-Program output: Auth-Type := Accept
Exec-Program-Wait: value-pairs: Auth-Type := Accept
Exec-Program: returned: 0
++[pre_auth] returns ok
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
rlm_realm: No '@' in User-Name = "bill", looking up realm NULL
rlm_realm: No such realm "NULL"
++[suffix] returns noop
rlm_eap: No EAP-Message, not doing EAP
++[eap] returns noop
++[unix] returns notfound
users: Matched entry DEFAULT at line 61
++[files] returns ok
++[expiration] returns noop
++[logintime] returns noop
rlm_pap: Found existing Auth-Type, not changing it.
++[pap] returns noop
rad_check_password: Found Auth-Type Accept
rad_check_password: Auth-Type = Accept, accepting the user
Login OK: [bill/qweqwe] (from client localhost port 0 cli 192.168.200.46)
+- entering group post-auth
Exec-Program output: Acct-Interim-Interval = 60, Session-Timeout = 36000, PPPD-Upstream-Speed-Limit = 0, Octets-Direction = 0, Framed-IP-Address = 192.168.121.102, Session-Octets-Limit = 6291456, Framed-IP-Netmask = 255.255.255.255, PPPD-Downstream-Speed-Limit = 0,
Exec-Program-Wait: value-pairs: Acct-Interim-Interval = 60, Session-Timeout = 36000, PPPD-Upstream-Speed-Limit = 0, Octets-Direction = 0, Framed-IP-Address = 192.168.121.102, Session-Octets-Limit = 6291456, Framed-IP-Netmask = 255.255.255.255, PPPD-Downstream-Speed-Limit = 0,
Exec-Program: returned: 0
++[exec] returns noop
Sending Access-Accept of id 183 to 127.0.0.2 port 55736
Acct-Interim-Interval = 60
Session-Timeout = 36000
PPPD-Upstream-Speed-Limit = Bridge-No
Octets-Direction = Route-IP-No
Framed-IP-Address = 192.168.121.102
Session-Octets-Limit = 6291456
Framed-IP-Netmask = 255.255.255.255
PPPD-Downstream-Speed-Limit = Send-Auth-None
Finished request 8.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Accounting-Request packet from host 127.0.0.2 port 43964, id=184, length=112
Acct-Session-Id = "48A5753A16FD00"
User-Name = "bill"
Acct-Status-Type = Start
Service-Type = Framed-User
Framed-Protocol = PPP
Calling-Station-Id = "192.168.200.46"
Acct-Authentic = RADIUS
NAS-Port-Type = Async
Framed-IP-Address = 192.168.121.102
NAS-IP-Address = 127.0.0.2
NAS-Port = 0
Acct-Delay-Time = 0
+- entering group preacct
++[preprocess] returns ok
rlm_acct_unique: Hashing 'NAS-Port = 0,Client-IP-Address = 127.0.0.2,NAS-IP-Address = 127.0.0.2,Acct-Session-Id = "48A5753A16FD00",User-Name = "bill"'
rlm_acct_unique: Acct-Unique-Session-ID = "c46167b749320501".
++[acct_unique] returns ok
rlm_realm: No '@' in User-Name = "bill", looking up realm NULL
rlm_realm: No such realm "NULL"
++[suffix] returns noop
acct_users: Matched entry DEFAULT at line 25
++[files] returns ok
+- entering group accounting
expand: /soft/freeradius/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d -> /soft/freeradius/var/log/radius/radacct/127.0.0.2/detail-20080815
rlm_detail: /soft/freeradius/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /soft/freeradius/var/log/radius/radacct/127.0.0.2/detail-20080815
expand: %t -> Fri Aug 15 16:23:22 2008
++[detail] returns ok
++[unix] returns ok
expand: /soft/freeradius/var/log/radius/radutmp -> /soft/freeradius/var/log/radius/radutmp
expand: %{User-Name} -> bill
++[radutmp] returns ok
expand: %{User-Name} -> bill
attr_filter: Matched entry DEFAULT at line 12
++[attr_filter.accounting_response] returns updated
Sending Accounting-Response of id 184 to 127.0.0.2 port 43964
Finished request 9.
Cleaning up request 9 ID 184 with timestamp +538
Going to the next request
Waking up in 4.2 seconds.
Cleaning up request 8 ID 183 with timestamp +536
Ready to process requests.
rad_recv: Accounting-Request packet from host 127.0.0.2 port 43650, id=185, length=142
Acct-Session-Id = "48A5753A16FD00"
User-Name = "bill"
Acct-Status-Type = Interim-Update
Service-Type = Framed-User
Framed-Protocol = PPP
Acct-Authentic = RADIUS
Acct-Session-Time = 60
Acct-Output-Octets = 63397
Acct-Input-Octets = 25026
Acct-Output-Packets = 127
Acct-Input-Packets = 371
Calling-Station-Id = "192.168.200.46"
NAS-Port-Type = Async
Framed-IP-Address = 192.168.121.102
NAS-IP-Address = 127.0.0.2
NAS-Port = 0
Acct-Delay-Time = 0
+- entering group preacct
++[preprocess] returns ok
rlm_acct_unique: Hashing 'NAS-Port = 0,Client-IP-Address = 127.0.0.2,NAS-IP-Address = 127.0.0.2,Acct-Session-Id = "48A5753A16FD00",User-Name = "bill"'
rlm_acct_unique: Acct-Unique-Session-ID = "c46167b749320501".
++[acct_unique] returns ok
rlm_realm: No '@' in User-Name = "bill", looking up realm NULL
rlm_realm: No such realm "NULL"
++[suffix] returns noop
acct_users: Matched entry DEFAULT at line 28
++[files] returns ok
+- entering group accounting
expand: /soft/freeradius/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d -> /soft/freeradius/var/log/radius/radacct/127.0.0.2/detail-20080815
rlm_detail: /soft/freeradius/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /soft/freeradius/var/log/radius/radacct/127.0.0.2/detail-20080815
expand: %t -> Fri Aug 15 16:24:22 2008
++[detail] returns ok
++[unix] returns noop
expand: /soft/freeradius/var/log/radius/radutmp -> /soft/freeradius/var/log/radius/radutmp
expand: %{User-Name} -> bill
++[radutmp] returns ok
expand: %{User-Name} -> bill
attr_filter: Matched entry DEFAULT at line 12
++[attr_filter.accounting_response] returns updated
Sending Accounting-Response of id 185 to 127.0.0.2 port 43650
Finished request 10.
Cleaning up request 10 ID 185 with timestamp +598
Going to the next request
Ready to process requests.
rad_recv: Accounting-Request packet from host 127.0.0.2 port 55683, id=186, length=148
Acct-Session-Id = "48A5753A16FD00"
User-Name = "bill"
Acct-Status-Type = Stop
Service-Type = Framed-User
Framed-Protocol = PPP
Acct-Authentic = RADIUS
Acct-Session-Time = 103
Acct-Output-Octets = 770331
Acct-Input-Octets = 275582
Acct-Output-Packets = 910
Acct-Input-Packets = 1168
Calling-Station-Id = "192.168.200.46"
NAS-Port-Type = Async
Acct-Terminate-Cause = User-Request
Framed-IP-Address = 192.168.121.102
NAS-IP-Address = 127.0.0.2
NAS-Port = 0
Acct-Delay-Time = 0
+- entering group preacct
++[preprocess] returns ok
rlm_acct_unique: Hashing 'NAS-Port = 0,Client-IP-Address = 127.0.0.2,NAS-IP-Address = 127.0.0.2,Acct-Session-Id = "48A5753A16FD00",User-Name = "bill"'
rlm_acct_unique: Acct-Unique-Session-ID = "c46167b749320501".
++[acct_unique] returns ok
rlm_realm: No '@' in User-Name = "bill", looking up realm NULL
rlm_realm: No such realm "NULL"
++[suffix] returns noop
acct_users: Matched entry DEFAULT at line 31
++[files] returns ok
+- entering group accounting
expand: /soft/freeradius/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d -> /soft/freeradius/var/log/radius/radacct/127.0.0.2/detail-20080815
rlm_detail: /soft/freeradius/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /soft/freeradius/var/log/radius/radacct/127.0.0.2/detail-20080815
expand: %t -> Fri Aug 15 16:25:05 2008
++[detail] returns ok
++[unix] returns ok
expand: /soft/freeradius/var/log/radius/radutmp -> /soft/freeradius/var/log/radius/radutmp
expand: %{User-Name} -> bill
++[radutmp] returns ok
expand: %{User-Name} -> bill
attr_filter: Matched entry DEFAULT at line 12
++[attr_filter.accounting_response] returns updated
Sending Accounting-Response of id 186 to 127.0.0.2 port 55683
Finished request 11.
Cleaning up request 11 ID 186 with timestamp +641
Going to the next request
Ready to process requests.