⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rlm_counter.5

📁 radius服务器
💻 5
字号:
.TH rlm_counter 5 "13 March 2004" "" "FreeRADIUS Module".SH NAMErlm_counter \- FreeRADIUS Module.SH DESCRIPTIONThe \fIrlm_counter\fP module provides a general framework toallow access based on accumulated usage of a resource, such astotal time online in a given period, total data transferred ina given period, etc.  This is very useful in a 'Prepaid Service'situation, where a user has paid for a finite amount of usageand should not be allowed to use more than that service.  Collection,monitoring, and replenishment of prepaid services are beyond thescope of this module..PPThe main configuration items to be aware of are:.IP filenameThe filename where the usage data is stored..IP keyAn attribute which will be present in the Access-Request to be used asthe 'index' value for the counter. A counter entry is tracked foreach unique key.  The most likely key you will want to use is User-Name..IP count-attributeAn attribute which will be used to increment the counter value.  If thisattribute is Acct-Session-Time or an integer value the counter data isincremented by the Attribute value.  For all other attribute types the counter is incremented by one..IP resetHow frequently the counter data should be set back to 0.  Valid values forthis variable are:.BR hourly,.BR daily,.BR weekly,.BR monthly,.BR or neverAlternatively, it can be user defined, in the form: num[hdwm].  num isa numeric value, followed by one or none of the following letters.  h: hours,d: days, w: weeks, m: months..IP check-nameThis defines an attribute name which will be registered by the counter module and can be used to set the maximum allowed value for the counter after which the user is rejected.  If Daily-Session-Time is set, you can use the followingsyntax in the Users file to set a cap of 3600 seconds ( 8 hours ):.PP.DSDEFAULT Max-Daily-Session := 3600.DE.PP.IP allowed-servicetypeThis can be used to only apply the limitations to specific service types ofsessions.  For example, setting this to Framed-User will only apply the countermodule to Framed sessions, excluding other types such as Telnet or Rlogin..IP cache-sizeThe maximum size of the cache to be used by the module.  The default is 1000..SH NOTESThis module registers an attribute, so it should be added to theinstantiate section, to be called on server startup.  When usedin the authorize section, it must come after any modules whichset the 'check-name' attribute..PP.SH SECTIONS.BR instantiate,.BR authorize,.BR accounting.PP.SH FILES.I /etc/raddb/radiusd.conf.PP.SH "SEE ALSO".BR radiusd (8),.BR radiusd.conf (5).BR rlm_sqlcounter (5).SH AUTHORChris Parker, cparker@segv.org

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -