customize Post-Auth-Type REJECT

Alan DeKok aland at
Mon Jan 18 09:33:00 CET 2010

pawel_221 wrote:
> And it works - when user reach transfer limit he gets correct reply message,
> but he is rejeceted anyway. It looks like "update control" doesn't work.

  You need to change the "reject" return code.  Do this by adding an
"ok" to the config:

        if (reject) {
		ok	# over-ride "reject"

                update reply {
                        Reply-Message := "You have reached your transfer
limit. Limited bandwitch"
                update control {
                        Auth-Type := "Accept"
                        WISPr-Bandwidth-Max-Down = 131072
                        WISPr-Bandwidth-Max-Up = 131072

  Alan DeKok.

More information about the Freeradius-Users mailing list