Logging network activity of LAMP server using BASH
- by Yarin
I've got a Fedora LAMP server on Amazon EC2 functioning as a HTTP pseudo-proxy (Sorry, don't know the terminology- It's not a true proxy where requests are relayed through apache, rather client requests are being translated by a PHP script, which then sends a new request.)
I'd like to be able to fully log the HTTP cycle
CLIENT - PROXY
PROXY - SERVICE
SERVICE - PROXY
PROXY - CLIENT
I'm hoping to do this using BASH tools- thinking netcat? Looking for advice and examples. Thanks!