Sound like you might want Squid Proxy. It can be molded into many things, and work as a cache proxy all the while. You can run it in transparent mode, and log all the Internet traffic in/out of a...