Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to rewrite the contents/payload of UDP packets as they are received by a machine, on selected reports - before they are passed to the listening application.

For example, I would like to change the headers of a UDP-based protocol by using grep-like regular expressions (to add, remove or change parts of each message received).

Is this possible with a software firewall or similar tool?

Thanks all!

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

If this isn't for production, but rather just learning. I recommend Scapy, you can craft and replay packets on a object oriented interface that relates to the OSI model. It acts like an interactive python console. You can also sniff with it, lots of fun ;-)

share|improve this answer
    
Wow, looks powerful. –  wodow Oct 30 '09 at 16:39
    
This is the closest one, thanks! A year late... –  wodow Nov 23 '10 at 12:07
add comment

Such a tool is called a UDP Proxy and there are a few out there.

  • Simple UDP Proxy/Pipe
  • udpproxy
  • UProxy
share|improve this answer
    
Thanks, DigitalRoss. These last two look like they do forwarding of UDP only, rather than allowing rewrites of the payload. Is that so? What do you mean by "Simple UDP Proxy/Pipe". Pipe to a userland program? –  wodow Oct 30 '09 at 16:36
    
Ah, I see it is actually the name of a package! –  wodow Oct 30 '09 at 16:38
add comment

TRIPP may also be a solution:

http://tripp.dynalias.org/

share|improve this answer
add comment

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.