[FreeRadius]遇到問題記錄

來源:互聯網
上載者:User

[FreeRadius]遇到問題記錄

在學習FreeRadius中遇到的問題,和解決。

radtest 沒有響應

radiusd 啟動正常,測試如下命令不好使

[root@orangleliu raddb]# radtest alice passme 127.0.0.1 100 testing123radclient:: Failed to find IP address for orangleliuradclient: Nothing to send.

這個問題就是主機是 orangleliu 可是呢,radtest找不到對應的IP,解決辦法是 添加 /etc/hosts 一個記錄

cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 orangleliu::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

仔細思考下,這個問題可能和 radiusd 服務啟動綁定有關。radtest 類比的是個NAS裝置,這個請求都沒發出去,說明跟Radius伺服器關係不大,應該是radtest某些機制 。問題解決了,原因沒找到。

user配置錯誤無法啟動

這個一般就是學習的時候才會發生,錯誤記錄檔大概這樣子

..../etc/raddb/users[3]: Syntax error: Previous line is missing a trailing comma for entry aliceErrors reading /etc/raddb/users/etc/raddb/modules/files[7]: Instantiation failed for module "files"/etc/raddb/sites-enabled/default[170]: Failed to load module "files"./etc/raddb/sites-enabled/default[69]: Errors parsing authorize section. 

其實根據提示就能知道個大概了,我這裡是user配置錯了

錯誤的

"alice" Cleartext-Password := "passme" Framed-IP-Address = 192.168.59.103 Reply-Message = "Hello, %{User-Name}"right one

正確的

"alice" Cleartext-Password := "passme" Framed-IP-Address = 192.168.59.103, Reply-Message = "Hello, %{User-Name}"

看到了嗎,就是第二行少了個逗號,文法問題,所以文檔看仔細嘍

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.