Re: Problems with counter module
Hi all, rlm_counter: Could not find Service-Type attribute in the request. Returning NOOP. So fix that. See allowed-servicetype configuration directive ( i thought it would be rather obvious). In radiusd.conf: counter daily { filename = ${raddbdir}/db.daily key = User-Name count-attribute = Acct-Session-Time reset = daily counter-name = Daily-Session-Time check-name = Max-Daily-Session allowed-servicetype = Framed-User cache-size = 5000 } In users: Pablo Auth-Type := Local, Max-Daily-Session := 6, User-Password == Pablo, NAS-IP-Address == 192.168.0.135 Service-Type = Framed-User, Session-Timeout := 6, Framed-Protocol = PPP, Framed-IP-Address = 255.255.255.254, Framed-MTU = 1500, Idle-Timeout = 6, Port-Limit = 1 Even if allowed-servicetype = Framed-User (in radiusd) and Service-Type = Framed-User (in users), in that way it doesn't work, but if I comment out allowed-servicetype = Framed-User in radiusd, it works perfect!!! (I don't know why, but ok) Thanks a lot for your help, I hope those emails will be useful for other people! __ Tiscali Adsl 640 Free: fino al 15 novembre i consumi sono GRATIS! Se sottoscrivi un'Adsl Free 640 entro il 14 ottobre avrai gratis tutti i consumi fino al 15/11/04 compreso! In piu' sono gratis il modem in comodato e l'attivazione. Cosa aspetti? Prima attivi, piu' risparmi! http://abbonati.tiscali.it/adsl/ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Problems with counter module
On Tue, 12 Oct 2004 [EMAIL PROTECTED] wrote: Hi all, rlm_counter: Could not find Service-Type attribute in the request. Returning NOOP. So fix that. See allowed-servicetype configuration directive ( i thought it would be rather obvious). In radiusd.conf: counter daily { filename = ${raddbdir}/db.daily key = User-Name count-attribute = Acct-Session-Time reset = daily counter-name = Daily-Session-Time check-name = Max-Daily-Session allowed-servicetype = Framed-User cache-size = 5000 } In users: Pablo Auth-Type := Local, Max-Daily-Session := 6, User-Password == Pablo, NAS-IP-Address == 192.168.0.135 Service-Type = Framed-User, Session-Timeout := 6, Framed-Protocol = PPP, Framed-IP-Address = 255.255.255.254, Framed-MTU = 1500, Idle-Timeout = 6, Port-Limit = 1 Even if allowed-servicetype = Framed-User (in radiusd) and Service-Type = Framed-User (in users), in that way it doesn't work, but What has the Service-Type in users have to do with the service-type attribute in the accounting-stop packet??!!! Please check the attributes contained in the accounting-stop packet and setup rlm_counter accordingly. if I comment out allowed-servicetype = Framed-User in radiusd, it works perfect!!! (I don't know why, but ok) Thanks a lot for your help, I hope those emails will be useful for other people! __ Tiscali Adsl 640 Free: fino al 15 novembre i consumi sono GRATIS! Se sottoscrivi un'Adsl Free 640 entro il 14 ottobre avrai gratis tutti i consumi fino al 15/11/04 compreso! In piu' sono gratis il modem in comodato e l'attivazione. Cosa aspetti? Prima attivi, piu' risparmi! http://abbonati.tiscali.it/adsl/ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html -- Kostas Kalevras Network Operations Center [EMAIL PROTECTED] National Technical University of Athens, Greece Work Phone: +30 210 7721861 'Go back to the shadow' Gandalf - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Re: Problems with counter module
On Sun, 10 Oct 2004 [EMAIL PROTECTED] wrote: Thanks a lot for your answers. You said: So check if the user sessions are recorded. Maybe the accounting stop do not contain a session-time attribute. Post an accounting-stop debug output for the user. I understand what you mean, but i don't know how to Post an accounting-stop debug output for the user. How can i do it? You run the server in debug mode and wait for an accounting-stop packet for that user (the packet that is sent when the user is disconnected from the nas). Afterwards, you post that debug output. Thanks. __ Tiscali Adsl 640 Free: fino al 15 novembre i consumi sono GRATIS! Se sottoscrivi un'Adsl Free 640 entro il 14 ottobre avrai gratis tutti i consumi fino al 15/11/04 compreso! In piu' sono gratis il modem in comodato e l'attivazione. Cosa aspetti? Prima attivi, piu' risparmi! http://abbonati.tiscali.it/adsl/ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html -- Kostas Kalevras Network Operations Center [EMAIL PROTECTED] National Technical University of Athens, Greece Work Phone: +30 210 7721861 'Go back to the shadow' Gandalf - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Problems with counter module
Hi all, maybe I found the reason... but I don't know how to fix it. Thanks in advance rlm_counter: Could not find Service-Type attribute in the request. Returning NOOP. modcall[accounting]: module daily returns noop for request 2 modcall[accounting]: module unix returns ok for request 2 radius_xlat: '/usr/local/var/log/radius/radutmp' radius_xlat: 'Pablo' modcall[accounting]: module radutmp returns ok for request 2 rlm_ippool: Searching for an entry for nas/port: 192.168.0.136/2151677988 rlm_ippool: Entry not found modcall[accounting]: module main_pool returns ok for request 2 modcall: group accounting returns ok for request 2 Sending Accounting-Response of id 70 to 192.168.0.136:1027 Finished request 2 Going to the next request Thread 3 waiting to be assigned a request --- Walking the entire request list --- Accounting-stop packet for that user: Cleaning up request 2 ID 70 with timestamp 416aa6ac Nothing to do. Sleeping until we see a request. Users file: Pablo Auth-Type := Local, Max-Daily-Session := 6, User-Password == Pablo, NAS-IP-Address == 192.168.0.136 Service-Type = Framed-User, Session-Timeout := 6, Framed-Protocol = PPP, Framed-IP-Address = 255.255.255.254, Framed-MTU = 1500, Idle-Timeout = 6, Port-Limit = 1 Thanks for helping me! __ Tiscali Adsl 640 Free: fino al 15 novembre i consumi sono GRATIS! Se sottoscrivi un'Adsl Free 640 entro il 14 ottobre avrai gratis tutti i consumi fino al 15/11/04 compreso! In piu' sono gratis il modem in comodato e l'attivazione. Cosa aspetti? Prima attivi, piu' risparmi! http://abbonati.tiscali.it/adsl/ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Problems with counter module
On Mon, 11 Oct 2004 [EMAIL PROTECTED] wrote: Hi all, maybe I found the reason... but I don't know how to fix it. Thanks in advance rlm_counter: Could not find Service-Type attribute in the request. Returning NOOP. So fix that. See allowed-servicetype configuration directive ( i thought it would be rather obvious). modcall[accounting]: module daily returns noop for request 2 modcall[accounting]: module unix returns ok for request 2 radius_xlat: '/usr/local/var/log/radius/radutmp' radius_xlat: 'Pablo' modcall[accounting]: module radutmp returns ok for request 2 rlm_ippool: Searching for an entry for nas/port: 192.168.0.136/2151677988 rlm_ippool: Entry not found modcall[accounting]: module main_pool returns ok for request 2 modcall: group accounting returns ok for request 2 Sending Accounting-Response of id 70 to 192.168.0.136:1027 Finished request 2 Going to the next request Thread 3 waiting to be assigned a request --- Walking the entire request list --- Accounting-stop packet for that user: Cleaning up request 2 ID 70 with timestamp 416aa6ac Nothing to do. Sleeping until we see a request. Users file: Pablo Auth-Type := Local, Max-Daily-Session := 6, User-Password == Pablo, NAS-IP-Address == 192.168.0.136 Service-Type = Framed-User, Session-Timeout := 6, Framed-Protocol = PPP, Framed-IP-Address = 255.255.255.254, Framed-MTU = 1500, Idle-Timeout = 6, Port-Limit = 1 Thanks for helping me! __ Tiscali Adsl 640 Free: fino al 15 novembre i consumi sono GRATIS! Se sottoscrivi un'Adsl Free 640 entro il 14 ottobre avrai gratis tutti i consumi fino al 15/11/04 compreso! In piu' sono gratis il modem in comodato e l'attivazione. Cosa aspetti? Prima attivi, piu' risparmi! http://abbonati.tiscali.it/adsl/ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html -- Kostas Kalevras Network Operations Center [EMAIL PROTECTED] National Technical University of Athens, Greece Work Phone: +30 210 7721861 'Go back to the shadow' Gandalf - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html