Documentation

Lua script context API - RADIUS Proxy sub-context

radiusproxy

RADIUS proxy request/response data.

Fields

FieldTypeDescription
requestpacketProxy request packet
replypacketProxy reply packet
serverserver?Proxy server info

Server Object

FieldTypeDescription
namestringProxy server name
tlsbooleanIs TLS connection?

Packet Methods

The packet methods are identical to radius packets:

MethodParametersReturnsDescription
attr(name, tag?)attribute name, optional tagvalue?Get first attribute value
attr_last(name, tag?)attribute name, optional tagvalue?Get last attribute value
attr_all(name, tag?)attribute name, optional tagvalues?Get all attribute values
attrs()-tableGet all attributes as table
append_attr(name, tag?, value)name, tag, value-Append attribute (reply only)
append_attrs(name, tag?, values)name, tag, values-Append multiple values (reply only)
set_attr(name, tag?, value)name, tag, value-Set attribute if not exists (reply only)
set_attrs(name, tag?, values)name, tag, values-Set multiple values (reply only)
Navigation
Parents