Ik ben bezig met het implementeren van een Freeradius server die systemen toelaat op basis van hun MAC-adres. Het lijkt erop dat Freeradius de authenticatie goed afhandeld, maar de Switch zet de poort nooit in autherization state en laat dus ook geen traffic door:
Iemand hier ervaring mee en/of idee wat ik fout zou kunnen doen?
Debug Freeradius:
Switch AT-9000:
Iemand hier ervaring mee en/of idee wat ik fout zou kunnen doen?
Debug Freeradius:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| Listening on authentication address <deleted> port 1812
Listening on command file /var/run/radiusd/radiusd.sock
Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
Ready to process requests.
rad_recv: Access-Request packet from host 192.168.1.31 port 1, id=122, length=162
User-Name = "00-1c-23-27-08-0d"
User-Password = "00-1c-23-27-08-0d"
NAS-IP-Address = 192.168.1.31
NAS-Port = 5
Called-Station-Id = "EC-CD-6D-4D-E1-4E"
Calling-Station-Id = "00-1C-23-27-08-0D"
Framed-MTU = 1336
NAS-Port-Type = Ethernet
Connect-Info = "100Mbps"
Message-Authenticator = 0xbe8f96de37432d61efec45f764c99383
# Executing section authorize from file /etc/raddb/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
[suffix] No '@' in User-Name = "00-1c-23-27-08-0d", 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 00-1c-23-27-08-0d at line 4
++[files] returns ok
++[expiration] returns noop
++[logintime] returns noop
++[pap] returns updated
Found Auth-Type = PAP
# Executing group from file /etc/raddb/sites-enabled/default
+- entering group PAP {...}
[pap] login attempt with password "00-1c-23-27-08-0d"
[pap] Using clear text password "00-1c-23-27-08-0d"
[pap] User authenticated successfully
++[pap] returns ok
Login OK: [00-1c-23-27-08-0d/00-1c-23-27-08-0d] (from client ne0031 port 5 cli 00-1C-23-27-08-0D)
# Executing section post-auth from file /etc/raddb/sites-enabled/default
+- entering group post-auth {...}
++[exec] returns noop
Sending Access-Accept of id 122 to 192.168.1.31 port 1
Finished request 0.
Going to the next request |
Switch AT-9000:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| # show dot1x all
802.1X Port-Based Authentication Enabled
RADIUS server address (auth): <deleted>
Authentication Info for interface port1.0.5
portEnabled: Enabled - portControl: Auto
portStatus: UP
reAuthenticate: Disabled
reAuthPeriod: 3600
PAE: quietPeriod: 60 - maxReauthReq: 2 - txPeriod: 30
BE: suppTimeout: 30 - serverTimeout: 30
CD: adminControlledDirections: both
guestVlan: Disabled
hostMode: Single-Host
dot1x: Enabled
protocolVersion: 1
authMac: Enabled
Interface port1.0.5
authenticationMethod: mac
totalSupplicantNum: 1
authorizedSupplicantNum: 0
macBasedAuthenticationSupplicantNum: 1
dot1xAuthenticationSupplicantNum: 0
otherAuthenticationSupplicantNum: 0
Supplicant name: 00-1c-23-27-08-0d
Supplicant address: 001C.2327.080D
authenticationMethod: mac
portStatus: Unauthorized - currentId: 109
abort:F fail:F start:T timeout:F success:F
PAE: state: Authenticating - portMode: Auto
PAE: reAuthCount: 2
PAE: quietPeriod: 0 - maxReauthReq: 2
BE: state: Response - reqCount: 0
CD: adminControlledDirections: in
Authentication Statistics for interface port1.0.5
EAPOL Frames Rx: 0 - EAPOL Frames Tx: 0
EAPOL Start Frames Rx: 0 - EAPOL Logoff Frames Rx: 0
EAP Rsp/Id Frames Rx: 0 - EAP Response Frames Rx: 0
EAP Req/Id Frames Tx: 0 - EAP Request Frames Tx: 0
Invalid EAPOL Frames Rx: 0 - EAP Length Error Frames Rx: 0
EAPOL Last Frame Version Rx: 0 - EAPOL Last Frame Src: 0000.0000.0000 |
♥ Under Construction ♦ © 1985 - 2013 and counting. ♣ Born to be Root ★ In the end, we are all communists ♠ Please, don't feed me meat