Networking Forums

Networking Forums > Computer Networking > Linux Networking > Generate an IP Packet with false source address?

Reply
Thread Tools Display Modes

Generate an IP Packet with false source address?

 
 
Christian Reiter
Guest
Posts: n/a

 
      06-18-2007, 06:58 AM
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

 
Reply With Quote
 
 
 
 
Tim Southerwood
Guest
Posts: n/a

 
      06-18-2007, 11:45 AM
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
 
Reply With Quote
 
Michael Zawrotny
Guest
Posts: n/a

 
      06-18-2007, 04:32 PM
On Mon, 18 Jun 2007 06:58:39 -0000, Christian Reiter <(E-Mail Removed)> 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: (E-Mail Removed)
Tallahassee, FL 32306-4380 | phone: (850) 644-0069
 
Reply With Quote
 
H. Kerem Cevahir
Guest
Posts: n/a

 
      06-18-2007, 06:35 PM
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.

 
Reply With Quote
 
Christian Reiter
Guest
Posts: n/a

 
      06-21-2007, 06:14 PM
Thanks to all of you for your answers!

I did the job with hping.

regards,
chris

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source MAC address per IP packet albrechtuhlmann@gmx.net Linux Networking 4 08-12-2008 12:31 PM
Multicast joins with false source address Ralph B Linux Networking 0 09-20-2007 04:24 PM
Packet routing by source IP andrei.stoian@gmail.com Linux Networking 3 10-12-2006 03:37 PM
False MAC Address Geoff Lane Home Networking 0 09-07-2003 06:17 PM
False MAC Address Geoff Lane Windows Networking 0 09-07-2003 06:17 PM



1 2 3 4 5 6 7 8 9 10 11