📄 rlm_attr_filter.5
字号:
.\" # DS - begin display.de DS.RS.nf.sp...\" # DE - end display.de DE.fi.RE.sp...TH rlm_attr_filter 5 "12 February 2008" "" "FreeRADIUS Module".SH NAMErlm_attr_filter \- FreeRADIUS Module.SH DESCRIPTIONThe \fIrlm_attr_filter\fP module exists for filtering certainattributes and values in received ( or transmitted ) radius packets.It gives the server a flexible framework to filter the attributes wesend to or receive from home servers or NASes. This makes sense, forexample, in an out-sourced dialup situation to various policydecisions, such as restricting a client to certain ranges ofIdle-Timeout or Session-Timeout..PPFilter rules are normally defined and applied on a per-realm basis,where the realm is anything that is defined and matched based on theconfiguration of the \fIrlm_realm\fP module. Filter rules canoptionally be applied using another attribute, by editing the\fIkey\fP configuration for this module..PPIn 2.0.1 and earlier versions, the "accounting" section filtered theAccounting-Request, even though it was documented as filtering theresponse. This issue has been fixed in version 2.0.2 and laterversions. The "preacct" section may now be used to filterAccounting-Request packets. The "accounting" section now filtersAccounting-Response packets. Administrators using "attr_filter" inthe "accounting" section SHOULD move the reference to "attr_filter"from "accounting" to "preacct"..PPThe file that defines the attribute filtering rules follows a similarsyntax to the \fIusers\fP file. There are a few differences however:.PP.DS There are no check-items allowed other than the name of the key..PP There can only be a single DEFAULT entry..PPThe rules for each entry are parsed to top to bottom, and anattribute must pass *all* the rules which affect it in order tomake it past the filter. Order of the rules is important.The operators and their purpose in defining the rules are asfollows:.TP.B = THIS OPERATOR IS NOT ALLOWED. If used, and warning message isprinted and it is treated as ==.TP.B := Set, this attribute and value will always be placed in theoutput A/V Pairs. If the attribute exists, it is overwritten..TP.B == Equal, value must match exactly..TP.B =* Always Equal, allow all values for the specified attribute..TP.B !* Never Equal, disallow all values for the specified attribute.( This is redundant, as any A/V Pair not explicitly permittedwill be dropped )..TP.B != Not Equal, value must not match..TP.B >= Greater Than or Equal.TP.B <= Less Than or Equal.TP.B > Greater Than.TP.B < Less Than.PPIf regular expressions are enabled the following operators arealso possible. ( Regular Expressions are included by defaultunless your system doesn't support them, which should be rare ).The value field uses standard regular expression syntax..PP.TP.B =~ Regular Expression Equal.TP.B !~ Regular Expression Not Equal.PPSee the default \fI/etc/raddb/attrs\fP for working examples ofsample rule ordering and how to use the different operators..DE.PPThe configuration items are:.IP attrsfileThis specifies the location of the file used to load the filter rules.This file is used to filter the accounting response, packet before itis proxied, proxy response from the home server, or our response tothe NAS..IP keyUsually %{Realm} (the default). Can also be %{User-Name}, or otherattribute that exists in the request. Note that the module alwayskeys off of attributes in the request, and NOT in any other packet..PP.SH SECTIONS.IP preacctFilters Accounting-Request packets..IP accountingFilters Accounting-Response packets..IP pre-proxyFilters Accounting-Request or Access-Request packets prior to proxyingthem..IP post-proxyFilters Accounting-Response, Access-Accept, Access-Reject, orAccess-Challenge responses from a home server..IP authorizeFilters Access-Request packets..IP post-authFilters Access-Accept or Access-Reject packets..PP.SH FILES.I /etc/raddb/radiusd.conf.I /etc/raddb/attrs.PP.SH "SEE ALSO".BR radiusd (8),.BR radiusd.conf (5).SH AUTHORChris Parker, cparker@segv.org
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -