Radiator Server Documentation — v10.34.1
scripts.context.radiusproxy
Lua script context API - RADIUS Proxy sub-context
Table of Contents
radiusproxy
RADIUS proxy request and response data. See RADIUS proxying for configuration examples.
Fields
| Field | Type | Description |
|---|---|---|
request | packet | Proxy request. Writable during @pre-proxying. |
reply | packet | Proxy reply. Writable during @post-proxying. |
server | server? | Proxy server info |
Server Object
| Field | Type | Description |
|---|---|---|
name | string | Proxy server name |
tls | boolean | Is TLS connection? |
Packet Methods
The packet methods are identical to radius packets. Write methods follow the field restrictions above.
| Method | Parameters | Returns | Description |
|---|---|---|---|
attr(name, tag?) | attribute name, optional tag | value? | Get first attribute value |
attr_last(name, tag?) | attribute name, optional tag | value? | Get last attribute value |
attr_all(name, tag?) | attribute name, optional tag | values? | Get all attribute values |
attrs() | - | table | Get all attributes as table |
append_attr(name, tag?, value) | name, tag, value | - | Append an attribute to the writable packet |
append_attrs(name, tag?, values) | name, tag, values | - | Append values to the writable packet |
set_attr(name, tag?, value) | name, tag, value | - | Set an attribute on the writable packet |
set_attrs(name, tag?, values) | name, tag, values | - | Set values on the writable packet |