Logging network activity of LAMP server using BASH

Posted by Yarin on Server Fault See other posts from Server Fault or by Yarin
Published on 2010-04-29T15:53:17Z Indexed on 2010/04/29 15:57 UTC
Read the original article Hit count: 542

Filed under:
|
|
|
|

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

  1. CLIENT -> PROXY
  2. PROXY -> SERVICE
  3. SERVICE -> PROXY
  4. PROXY -> CLIENT

I'm hoping to do this using BASH tools- thinking netcat? Looking for advice and examples. Thanks!

© Server Fault or respective owner

Related posts about networking

Related posts about logging