Send kea-dev mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.isc.org/mailman/listinfo/kea-dev
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of kea-dev digest..."
Today's Topics:
1. perfdhcp template question (Angelo Failla)
2. Re: perfdhcp template question (Francis Dupont)
3. Re: perfdhcp template question (Angelo Failla)
4. Re: [Potential Spoof] Re: perfdhcp template question
(Angelo Failla)
5. Re: perfdhcp template question (Francis Dupont)
----------------------------------------------------------------------
Message: 1
Date: Wed, 27 Apr 2016 13:56:31 +0000
From: Angelo Failla <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [kea-dev] perfdhcp template question
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Hi,
I have a question about perfdhcp. I see there is a ?T template_file option:
-T<template-file>: The name of a file containing the template to use
as a stream of hexadecimal digits
However I am wondering what?s exactly the content of the file.
Do you have any examples on how to build a template?
I basically need to simulate 50 machines with different macs constantly sending
DISCOVERY packets and each discovery packet must request options 66 (TFTP
server)
and 67 (FILENAME).
Regards
--
Angelo Failla
Cluster Infrastructure - Dublin
[email protected]
------------------------------
Message: 2
Date: Wed, 27 Apr 2016 15:09:07 +0000
From: Francis Dupont <[email protected]>
To: Angelo Failla <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [kea-dev] perfdhcp template question
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Angelo Failla writes:
> I have a question about perfdhcp. I see there is a -T template_file option:
>
> -T<template-file>: The name of a file containing the template to use
> as a stream of hexadecimal digits
=> yes, the idea is to be able to change sent messages.
> However I am wondering what's exactly the content of the file.
=> it is what the documentation says and -xT prints them so you
have an idea/example of what is really in it. And you have the testdata
files in the tests directory (src/bin/perfdhcp/tests/testdata/*.hex)
> Do you have any examples on how to build a template?
=> initially I edited the output of tcpdump -x but perhaps there are
easier ways? Anyway on one side you have a string of hexadecimal digits
in a file and on the other side tcpdump (or tshark) with an hexadecimal
dump. With enough feedback rounds you should get what you'd like...
> I basically need to simulate 50 machines with different macs
> constantly sending DISCOVERY packets and each discovery packet must
> request options 66 (TFTP server) and 67 (FILENAME).
=> this is a typical use of the template feature!
Thanks
Francis Dupont <[email protected]>
------------------------------
Message: 3
Date: Wed, 27 Apr 2016 15:38:03 +0000
From: Angelo Failla <[email protected]>
To: Francis Dupont <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [kea-dev] perfdhcp template question
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
On 4/27/16, 8:09 AM, "Francis Dupont" <[email protected]> wrote:
>>I basically need to simulate 50 machines with different macs
>> constantly sending DISCOVERY packets and each discovery packet must
>> request options 66 (TFTP server) and 67 (FILENAME).
>
>=> this is a typical use of the template feature!
Ok I will give it a try, so I took a tcpdump, and I can read it with tshark:
0000 90 e2 ba 95 b9 28 7c 69 f6 15 29 41 08 00 45 00 .....(|i..)A..E.
0010 01 14 00 01 00 00 3d 11 37 12 0a 23 8b 51 0a 23 ......=.7..#.Q.#
0020 a6 2f 00 43 00 43 01 00 0c 6a 01 01 06 01 00 00 ./.C.C...j......
0030 a1 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .2..............
0040 00 00 0a 23 8b 51 00 02 c9 de 70 4e 00 00 00 00 ...#.Q....pN....
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 35 01 01 37 02 42 ......c.Sc5..7.B
0120 43 ff C.
So my string to put in the template would be
90e2ba95b9287c69f6152941080045000114000100003d1137120a238b510a23a62f0043004301000c6a010106010000a132000000000000000000000000000000000a238b510002c9de704e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006382536335010137024243ff
Not my question is, if I want to simulate different mac addresses do I need
To put multiple lines like the above in the template file?
-
Angelo
------------------------------
Message: 4
Date: Wed, 27 Apr 2016 15:41:55 +0000
From: Angelo Failla <[email protected]>
To: Francis Dupont <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [kea-dev] [Potential Spoof] Re: perfdhcp template
question
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
On 4/27/16, 8:38 AM, "[email protected] on behalf of Angelo Failla"
<[email protected] on behalf of [email protected]> wrote:
>So my string to put in the template would be
>
>90e2ba95b9287c69f6152941080045000114000100003d1137120a238b510a23a62f0043004301000c6a010106010000a132000000000000000000000000000000000a238b510002c9de704e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006382536335010137024243ff
Actually it should be
010106010000a132000000000000000000000000000000000a238b510002c9de704e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006382536335010137024243ff
What comes before that is Frame/Etheret/IP/UDP headers :)
------------------------------
Message: 5
Date: Wed, 27 Apr 2016 18:54:33 +0000
From: Francis Dupont <[email protected]>
To: Angelo Failla <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [kea-dev] perfdhcp template question
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Angelo Failla writes:
> Not my question is, if I want to simulate different mac addresses do
> I need to put multiple lines like the above in the template file?
=> no, it is a template so it gives only the skeleton of the message.
All variable fields are set after. Or with other words there is a default
template coded in the message generation function which can be replaced
by the content of the template file. As you can want these variable
fields to be at a not default place there are a set of offset options.
As I suggested you should use tcpdump (or tshark) to check perfdhcp
generates what you want and play with command line options...
Thanks
Francis Dupont <[email protected]>
------------------------------
_______________________________________________
kea-dev mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-dev
End of kea-dev Digest, Vol 25, Issue 6
**************************************