VMPS: Failed encoding packet: Failed to find VQP-Packet-Type in response packet
Hi, Stock Freeradius version 2.1.6, compiled with dpkg-buildpackage. Using default sites-avaialable/vmps virtual server. Also using dynamic clients with clients in postgresql. Getting this error on every VMPS request: Failed encoding packet: Failed to find VQP-Packet-Type in response packet. Using a customised sites-enabled/vmps file, pulling data from postgresql, which was working in 2.1.0, I get the same error. Any ideas as to why this error is occurring? Cheers --Mike radiusd: #### Opening IP addresses and Ports #### listen { type = "auth" ipaddr = * port = 0 } listen { type = "acct" ipaddr = * port = 0 } listen { type = "vmps" ipaddr = * port = 1589 } Listening on authentication address * port 1812 Listening on accounting address * port 1813 Listening on vmps address * port 1589 as server vmps Listening on proxy address * port 1814 Ready to process requests. server dynamic_client_server { rlm_sql (sqllocal): Reserving sql socket id: 4 rlm_sql_postgresql: query: SELECT nasname FROM nas WHERE nasname >>= '127.0.0.1' rlm_sql_postgresql: Status: PGRES_TUPLES_OK rlm_sql_postgresql: query affected rows = 1 , fields = 1 rlm_sql (sqllocal): Released sql socket id: 4 rlm_sql (sqllocal): Reserving sql socket id: 3 rlm_sql_postgresql: query: SELECT shortname FROM nas WHERE nasname >>= '127.0.0.1' rlm_sql_postgresql: Status: PGRES_TUPLES_OK rlm_sql_postgresql: query affected rows = 1 , fields = 1 rlm_sql (sqllocal): Released sql socket id: 3 rlm_sql (sqllocal): Reserving sql socket id: 2 rlm_sql_postgresql: query: SELECT secret FROM nas WHERE nasname >>= '127.0.0.1' rlm_sql_postgresql: Status: PGRES_TUPLES_OK rlm_sql_postgresql: query affected rows = 1 , fields = 1 rlm_sql (sqllocal): Released sql socket id: 2 rlm_sql (sqllocal): Reserving sql socket id: 1 rlm_sql_postgresql: query: SELECT type FROM nas WHERE nasname >>= '127.0.0.1' rlm_sql_postgresql: Status: PGRES_TUPLES_OK rlm_sql_postgresql: query affected rows = 1 , fields = 1 rlm_sql (sqllocal): Released sql socket id: 1 } # server dynamic_client_server - Added client 127.0.0.1 with shared secret testing123 VMPS-Packet-Type = VMPS-Join-Request VMPS-Error-Code = VMPS-No-Error VMPS-Sequence-Number = 4660 VMPS-Client-IP-Address = 10.252.24.2 VMPS-Port-Name = "Fa0/17" VMPS-VLAN-Name = "" VMPS-Domain-Name = "blah" VMPS-Unknown = 0x00 VMPS-MAC = 00:16:41:11:0b:ff server vmps { Doing VMPS Done VMPS } # server vmps Failed encoding packet: Failed to find VQP-Packet-Type in response packet Finished request 0. Going to the next request Waking up in 4.9 seconds. Cleaning up request 0 ID 4660 with timestamp +87 Ready to process requests.
Michael Bryant wrote:
Using a customised sites-enabled/vmps file, pulling data from postgresql, which was working in 2.1.0, I get the same error.
You get the same error in 2.1.0, or the configuration which worked in 2.1.0 doesn't work in 2.1.6? ...
server vmps { Doing VMPS Done VMPS } # server vmps
Which shows that absolutely nothing is happening in the VMPS server. Is there anything at all in the VMPS server? Alan DeKok.
You get the same error in 2.1.0, or the configuration which worked in 2.1.0 doesn't work in 2.1.6?
My customized vmps server section works in 2.1.0. Trying to use the same customized configuration in 2.1.6 gives the error. Using the default configuration - the VMPS-VLAN-Name = "please_use_real_vlan_here" one, works in 2.1.0 In 2.1.6, it returns the error.
Which shows that absolutely nothing is happening in the VMPS server.
Is there anything at all in the VMPS server? Yes, the part to pull the mac address out of the ethernet frame, putting it in the vmps-cookie, updating the reply with the vlan name / packet-type - the default config.
On a clean machine I've just compiled 2.1.6, done minimal editing to enable the vmps server (linked the vmps file into sites-enabled), and i'm getting the same error. Output with 2.1.0: Vlan: please_use_real_vlan_here MAC Address: 123412341234 Status: ALLOW With 2.1.6: Ready to process requests. VMPS-Packet-Type = VMPS-Join-Request VMPS-Error-Code = VMPS-No-Error VMPS-Sequence-Number = 4660 VMPS-Client-IP-Address = 127.0.0.1 VMPS-Port-Name = "Fa0/1" VMPS-VLAN-Name = "" VMPS-Domain-Name = "" VMPS-Unknown = 0x00 VMPS-MAC = 12:34:12:34:12:34 server vmps { Doing VMPS Done VMPS } # server vmps Failed encoding packet: Failed to find VQP-Packet-Type in response packet Finished request 0. Full 2.1.6 log attached Cheers --Mike
Michael Bryant wrote:
You get the same error in 2.1.0, or the configuration which worked in 2.1.0 doesn't work in 2.1.6?
My customized vmps server section works in 2.1.0.
Except that debug mode prints out what it is processing. And it's not printing out anything in 2.1.6. That may be the source of the problem. What does debug mode show for 2.1.0?
Output with 2.1.0: Vlan: please_use_real_vlan_here MAC Address: 123412341234 Status: ALLOW
Is that the debug output... or something else?
With 2.1.6: Ready to process requests.
Which looks to be the debug output. Compare apples to apples. Alan DeKok.
Attached is the debug output from a ubuntu package of 2.1.0, with the default config (I didn't see a 2.1.0 tarball on the site) Also attached is the debug output from the 2.1.6 install (tarball from site), again with the default config. As far as I can tell, in 2.1.0 it finds the vmps section, in 2.1.6 it doesn't. --Mike On Sun, 2009-08-09 at 15:06 +0200, Alan DeKok wrote:
Michael Bryant wrote:
You get the same error in 2.1.0, or the configuration which worked in 2.1.0 doesn't work in 2.1.6?
My customized vmps server section works in 2.1.0.
Except that debug mode prints out what it is processing. And it's not printing out anything in 2.1.6. That may be the source of the problem.
What does debug mode show for 2.1.0?
Output with 2.1.0: Vlan: please_use_real_vlan_here MAC Address: 123412341234 Status: ALLOW
Is that the debug output... or something else?
With 2.1.6: Ready to process requests.
Which looks to be the debug output.
Compare apples to apples.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Michael Bryant wrote:
Attached is the debug output from a ubuntu package of 2.1.0, with the default config (I didn't see a 2.1.0 tarball on the site)
Also attached is the debug output from the 2.1.6 install (tarball from site), again with the default config.
As far as I can tell, in 2.1.0 it finds the vmps section, in 2.1.6 it doesn't.
Ok. I've pushed a fix into git. Alan DeKok.
participants (2)
-
Alan DeKok -
Michael Bryant