From owner-freebsd-questions@FreeBSD.ORG Mon Oct 25 08:13:24 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2265216A4CE for ; Mon, 25 Oct 2004 08:13:24 +0000 (GMT) Received: from auk1.snu.ac.kr (auk1.snu.ac.kr [147.46.100.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFEE543D4C for ; Mon, 25 Oct 2004 08:13:23 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [147.46.44.181] (spamrefuse@yahoo.com) by auk1.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004102517:09:51:572720.15513.2726779824 for ; Mon, 25 Oct 2004 17:09:51 +0900 (KST) Message-ID: <417CB59D.3020700@yahoo.com> Date: Mon, 25 Oct 2004 17:13:17 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041017 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD References: <3.0.6.32.20041025084122.007cdb50@mail.uk2.net> <10582.1098690276@www44.gmx.net> <01fc01c4ba68$fac42460$0300a8c0@astral> In-Reply-To: <01fc01c4ba68$fac42460$0300a8c0@astral> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: YES-__TRSYS_LV__3 (SR:-1.71) (SRN:SPAMROBOT) ----------------- Subject: Re: IPFW X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 08:13:24 -0000 Spades wrote: > Hi, > > I would like to monitor the connections (source IP + destination port) > of all connections to my server, can i use ipfw? > any idea how do i execute the command to log that or the rule tcpdump(1) could do that for you, I believe. If you have a firewall up and running, then I wonder if this could work at the top of your rules list: ipfw add log logamount 0 count ip from any to any or something like this. See ipfw(8). R.