Re: log outbound port 80 connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux