in reply to Generating Multiple IP clients in a single interface

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.

  • Comment on Re: Generating Multiple IP clients in a single interface

Replies are listed 'Best First'.
Re: Re: Generating Multiple IP clients in a single interface
by jepri (Parson) on Sep 06, 2002 at 14:30 UTC
    It gets worse... you usually aren't allowed to nominate your 'source address'. That tends to be done at the kernel level. You could use raw sockets, but that could get very tough.

    ____________________
    Jeremy
    I didn't believe in evil until I dated it.