radius CoA client for PPTP box

Alan DeKok aland at deployingradius.com
Thu Sep 24 15:46:14 CEST 2015


On Sep 23, 2015, at 7:35 PM, Brock Eastman <brock at corp.digitalpath.net> wrote:
>  I am not trying to proxy anything, just straight listen for
> packets, send the attributes to a secondary program and change rate shaping
> or disconnect users on the fly.

  See the "exec" module.  You can run a program, and control which attributes it gets.

  See also "man unlang".  It documents how to run programs via back-ticks.

>        recv-coa {
> ...
>                update control {
> 
>                        Auth-Type:=`/usr/bin/php
> /usr/local/bin/radius_coa.php %{User-Name}`

  Uh... why?  These are CoA packets.  There's no Auth-Type

> radiusd -X 
...
> rad_recv: CoA-Request packet from host 198.204.208.XX port 39238, id=55,
> length=38
> 
>        User-Name = "test"
> 
>        Framed-IP-Address = 198.204.209.33
> 
>        NAS-Port = 382
> 
>  WARNING: Empty recv-coa section.  Using default return values.
> 
>  WARNING: Empty send-coa section.  Using default return values.

  It's not using the virtual server you edited.  So... fix that.

  See the file raddb/sites-available/coa.  This is documented.

  Alan DeKok.




More information about the Freeradius-Users mailing list