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.

Is there any software available that will listen for TCP packets and execute some event or (code, script, exe, etc) when packets matching a specific filter are detected?

To give you an example of what I'm trying to do. Say I have 2 web servers, one development and one for production. I want to be able to push a code update to my development server and replicate all of the requests hitting my production server onto the development server to test stress and concurrency.

There are other applications I've found that are very close to what I need but they lack one very important thing, Real-Time execution. I cannot record the TCP traffic then replay it at a later time, it needs to be done in real time.

Current setup (ii7 with haproxy)

share|improve this question
add comment

1 Answer

This is exactly what an intrusion detection system does. An IDS is normally used for security purposes -- that is, to detect and respond to network-based attacks -- but I'm sure something like snort could be made to do what you want.

That said, I don't think this is actually the right tool for the job. Maybe a better solution would be to watch your access log and replay the requests on your development host.

share|improve this answer
    
Interesting product I'll have to give it a look. I also found some HTTP Modules you can make for IIS7 that intercepts logs real time before they're written to disk. Problem is that I haven't found any that specifically do what I would need so I have to take time to create my own module, but that's also a solution I suppose. –  Brian Jun 23 '11 at 18:20
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.