From owner-freebsd-questions@FreeBSD.ORG Thu Apr 15 20:37:12 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7B07106566C for ; Thu, 15 Apr 2010 20:37:12 +0000 (UTC) (envelope-from yavuz.maslak@netiletisim.net) Received: from pop3.ihlas.net.tr (posta.ihlasnet.com.tr [213.238.128.150]) by mx1.freebsd.org (Postfix) with ESMTP id DD3328FC25 for ; Thu, 15 Apr 2010 20:37:11 +0000 (UTC) Received: (qmail 20715 invoked by uid 89); 15 Apr 2010 23:37:08 +0300 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=netiletisim.net; b=TWTUPFoQd5HnW59S9r4VHz+EpnbFFdJwz+L4szG3gWCCxehZs/xP9Yze3+tsEfauQaZFDFKcs2yFOqPrczLxHW4D/1Za6BW4tNBmJNjUtMH7nNUbe9votu8s0uLCWSB+Ghq/qVncWVREiINSG3+wXJqc3aB/hoYKghE0xvoRgZs= ; Received: from ihlasnetym (HELO desktop2002) (yavuz.maslak@netiletisim.net@213.238.150.220) by 0 with SMTP; 15 Apr 2010 23:37:08 +0300 Message-ID: From: =?iso-8859-9?Q?Yavuz_Ma=FElak?= To: Date: Thu, 15 Apr 2010 23:37:09 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-9"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8089.726 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726 Subject: about tcpdump X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2010 20:37:12 -0000 I have a network. I wish to log all incoming and outgoing trafficc using tcpdump on my gateway server. But I don't want to log these traffic's data because of they take up much on disk. I only want to log which ports were used, which ip addresses were reached. How can I do these using tcpdump ? Could you give me an example or docs? I use freebsd7.2