From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brad Tilley Subject: Logging the whole packet Date: Tue, 23 Nov 2004 16:50:28 -0500 Message-ID: <41A3B0A4.9020906@vt.edu> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Is it possible to log the packet body and not just the header? Currently I have this line in my iptables start-up file: /sbin/iptables -I INPUT -p tcp -s ! 128.173.120.79 -d 128.173.120.79 -j LOG --log-prefix="Packet_Filter:" And it generates log entries such as this: Nov 23 16:44:28 athop1 kernel: Packet_Filter:IN=eth0 OUT= MAC=00:30:6e:5e:a2:0c:00:d0:01:ab:44:00:08:00 SRC=64.81.214.131 DST=128.173.120.79 LEN=48 TOS=0x00 PREC=0x00 TTL=110 ID=29621 DF PROTO=TCP SPT=60366 DPT=445 WINDOW=16384 RES=0x00 SYN URGP=0 I'd like to capture the packet body as well. I'm new to packet logging so forgive me if I'm over looking the obvious. Thanks, Brad