Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
usage [2016-09-19 17:16] – wikiadmin | usage [2016-09-19 17:32] – [SMRadius-Disable-WebUITopup] wikiadmin | ||
---|---|---|---|
Line 50: | Line 50: | ||
* [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Notify]] | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-Notify]] | ||
* [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-NotifyTemplate]] | * [[mod_feature_capping.pm|SMRadius-AutoTopup-Uptime-NotifyTemplate]] | ||
- | * | + | |
===== Validity ==== | ===== Validity ==== | ||
Line 67: | Line 67: | ||
====== Core ====== | ====== Core ====== | ||
- | * __SMRadius-Username-Transform__ | + | ===== SMRadius-Evaluate ===== |
- | * Transforms a username from the supplied username to the configured username (Currently disabled) | + | Evaluate and set an attribute / attributes based on the results of the evaluation. Syntax: TEST CASE ? TRUE_ATTRIBUTE : FALSE. |
- | | + | |
- | SMRadius-Username-Transform | + | Lets take a real life example: |
+ | |||
+ | 1. For traffic under 80000Mbyte, we set an attribute | ||
+ | < | ||
+ | SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage < 80000 ? [14988: | ||
+ | </ | ||
+ | |||
+ | 2. For traffic above 80000Mbyte, but below 130000Mbyte, | ||
+ | < | ||
+ | SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage > 80000 && SMRadius_Capping_TotalDataUsage < 130000 ? [14988:Mikrotik-Rate-Limit] | ||
+ | </ | ||
+ | |||
+ | 3. For traffic above 130000Mbyte, | ||
+ | < | ||
+ | SMRadius-Evaluate ||+= SMRadius_Capping_TotalDataUsage > 130000 ? [14988: | ||
+ | </ | ||
+ | |||
+ | ===== SMRadius-Peer-Address ===== | ||
+ | |||
+ | Allows the admin to specify an address that the peer address must match in order to be authorized. The user / group attribute SMRadius-Peer-Address will be checked against the peer address of the client device. | ||
+ | |||
+ | < | ||
+ | SMRadius-Peer-Address | ||
+ | </ | ||
+ | |||
+ | ===== SMRadius-Disable-WebUITopup ===== | ||
+ | |||
+ | Allows one to build web ui's that ignore topups, this attribute is not used internally. | ||
+ | |||
+ | ===== SMRadius-Username-Transform ===== | ||
- | * __SMRadius-Evaluate__ | + | <btn type=" |
- | * Evaluate and set an attribute | + | |
- | * __SMRadius-Peer-Address__ | + | Transforms a username from the supplied username |
- | * Allows | + | |
- | * < | + | |
- | * __SMRadius-Disable-WebUITopup__ | + | < |
- | * Allows one to build web ui's that ignore topups, | + | # Transfrom user@example.net |
+ | SMRadius-Username-Transform | ||
+ | </ | ||