Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a tool for Linux or Windows that modifies an IP header, to be precise the IP source address. I know it's impossible to get the answer to such a packet since you do not own the IP and back routing will fail but is this possible and how?

share|improve this question

4 Answers 4

up vote 1 down vote accepted

If you need to issue a packet with a different source address than your interface, rather than modify one on th fly, then hping is the tool commonly used. As answered previously, modification is best done by iptables.

share|improve this answer

You'll need to create what is essentially a proxy server that will intercept the packets and modify them on the fly if you want this to be real-time. And that proxy server will have to be in a position to successfully intercept everything between your target and the internet or the rest of the network, depending on what sort of network you've got.

share|improve this answer

How about something like this?

distinct Networking Tools

Modify and Send Packet. Software developers testing their application are able to capture a packet, quickly modify it to test the various needs of their application and resend it on the network.

The Packet Generator allows users to create a packet for test purposes and send it on the network to test it. The types of packets that can be created are ARP, Ethernet, ICMP, IP, TCP or UDP based. This feature is designed for software engineers to test out their own proprietary protocols by simulating particular situations and for system administrators to check for security holes in their network.

Here's some more information about IP Spoofing.

share|improve this answer
    
Sounds like a good tool, but it might be relevant that it's quite expensive. –  bbaja42 Oct 11 '11 at 19:06

Depending on your needs, iptables in linux could be of help.

Say you have web server on port 8080, but you would like that anyone can access it on standard port 80. It is possible to configure iptables to redirect packet from port 8080 to 80 ( iptables will receive packet on port 80 , modify packets port to 8080 and forward it).

In similar sense, iptables can be configured to changed IP source or IP destination.

Tutorial

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.