简体   繁体   English

FreeRADIUS 没有收到任何请求

[英]FreeRADIUS doesn't receive any requests

I configured FreeRadius to use MySQL and everything was working until a while ago, when some teammates complained they cannot authenticate to the server.我将 FreeRadius 配置为使用 MySQL,并且一切正常,直到不久前,一些队友抱怨他们无法对服务器进行身份验证。

So I started FreeRadius again in debug mode and I tried with the radtest testing password 127.0.0.1 0 testing123 classic testing, but I receive No reply from server for ID 241 socket 3 .所以我在调试模式下再次启动 FreeRadius 并尝试使用radtest testing password 127.0.0.1 0 testing123经典测试,但我收到No reply from server for ID 241 socket 3

Actually it seems that the server doesn't receive anything since in the log I just can see Ready to process requests message, when I run the radtest.实际上,服务器似乎没有收到任何内容,因为在我运行 radtest 时,我只能在日志中看到准备处理请求消息。

From the output of the debug mode, it seems Free Radius is listening从调试模式的输出来看,似乎 Free Radius 正在监听

radiusd: #### Opening IP addresses and Ports ####
listen {
        type = "auth"
        ipaddr = *
        port = 1813
   limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
   }
}
listen {
        type = "acct"
        ipaddr = *
        port = 1814
   limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
   }
}
listen {
        type = "auth"
        ipv6addr = ::
        port = 1813
   limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
   }
}
listen {
        type = "acct"
        ipv6addr = ::
        port = 1814
   limit {
        max_connections = 16
        lifetime = 0
        idle_timeout = 30
   }
}
listen {
        type = "auth"
        ipaddr = 127.0.0.1
        port = 18120
}
Listening on auth address * port 1813 bound to server default
Listening on acct address * port 1814 bound to server default
Listening on auth address :: port 1813 bound to server default
Listening on acct address :: port 1814 bound to server default
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on proxy address * port 36889
Listening on proxy address :: port 48860

and also the client configuration seems correct to me而且客户端配置对我来说似乎是正确的

client localhost {
        ipaddr = 127.0.0.1
        proto = *
        secret = testing123
#       shortname = localhost
        nas_type         = other        # localhost isn't usually a NAS...        
        limit {
                
                max_connections = 16
                lifetime = 0
                idle_timeout = 30
        }
}

Can you help me to debug why it doesn't work anymore?你能帮我调试一下为什么它不再起作用了吗?

You have changed the ports in the configuration.您已更改配置中的端口。 Auth should be on port 1812, and acct on 1813, not 1813 and 1814 as you currently have. Auth 应该在端口 1812 上,并且在 1813 上进行,而不是像您目前拥有的那样在 1813 和 1814 上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM