I think you mean you want a (let's assume) perl app to stress test some networking product or other by pretending to be many client machines, and that for the sake of realism the requests it generates should appear to come from several IP addresses. Let's also assume that you're not writing a DoS machine.

The best place to start would probably be mstone, part of the mozilla project and very likely to handle the protocol you want. Not very perly, though.

Or you could, if you really want, roll your own using LWP or some set of socket libraries, in which case merlyn has inevitably written a couple of columns that will help.

as far as the IP address part of the question goes, I don't think it can be answered without knowing more about what you intend. IP spoofing is no good because you will presumably need to assess the server response. Your best bet is probably to set up the XP box to assign several IP addresses to a single network connection, which is easy enough, then spend some time with perlipc, get friendly with your sockets and then use IO::Socket or one of its offspring to do the work.


In reply to Re: Generating Multiple IP clients in a single interface by thpfft
in thread Generating Multiple IP clients in a single interface by shuyiet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.