Hi I am helping fkayser to solve this issue and so far we have not been able to login into the webfig using Radius Authenication. What I've tried was to enable radius debugging messages on the Mikrotik Router. Following is the current configuration. Radius is sending the packet to the mikrotik router perfectly and MSCHAP_2 seems to be working fine. Althoug we still have the same effect the after the Mikrotik is trying to login and redirects you to a page with an
Error: router has been disconnected like fkayser shows in the screenshot.
Config
ros code
/radius
add address=x.x.x.x secret=testlab service=login src-address=192.168.254.71
/user group
add name=restricted
/user aaa
set default-group=restricted use-radius=yes
Radius debug messages
- 192.168.10.1 = Radius Server
- 192.168.0.25 = Desktop station
- 192.168.254.71 = NAS-IP Mgt IP Mikrotik
ros code
12:42:22 radius,debug new request 0d:48 code=Access-Request service=login
12:42:22 radius,debug sending 0d:48 to 192.168.10.1:1812
12:42:22 radius,debug,packet sending Access-Request with id 103 to 192.168.10.1:1812
12:42:22 radius,debug,packet Signature = 0xc336d52d08e79b4961ec66747a2226c5
12:42:22 radius,debug,packet Service-Type = 1
12:42:22 radius,debug,packet User-Name = "username"
12:42:22 radius,debug,packet MS-CHAP-Challenge = 0xc6ac40723c24329f02f2638d03fcbb0f
12:42:22 radius,debug,packet MS-CHAP2-Response = 0x000021402324255e262a28295f2b3a33
12:42:22 radius,debug,packet 7c7e0000000000000000332f79ad6e65
12:42:22 radius,debug,packet d77483d697dfbea7c1b4d908d73ea04f
12:42:22 radius,debug,packet d637
12:42:22 radius,debug,packet Calling-Station-Id = "192.168.0.25"
12:42:22 radius,debug,packet NAS-Identifier = "MT2011L_Test"
12:42:22 radius,debug,packet NAS-IP-Address = 192.168.254.71
12:42:22 radius,debug,packet received Access-Accept with id 103 from 192.168.10.1:1812
12:42:22 system,info,account user username logged in from 192.168.0.25 via web
12:42:22 radius,debug,packet Signature = 0x061d05946e1151641b4a0650dc050845
12:42:22 radius,debug,packet User-Name = "username"
12:42:22 radius,debug,packet Class = 0x434143533a7461636163732d696e7431
12:42:22 radius,debug,packet 2f3136363437313832312f3831363730
12:42:22 radius,debug,packet 33
12:42:22 radius,debug,packet MS-CHAP2-Success = 0x00533d43463844363641423733434541
12:42:22 radius,debug,packet 34313434314341344535443643393443
12:42:22 radius,debug,packet 3544364144413345353236
12:42:22 radius,debug,packet MT-Group = "full"
12:42:22 radius,debug received reply for 0d:48
12:42:22 radius,debug new request 0d:00 code=Accounting-Request service=login
12:42:22 radius,debug sending 0d:00 to 192.168.10.1:1813
12:42:22 radius,debug,packet sending Accounting-Request with id 104 to 192.168.10.1:1813
12:42:22 radius,debug,packet Signature = 0x3639dfdfdb78bae921fb357a4990eeec
12:42:22 radius,debug,packet Service-Type = 1
12:42:22 radius,debug,packet User-Name = "username"
12:42:22 radius,debug,packet Calling-Station-Id = "192.168.0.25"
12:42:22 radius,debug,packet Acct-Status-Type = 1
12:42:22 radius,debug,packet Acct-Session-Id = "84000026"
12:42:22 radius,debug,packet NAS-Identifier = "MT2011L_Test"
12:42:22 radius,debug,packet Acct-Delay-Time = 0
12:42:22 radius,debug,packet NAS-IP-Address = 192.168.254.71
12:42:22 radius,debug,packet received Accounting-Response with id 104 from 192.168.10.1:1813
12:42:22 radius,debug,packet Signature = 0x47a0546ecfdc07aa3a0f27f44629cecf
12:42:22 radius,debug received reply for 0d:00
12:42:22 radius,debug request 0d:00 processed
Radius packet send back
VENDOR 14988
ATTRIBUTE 3: "full"
Another strange behavior we've noticed was that active user sessions were kept even on failed Webfig logins.
ros code
/user active> print
Flags: R - radius
# WHEN NAME ADDRESS VIA
0 R jan/02/1970 00:01:32 username 192.168.0.25 web
1 R jan/02/1970 00:01:52 username 192.168.0.25 web
2 R jan/02/1970 00:02:20 username 192.168.0.25 web
3 R jan/02/1970 00:02:49 username 192.168.0.25 web
4 jan/02/1970 00:05:49 admin 192.168.0.25 web
5 R jan/02/1970 00:11:11 username 192.168.0.25 web
6 R jan/02/1970 00:54:02 username 192.168.0.25 web
7 jan/02/1970 01:22:47 admin 192.168.0.25 web
8 R jan/02/1970 02:29:44 username 192.168.0.25 web
9 R jan/02/1970 02:30:02 username 192.168.0.25 web
10 R jan/02/1970 02:30:15 username 192.168.0.25 web
11 R oct/08/2013 09:46:26 username 192.168.0.25 web
12 oct/08/2013 10:49:50 admin 192.168.0.25 web
13 R oct/08/2013 11:40:39 username 192.168.0.25 web
14 R oct/08/2013 11:41:29 username 192.168.0.25 web
15 oct/08/2013 11:44:24 admin 192.168.0.25 web
16 R oct/08/2013 11:51:20 username 192.168.0.25 web
17 oct/08/2013 11:51:42 admin 192.168.0.25 web
18 R oct/08/2013 12:10:27 username 192.168.0.25 web
19 R oct/08/2013 12:12:39 username 192.168.0.25 ssh
20 R oct/08/2013 12:12:48 username 192.168.0.25 web
21 R oct/08/2013 12:16:15 username 192.168.0.25 web
22 R oct/08/2013 12:18:29 username 192.168.0.25 web
23 oct/08/2013 12:19:41 admin 192.168.0.25 web
24 R oct/08/2013 12:32:25 username 192.168.0.25 web
25 R oct/08/2013 12:37:29 username 192.168.0.25 web
26 R oct/08/2013 12:40:55 username 192.168.0.25 ssh
27 R oct/08/2013 12:42:22 username 192.168.0.25 web
28 R oct/08/2013 12:49:59 username 192.168.0.25 web
29 R oct/08/2013 12:50:24 username 192.168.0.25 web
30 R oct/08/2013 12:51:38 username 192.168.0.25 web
31 R oct/08/2013 13:03:54 username 192.168.0.25 web