Sorry din notice the Linux env ...
You could install Squid
http://www.squid-cache.org
it has a reporting feature which gives you what you need
Main Topics
Browse All TopicsI would like to capture all outbound http traffic, and log the hostname it goes to, as well as the page requested, and the request type (get/post/..)
Is it possible to do so with tcpdump and have it write the information to a file as a one-liner (ie: time source destination req type url)
If it is possible, how to do it
If it isn't possible, what program *can* do it
Linux OS requirement.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sorry din notice the Linux env ...
You could install Squid
http://www.squid-cache.org
it has a reporting feature which gives you what you need
The reporting tool would be
http://www.squid-cache.org
I've tried
http://sarg.sourceforge.ne
Try Wireshark (Network protocol analyzer)
http://www.wireshark.org/
I show tcpdump being a package by itself:
PACKAGE DESCRIPTION:
tcpdump: tcpdump
tcpdump:
tcpdump: Tcpdump is a tool for network monitoring and data acquisition. You
tcpdump: can use it to dump information on all the packets on a network that
tcpdump: match a boolean expression. Tcpdump uses libpcap, a system
tcpdump: independent interface for user-level packet capture.
if you want to do that with tcpdump, then you are headed for a bad time... you will be able to get that but will need to write complex scripts.
however, as been told, squid does all that for you, and you can configure squid to do transparent proxying, so noone will notice but you will have exactly that report on the access.log squid creates.
why you don't give it a check?
Hi,
As you told earlier Wireshark is the answer. Tcpdump is just a command line utility where you'll mostly use for creating dumps in remote locations etc. As you mentioned earlier the format they dump data is the same. But I think using wireshark will be OK for for you. Then all you do would be to create a filter to capture only the packests with a destination port of 80 and SYN bit set. When you capture the packets you'll filter out the destination address and you'll log it to a file. The trick here is when a client wants to establish a communication with a server it sends the first packet with SYN and ACK bits are set. When the server acknowledgess the connection client responds with ACK again. So if you capture the packets with ACK you'd log the same address twice.
ok, I understood that well enough, you are referring to the three way handshake that occurs on all tcp connections.
What I don't understand well enough, is what capture filter to use exactly. When I try to write one, I usually get a syntax error, or, a 'this is a display filter, not a capture filter'
Ok. This part is clear enough I guess :))
In fact this filter creation with Wireshark is always a bit tricky. It never warn when you create but it will dispaly eror after you complete editing :) I'll suggest you display the existing filters and play with them a while.
Heres the capture filters wiki:
http://wiki.wireshark.org/
Business Accounts
Answer for Membership
by: alexjayaprakashPosted on 2007-09-22 at 04:08:28ID: 19941160
Basically what i think you need is a software gateway or a proxy here are some links, i've used wingate and it works well ...
jects/acfr eeproxy/
You could try http://www.wingate.com/
http://sourceforge.net/pro
http://3proxy.ru/