Freeradius2

如何接受freeradius2中的所有連接?

  • October 25, 2012

我需要設置接受任何使用者名/密碼的半徑並為 mpd 提供一些屬性。

類似於:(raddb/users)

DEFAULT Framed-Protocol == PPP                                                                                    
   Service-Type = Framed-User,                                                                                   
   mpd-limit = "out#1=all shape 10240000 pass ",                                                                 
   mpd-limit += "in#1=all rate-limit 2048000 pass",                                                              
   Framed-Pool = "local"

我不關心 auth 、 username 和其他,因為它的備份半徑和它的任務接受所有連接,而我們保持“主”半徑。

我嘗試在站點可用/預設中進行所有評論,

我嘗試添加 DEFAULT Auth-Type = Accept

我嘗試使用 Exec-Program-Wait = with program always return ok

但是 radius 總是從 mschap 組返回 REJECT,如下所示:

# Executing section authorize from file /usr/local/etc/raddb/sites-enabled/default
+- entering group authorize {...}
++[chap] returns noop
[mschap] Found MS-CHAP attributes.  Setting 'Auth-Type  = mschap'
++[mschap] returns ok
[eap] No EAP-Message, not doing EAP
++[eap] returns noop
[files] users: Matched entry DEFAULT at line 208
++[files] returns ok
Found Auth-Type = MSCHAP
# Executing group from file /usr/local/etc/raddb/sites-enabled/default
+- entering group MS-CHAP {...}
[mschap] No Cleartext-Password configured.  Cannot create LM-Password.
[mschap] No Cleartext-Password configured.  Cannot create NT-Password.
[mschap] Creating challenge hash with username: test
[mschap] Client is using MS-CHAPv2 for test, we need NT-Password
[mschap] FAILED: No NT/LM-Password.  Cannot perform authentication.
[mschap] FAILED: MS-CHAP2-Response is incorrect
++[mschap] returns reject
Failed to authenticate the user.
Login incorrect: [test] (from client localhost port 2 cli 00e05290b3e3 / 00:e0:52:90:b3:e3 / em1)
Using Post-Auth-Type REJECT
# Executing group from file /usr/local/etc/raddb/sites-enabled/default
+- entering group REJECT {...}
[attr_filter.access_reject]     expand: %{User-Name} -> test
attr_filter: Matched entry DEFAULT at line 11
++[attr_filter.access_reject] returns updated
Delaying reject of request 0 for 1 seconds
Going to the next request
Waking up in 0.9 seconds.
Sending delayed reject for request 0
Sending Access-Reject of id 175 to 127.0.0.1 port 64198
       MS-CHAP-Error = "\001E=691 R=1"

請幫幫我。如何為所有使用者名/密碼設置接受?

您可以設置Auth-Type屬性以接受請求:

DEFAULT Auth-Type := Accept

引用自:https://serverfault.com/questions/442325