I need to monitor network activity on the server. I would like all traffic to pass through a script, like a proxy. My proxy script will inspect the request and then serve the response.
How can I do this?
- I'm running Ubuntu, but would be interested in answers for any Linux OS
- The traffic I need to proxy may be on any port (not just port 80)
- This is for outgoing traffic only, not traffic coming into the server.