Generate an IP Packet with false source address? - Networking

This is a discussion on Generate an IP Packet with false source address? - Networking ; Hi! To check a Cisco's ACL i have to generate a Packet with a faked Source Address. Example: My local network is 10.23.45.0/24, routers ip is 10.23.45.254. Now i want to send a packet with source ip 172.16.1.1 from the ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Generate an IP Packet with false source address?

  1. Generate an IP Packet with false source address?

    Hi!

    To check a Cisco's ACL i have to generate a Packet with a faked Source
    Address.

    Example:

    My local network is 10.23.45.0/24, routers ip is 10.23.45.254.
    Now i want to send a packet with source ip 172.16.1.1 from the host
    with 10.23.45.1

    The contents of the Packet do not matter.

    Which tool could i use?

    chris


  2. Re: Generate an IP Packet with false source address?

    Christian Reiter wrote:

    > Hi!
    >
    > To check a Cisco's ACL i have to generate a Packet with a faked Source
    > Address.
    >
    > Example:
    >
    > My local network is 10.23.45.0/24, routers ip is 10.23.45.254.
    > Now i want to send a packet with source ip 172.16.1.1 from the host
    > with 10.23.45.1
    >
    > The contents of the Packet do not matter.
    >
    > Which tool could i use?
    >
    > chris


    Personally, I would take a spare PC/laptop and reconfigure the interface on
    the fly.

    Tim

  3. Re: Generate an IP Packet with false source address?

    On Mon, 18 Jun 2007 06:58:39 -0000, Christian Reiter wrote:
    >
    > To check a Cisco's ACL i have to generate a Packet with a faked Source
    > Address.

    [ snip ]
    > The contents of the Packet do not matter.
    >
    > Which tool could i use?


    I like hping (www.hping.org) for this type of thing. You could also
    use sendip, rain, etc.


    Mike

    --
    Michael Zawrotny
    Institute of Molecular Biophysics
    Florida State University | email: zawrotny@sb.fsu.edu
    Tallahassee, FL 32306-4380 | phone: (850) 644-0069

  4. Re: Generate an IP Packet with false source address?

    Hi,

    You can use a simple perl script, too. But, you must have raw-IP api
    installed and root previliges.

    -------------------------------------------------------------------
    #!/usr/bin/perl

    use Net::RawIP;
    use Getopt::Long;

    my $net = new Net::RawIP;

    my $sourceip = "172.16.1.1";
    my $destip = "10.0.0.1";
    my $sourceport = "44444";
    my $destport = "80";

    $net->set(
    { ip => {
    saddr => $sourceip,
    daddr => $destip,
    },
    tcp => {
    source => $sourceport,
    dest => $destport,
    syn => 1,
    },
    }
    );
    $net->send();
    -------------------------------------------------------------------

    Regards.

    Kerem.


  5. Re: Generate an IP Packet with false source address?

    Thanks to all of you for your answers!

    I did the job with hping.

    regards,
    chris


+ Reply to Thread