Behaviours: eradius_server.
This module implements a RADIUS proxy.
It accepts following configuration:
[{default_route, {{127, 0, 0, 1}, 1813, <<"secret">>}, pool_name}, {options, [{type, realm}, {strip, true}, {separator, "@"}]}, {routes, [{"^test-[0-9].", {{127, 0, 0, 1}, 1815, <<"secret1">>}, pool_name}]}]
Where the pool_name is optional field that contains list of RADIUS servers pool name that will be used for fail-over.
Pools of RADIUS servers are defined in eradius configuration:
{servers_pool, [{pool_name, [ {{127, 0, 0, 1}, 1815, <<"secret">>, [{retries, 3}]}, {{127, 0, 0, 1}, 1816, <<"secret">>}]}]}
routes
carefully. The test
here in example above, is
a regular expression that may cause to problemts with performance.
get_routes_info/1 | |
put_default_route_to_pool/2 | |
put_routes_to_pool/2 | |
radius_request/3 | |
validate_arguments/1 |
get_routes_info(HandlerOpts) -> any()
put_default_route_to_pool(X1, Retries) -> any()
put_routes_to_pool(X1, Retries) -> any()
radius_request(Request, NasProp, Args) -> any()
validate_arguments(Args) -> any()
Generated by EDoc