problem with checking dhcp-packet type
Alexander Kubatkin
kaa at kaa.su
Tue Jul 7 08:42:06 CEST 2009
Hello.
Freeradius 2.1.6
Below of the message translated and not translated code of dhcp-packet from
client soho-router TrendNet 631BRP.
As i can see, the main problem is a wrong order (for freeradius rules) of dhcp
options and that's why such packet did not recognized and did not accepted.
When packet is arriving i see "Unknown, or badly formatted DHCP packet".
How to fix this?
P.S. sorry for my english.
====not translated==============
0000 00 04 23 cc 33 98 00 1b 11 97 74 7e 08 00 45 00 ..#.3... ..t~..E.
0010 01 48 09 78 00 00 40 11 72 5a 59 de a5 01 59 de .H.x.. at . rZY...Y.
0020 a5 15 00 43 00 43 01 34 a8 46 01 01 06 01 7c 5e ...C.C.4 .F....|^
0030 42 a1 00 00 80 00 00 00 00 00 00 00 00 00 00 00 B....... ........
0040 00 00 59 de e9 01 00 15 17 3a 0c d1 00 00 00 00 ..Y..... .:......
0050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
0080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
0100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
0110 00 00 00 00 00 00 63 82 53 63 0c 06 42 65 69 72 ......c. Sc..Beir
0120 65 6c 37 07 01 03 06 2c 0f 2e 2f 35 01 01 52 12 el7...., ../5..R.
0130 01 06 00 04 02 12 00 07 02 08 01 06 00 1b 11 b5 ........ ........
0140 ef 04 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
0150 00 00 00 00 00 00 ......
==================
======translated by tshark============
Frame 1896 (342 bytes on wire, 342 bytes captured)
Arrival Time: Jul 6, 2009 20:49:28.162401000
[Time delta from previous captured frame: 69.069364000 seconds]
[Time delta from previous displayed frame: 69.069364000 seconds]
[Time since reference or first frame: 42290.060516000 seconds]
Frame Number: 1896
Frame Length: 342 bytes
Capture Length: 342 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: D-Link_97:74:7e (00:1b:11:97:74:7e), Dst: Intel_cc:33:98
(00:04:23:cc:33:98)
Destination: Intel_cc:33:98 (00:04:23:cc:33:98)
Address: Intel_cc:33:98 (00:04:23:cc:33:98)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Source: D-Link_97:74:7e (00:1b:11:97:74:7e)
Address: D-Link_97:74:7e (00:1b:11:97:74:7e)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Type: IP (0x0800)
Internet Protocol, Src: 89.222.165.1 (89.222.165.1), Dst: 89.222.165.21
(89.222.165.21)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 328
Identification: 0x0978 (2424)
Flags: 0x00
0... = Reserved bit: Not set
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x725a [correct]
[Good: True]
[Bad : False]
Source: 89.222.165.1 (89.222.165.1)
Destination: 89.222.165.21 (89.222.165.21)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootps (67)
Source port: bootps (67)
Destination port: bootps (67)
Length: 308
Checksum: 0xa846 [correct]
[Good Checksum: True]
[Bad Checksum: False]
Bootstrap Protocol
Message type: Boot Request (1)
Hardware type: Ethernet
Hardware address length: 6
Hops: 1
Transaction ID: 0x7c5e42a1
Seconds elapsed: 0
Bootp flags: 0x8000 (Broadcast)
1... .... .... .... = Broadcast flag: Broadcast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 0.0.0.0 (0.0.0.0)
Next server IP address: 0.0.0.0 (0.0.0.0)
Relay agent IP address: 89.222.233.1 (89.222.233.1)
Client MAC address: IntelCor_3a:0c:d1 (00:15:17:3a:0c:d1)
Server host name not given
Boot file name not given
Magic cookie: (OK)
Option: (t=12,l=6) Host Name = "Beirel"
Option: (12) Host Name
Length: 6
Value: 42656972656C
Option: (t=55,l=7) Parameter Request List
Option: (55) Parameter Request List
Length: 7
Value: 0103062C0F2E2F
1 = Subnet Mask
3 = Router
6 = Domain Name Server
44 = NetBIOS over TCP/IP Name Server
15 = Domain Name
46 = NetBIOS over TCP/IP Node Type
47 = NetBIOS over TCP/IP Scope
Option: (t=53,l=1) DHCP Message Type = DHCP Discover
Option: (53) DHCP Message Type
Length: 1
Value: 01
Option: (t=82,l=18) Agent Information Option
Option: (82) Agent Information Option
Length: 18
Value: 010600040212000702080106001B11B5EF04
Agent Circuit ID: 000402120007
Agent Remote ID: 0106001B11B5EF04
End Option
Padding
=============================
--
Alexander Kubatkin
More information about the Freeradius-Users
mailing list