When I tried todo this a while ago I encountered a limit of 4GB in the sqlcounter module. J. -- Jonathan De Graeve Network/System Administrator Imelda vzw Informatica Dienst 015/50.52.98 jonathan.de.graeve@imelda.be --------- Always read the manual for the correct way to do things because the number of incorrect ways to do things is almost infinite --------- -----Oorspronkelijk bericht----- Van: freeradius-users-bounces@lists.freeradius.org [mailto:freeradius-users-bounces@lists.freeradius.org] Namens Ilia Chipitsine Verzonden: dinsdag 25 oktober 2005 8:40 Aan: edvin.seferovic@kolp.at; FreeRadius users mailing list Onderwerp: Re: counter with Session Octet Limit I did the same thing by: 1) adding "quota" script to authorize section, it just calculates how many bytes (if any) can be downloaded 2) patching VPN server in order to understand passed parameter
Hello,
I am using freeRadius 1.0.2, and I would like to limit weekly bandwidth for my VPN ( pptp ) users. So Ive changed the example counter part in my radiusd.conf
counter weekly_traffic {
filename = ${raddbdir}/db.weekly
key = User-Name
count-attribute = Acct-Input-Octets
reset = weekly
counter-name = Weekly-Traffic
check-name = Max-Weekly-Traffic
allowed-servicetype = Framed-User
}
The counter works for it self - It checks the Max-Weekly-Traffic attribute in my ldap tree for a specific user, calculates the rest, but then it tries to add Session-Timeout attribute to Access-Accept packet. This is not working / attribute is not being added, and besides - it is the wrong attribute. Is it possible for the counter module to add the value, which is usualy added as Session-Timeout, as Session-Octets-Limit?
Regards,
Edvin Seferovic
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
as You have probably mentioned, I was not talking about sqlcounter module
When I tried todo this a while ago I encountered a limit of 4GB in the sqlcounter module.
J.
-- Jonathan De Graeve Network/System Administrator Imelda vzw Informatica Dienst 015/50.52.98 jonathan.de.graeve@imelda.be
--------- Always read the manual for the correct way to do things because the number of incorrect ways to do things is almost infinite ---------
-----Oorspronkelijk bericht----- Van: freeradius-users-bounces@lists.freeradius.org [mailto:freeradius-users-bounces@lists.freeradius.org] Namens Ilia Chipitsine Verzonden: dinsdag 25 oktober 2005 8:40 Aan: edvin.seferovic@kolp.at; FreeRadius users mailing list Onderwerp: Re: counter with Session Octet Limit
I did the same thing by:
1) adding "quota" script to authorize section, it just calculates how many bytes (if any) can be downloaded
2) patching VPN server in order to understand passed parameter
Hello,
I am using freeRadius 1.0.2, and I would like to limit weekly bandwidth for my VPN ( pptp ) users. So Ive changed the example counter part in my radiusd.conf
counter weekly_traffic {
filename = ${raddbdir}/db.weekly
key = User-Name
count-attribute = Acct-Input-Octets
reset = weekly
counter-name = Weekly-Traffic
check-name = Max-Weekly-Traffic
allowed-servicetype = Framed-User
}
The counter works for it self - It checks the Max-Weekly-Traffic attribute in my ldap tree for a specific user, calculates the rest, but then it tries to add Session-Timeout attribute to Access-Accept packet. This is not working / attribute is not being added, and besides - it is the wrong attribute. Is it possible for the counter module to add the value, which is usualy added as Session-Timeout, as Session-Octets-Limit?
Regards,
Edvin Seferovic
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Gurus, I want to give the user a second chance to type his password correctly by using a radius challenge. I'm not sure how to do this and did not find anything about this in the documentation nor in my stored email of this list. What should happen: The user tries to authenticate using his User-Name and Password. The user makes a typo in the password. The RADIUS Server will send an RADIUS Challenge, having a Reply-Message 'Good Morning. Please retry your Password!' The user retries... This time using the right password The User will be granted access. How would I configure this in the user file? Any help or advice to a related part of the documentation will be appreciated. Thank you. Stefan
"Stefan A." <lists@saitc.de> wrote:
I want to give the user a second chance to type his password correctly by using a radius challenge. I'm not sure how to do this and did not find anything about this in the documentation nor in my stored email of this list.
You will have to write your own module. See rlm_example. ...
The user retries... This time using the right password
Or, the NAS doesn't understand Access-Challenge, and treats it like Access-Reject. Changing the server behavior won't help, UNLESS you also change the client to expect the new behavior. Alan DeKok.
Gurus, I want to give the user a second chance to type his password correctly by using a radius challenge. I'm not sure how to do this and did not find anything about this in the documentation nor in my stored email of this list. What should happen: The user tries to authenticate using his User-Name and Password. The user makes a typo in the password. The RADIUS Server will send an RADIUS Challenge, having a Reply-Message 'Good Morning. Please retry your Password!' The user retries... This time using the right password The User will be granted access. How would I configure this in the user file? Any help or advice to a related part of the documentation will be appreciated. Thank you. Stefan
participants (4)
-
Alan DeKok -
Ilia Chipitsine -
Jonathan De Graeve -
Stefan A.