[CentOS] log outbound port 80 connections

Ray Van Dolson rvandolson at esri.com
Tue Feb 5 17:00:19 UTC 2008


On Tue, Feb 05, 2008 at 11:56:48AM -0500, Tony Schreiner wrote:
> Is there a way to log outbound connections to a specific port (80)?
> CentOS 4.6.
>
> iptables?
>

iptables -A OUTPUT -p tcp --dport 80 -j LOG --log-prefix "WWW "

You might want to tack --syn on there as well to only log the packet
initiating the connection instead of packets for the whole stream.

Ray



More information about the CentOS mailing list