Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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

TRIPP may also be a solution:

share|improve this answer

Your Answer


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.