Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Build a MITM using Apache?

Status
Not open for further replies.

ColinBlake

Programmer
Jan 19, 2007
1
US
For a project I'm working on, we need to build a "man in the middle" proxy. For a simple proof of concept we want something which can receive a request dump the request in plain text to a log file, and then "forward" the request on to the target server. When the response comes back that too needs dumping to a log file, and then returned to the original client. This needs to work for both http and https.

We were thinking/hoping that we could use Apache for this project, and that much of what we needed to do could be done with existing Apache modules. Obviously we would need to write some code, but the expectation was that this wouldn't be too much.

The biggest problem we have is that none of us are familiar with Apache, and so we don't have a clue where to start. In fact, we don't even know if what we want to do is possible using Apache. If anyone could provide some guidance it would be very much appreciated.
 
What you want to do is possible with Apache, particularly with its plugin module mod_proxy which, as you would expect, provides proxying for Apache.

But I wonder if Apache is the right tool for the job. My immediate thought is to ask you if you've looked at Squid: Squid is purpose-built to the task of proxying.


Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top