我有3台服务器:代理服务器和2台家庭服务器。我想用以下方式配置Freeradius代理。当第一个服务器不响应时,代理将请求转发到另一个服务器。
可以这样配置Freeradius,而不需要更改C源代码?最初Freeradius在第一次尝试后拒绝请求,因此客户端负责回复请求。

最佳答案

我们可以使用freeradius代理配置(/etc/freeradius/proxy.conf),如下所示:

home_server homeserver1 {
    type = auth
    ipaddr = <IP of homeserver1>
    port = 1812
    secret = SECRET
    require_message_authenticator = yes
    response_window = 20
    zombie_period = 40
    status_check = status-server
    check_interval = 30
    num_answers_to_alive = 3
    max_outstanding = 65536
}
home_server homeserver2 {
    type = auth
    ipaddr = <IP of homeserver2>
    port = 1812
    secret = SECRET
    require_message_authenticator = yes
    response_window = 20
    zombie_period = 40
    status_check = status-server
    check_interval = 30
    num_answers_to_alive = 3
    max_outstanding = 65536
}
home_server_pool freeradius_loadbalance {
        type = load-balance
        home_server = homeserver1
        home_server = homeserver2
}

realm NULL {
        auth_pool = freeradius_loadbalance
        nostrip
}

09-06 05:45