Accounting Forwarding

Alan DeKok aland at deployingradius.com
Thu Sep 15 18:17:29 CEST 2011


dbeutler wrote:
> I have recently setup FreeRadius on a test machine and loaded (via a
> dictionary file) the VSA's for a NAS in our network.  The Radius messages we
> are receiving are purely accounting messages.
> I am trying to accomplish the following:  I would like to forward accounting
> messages to another Radius server based upon the value of one of the VSA's. 

$ man unlang

preacct {
	...

	if (Attribute-Name == "foo") {
		update control {
			Proxy-To-Realm := "bar.com"
		}
	}
	...
}

  You'll have to define the realm.  See raddb/proxy.conf.

> In addition, I would like to pick certain attribute-value pairs to forward
> while discarding the others.

$ man unlang

  See "-=".  Or, the "attr_filter" module.

> I really appreciate any help and I should probably mention that I am pretty
> new to radius (yesterday was my first time installing it. :)

  It's dead easy. :)

  Alan DeKok.




More information about the Freeradius-Users mailing list