###freeradiusでのMAC認証
L2SWとfreeradiusにてポートベースMAC認証をしたいのですがうまく認証ができません。
freeradius上でのradtestでは問題なくACCEPTが返ってくるのですが、実際にRadiusクライアントを通してやってみるとRejectされてしまいます。
サーバー構築・運用すること自体経験が浅いので何か的はずれなことをしてるのかもしれませんがよろしくお願いします。
###環境
freeradiusサーバ 192.168.1.4/24
Radiusクライアント(L2SW) 192.168.1.240/24
サプリカント 192.168.1.12/24
・freeradisuはWindowsServer2012 64bitで動いているVMwareで仮想化されたUbunts(15.10)で動かしています
・RadiusクライアントはH3C(HP)のA5120-24G EI
###config
以下私が編集した部分を書きだしたものです。
users.conf
78e7d19d2846 Auth-Type:=Local, Cleartext-Password:="78e7d19d2846"
clients.conf
client 192.168.1.0/24 { secret = test }
radiusd.conf
user = root group = root port = 1812
###実行結果
radius.log
Fri Dec 4 16:29:32 2015 : Auth: Login incorrect: [78e7d19d2846] (from client 192.168.1.0/24 port 16805898 cli 78-E7-D1-9D-28-46)
###2015/12/17 デバッグモードでの実行結果を追記
実環境での結果
rad_recv: Access-Request packet from host 192.168.1.2 port 5001, id=38, length=112 User-Name = "78e7d19d2846" User-Password = "78e7d19d2846" NAS-IP-Address = 192.168.1.2 NAS-Identifier = "000fe24540f5" NAS-Port = 16805898 NAS-Port-Type = Ethernet Service-Type = Call-Check Framed-Protocol = PPP Calling-Station-Id = "78e7-d19d-2846" # Executing section authorize from file /etc/freeradius/sites-enabled/default +- entering group authorize {...} ++[preprocess] returns ok [auth_log] expand: /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d -> /var/log/freeradius/radacct/192.168.1.2/auth-detail-20151217 [auth_log] /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/freeradius/radacct/192.168.1.2/auth-detail-20151217 [auth_log] expand: %t -> Thu Dec 17 10:20:24 2015 ++[auth_log] returns ok ++[chap] returns noop ++[mschap] returns noop ++[digest] returns noop [suffix] No '@' in User-Name = "78e7d19d2846", looking up realm NULL [suffix] No such realm "NULL" ++[suffix] returns noop [eap] No EAP-Message, not doing EAP ++[eap] returns noop [files] users: Matched entry DEFAULT at line 172 ++[files] returns ok rlm_checkval: Item Name: Calling-Station-Id, Value: 78e7-d19d-2846 rlm_checkval: Could not find attribute named Calling-Station-Id in check pairs ++[checkval] returns notfound ++[expiration] returns noop ++[logintime] returns noop [pap] WARNING! No "known good" password found for the user. Authentication may fail because of this. ++[pap] returns noop ERROR: No authenticate method (Auth-Type) found for the request: Rejecting the user Failed to authenticate the user. Login incorrect: [78e7d19d2846/78e7d19d2846] (from client client port 16805898 cli 78e7-d19d-2846) Using Post-Auth-Type Reject # Executing group from file /etc/freeradius/sites-enabled/default +- entering group REJECT {...} [attr_filter.access_reject] expand: %{User-Name} -> 78e7d19d2846 attr_filter: Matched entry DEFAULT at line 11 ++[attr_filter.access_reject] returns updated Delaying reject of request 3 for 1 seconds Going to the next request Waking up in 0.9 seconds. Sending delayed reject for request 3 Sending Access-Reject of id 38 to 192.168.1.2 port 5001 Waking up in 0.8 seconds. Cleaning up request 2 ID 37 with timestamp +249 Waking up in 4.1 seconds.
radtestでの結果(radtest 78e7d19d2846 78e7d19d2846 localhost 1812 test)
rad_recv: Access-Request packet from host 127.0.0.1 port 59230, id=109, length=82 User-Name = "78e7d19d2846" User-Password = "78e7d19d2846" NAS-IP-Address = 127.0.1.1 NAS-Port = 1812 Message-Authenticator = 0xc09c4655d8445950ceb2b86441e9d76c # Executing section authorize from file /etc/freeradius/sites-enabled/default +- entering group authorize {...} ++[preprocess] returns ok [auth_log] expand: /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d -> /var/log/freeradius/radacct/127.0.0.1/auth-detail-20151217 [auth_log] /var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands to /var/log/freeradius/radacct/127.0.0.1/auth-detail-20151217 [auth_log] expand: %t -> Thu Dec 17 10:47:24 2015 ++[auth_log] returns ok ++[chap] returns noop ++[mschap] returns noop ++[digest] returns noop [suffix] No '@' in User-Name = "78e7d19d2846", looking up realm NULL [suffix] No such realm "NULL" ++[suffix] returns noop [eap] No EAP-Message, not doing EAP ++[eap] returns noop [files] users: Matched entry 78e7d19d2846 at line 235 ++[files] returns ok ++[expiration] returns noop ++[logintime] returns noop [pap] WARNING: Auth-Type already set. Not setting to PAP ++[pap] returns noop Found Auth-Type = PAP # Executing group from file /etc/freeradius/sites-enabled/default +- entering group PAP {...} [pap] login attempt with password "78e7d19d2846" [pap] Using clear text password "78e7d19d2846" [pap] User authenticated successfully ++[pap] returns ok Login OK: [78e7d19d2846/78e7d19d2846] (from client localhost port 1812) # Executing section post-auth from file /etc/freeradius/sites-enabled/default +- entering group post-auth {...} ++[exec] returns noop Sending Access-Accept of id 109 to 127.0.0.1 port 59230 Finished request 2. Going to the next request Waking up in 4.9 seconds. Cleaning up request 2 ID 109 with timestamp +192 Ready to process requests.

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/12/17 02:24