Freeradius and VMPS MAC problem

Daniel Pogac dano.pogac at gmail.com
Mon Oct 26 15:11:35 CET 2015


Hi,

I'm trying to FreeRADIUS 3.0.4 with MySQL backend and VMPS on CentOS 7.1 64bit.
Everything seems to work, except one thing.

When i testing VMPS with vqpcli.pl, FreeRADIUS shows in debug other
MAC than i send by vqpcli.pl.

This is request what i send by vqpcli.pl:

[root at centos7 tmp]# ./vqpcli.pl -s localhost -v ISEPP -w 10.0.0.1 -i
2/4 -m 0010.a49f.30e3
==============================
MESSAGE SENT:
0000000 0101 0600 0000 3412 0000 010c 0400 000a
0000010 0100 0000 020c 0300 2f32 0034 0c00 0003
0000020 0000 0c00 0004 4905 4553 5050 0000 070c
0000030 0100 0000 0c00 0006 0006 a410 309f 00e3
000003f
==============================
MESSAGE RECV:
0000000 0201 0200 0000 3412 0000 030c 1900 6c70
0000010 6165 6573 755f 6573 725f 6165 5f6c 6c76
0000020 6e61 685f 7265 0065 0c00 0008 0006 a410
0000030 309f 00e3
0000033
==============================
Vlan: please_use_real_vlan_here
MAC Address: 0010a49f30e3
Status: ALLOW

and this is from debug of FrreeRADIUS:

        VMPS-Packet-Type = VMPS-Join-Request
        VMPS-Error-Code = VMPS-No-Error
        VMPS-Sequence-Number = 4660
        VMPS-Client-IP-Address = 10.0.0.1
        VMPS-Port-Name = '2/4'
        VMPS-VLAN-Name = ''
        VMPS-Domain-Name = 'ISEPP'
        VMPS-Unknown = 0x00
        VMPS-MAC = f0:a6:c0:15:55:7f
(0) Received Access-Request packet from host 127.0.0.1 port 34832,
id=4660, length=63
(0)     VMPS-Packet-Type = VMPS-Join-Request
(0)     VMPS-Error-Code = VMPS-No-Error
(0)     VMPS-Sequence-Number = 4660
(0)     VMPS-Client-IP-Address = 10.0.0.1
(0)     VMPS-Port-Name = '2/4'
(0)     VMPS-VLAN-Name = ''
(0)     VMPS-Domain-Name = 'ISEPP'
(0)     VMPS-Unknown = 0x00
(0)     VMPS-MAC = f0:a6:c0:15:55:7f
Doing VMPS
(0)   vmps {
(0)   [mac2vlan] = ok
(0)   update reply {
(0)     VMPS-Packet-Type = VMPS-Join-Response
(0) EXPAND %{VMPS-Mac}
(0)    --> f0:a6:c0:15:55:7f
(0)     VMPS-Cookie = f0:a6:c0:15:55:7f
(0)     VMPS-VLAN-Name = 'please_use_real_vlan_here'
(0)   } # update reply = noop
(0)    if (VMPS-Packet-Type == VMPS-Reconfirm-Request)
(0)    if (VMPS-Packet-Type == VMPS-Reconfirm-Request) -> FALSE
(0)  } #  vmps = ok
Done VMPS
(0)   vmps {
(0)   [mac2vlan] = ok
(0)   update reply {
(0)     VMPS-Packet-Type = VMPS-Join-Response
(0) EXPAND %{VMPS-Mac}
(0)    --> f0:a6:c0:15:55:7f
(0)     VMPS-Cookie = f0:a6:c0:15:55:7f
(0)     VMPS-VLAN-Name = 'please_use_real_vlan_here'
(0)   } # update reply = noop
(0)    if (VMPS-Packet-Type == VMPS-Reconfirm-Request)
(0)    if (VMPS-Packet-Type == VMPS-Reconfirm-Request) -> FALSE
(0)  } #  vmps = ok
(0) Sending Access-Accept packet to host 127.0.0.1 port 34832, id=4660, length=0
(0)     VMPS-Packet-Type = VMPS-Join-Response
(0)     VMPS-Cookie = f0:a6:c0:15:55:7f
(0)     VMPS-VLAN-Name = 'please_use_real_vlan_here'
        VMPS-VLAN-Name = 'please_use_real_vlan_here'
        VMPS-Cookie = f0:a6:c0:15:55:7f
(0) Finished request
Waking up in 0.3 seconds.
Waking up in 4.6 seconds.
(0) Cleaning up request packet ID 4660 with timestamp +312

As you can see I'm sending MAC:00:10:a4:9f:30:e3 but in debug log is
MAC: f0:a6:c0:15:55:7f. If i ran vqpcli.pl three times the MAC address
in debug change to another.
Can some explain to me what am I doing wrong ?

Daniel


More information about the Freeradius-Users mailing list