Patch for rlm_attr_filters

Chris Parker cparker at starnetusa.net
Tue Nov 1 15:25:06 CET 2005



On Oct 31, 2005, at 10:53 PM, Nikolay P. Romanyuk wrote:

> Hello All,
>
> My VPN3005 NASes are sending several accounting attributes
> (Tunnel-Client-Endpoint with Client-IP-Address) causing problems
> for RADIUS-based billing software I'm using.
> This patch is created to allow rlm_filter to remove a specific
> list of attributes from accounting packets. Of course one can
> specify all the attributes required in usual way, but that's
> too unconvenient since there are too many of them in the
> accounting phase. :) Tested with FreeRADIUS-1.0.5
>
> Example:
> In module section: (radius.conf)
> ...
>         attr_filter acct {
>                 attrsfile = ${confdir}/acct
>                 passother = yes
>         }
> ...

Makes sense to me.  I've thought about doing the same, when I look at  
my attrs
files that have 30 attributes listed, most of which are *= ANY values.

I'd make one change, and that's make it more obvious what the config  
argument
is doing:

    defaultaction = drop | allow

With the default being drop so that it maintains backwards  
compatibility.

-Chris
--
Chris Parker
Director, Engineering
StarNet A Service of US LEC

(888)212-0099   Fax (847)963-1302
Wholesale Internet Services     http://www.megapop.net
VoiceEclipse, The Fresh Alternative http://www.voiceeclipse.com

NOTICE: Message is sent IN CONFIDENCE to addressees. It may contain
information that is privileged, proprietary or confidential.




More information about the Freeradius-Devel mailing list