From owner-freebsd-questions@FreeBSD.ORG Tue Apr 27 02:03:27 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 3E79616A4CE for ; Tue, 27 Apr 2004 02:03:27 -0700 (PDT) Received: from mout.perfora.net (mout.perfora.net [217.160.230.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02A9443D3F for ; Tue, 27 Apr 2004 02:03:27 -0700 (PDT) (envelope-from dark@sun.com) Received: from [217.160.230.50] (helo=smtp.perfora.net) by mout.perfora.net with esmtp (Exim 3.35 #1) id 1BIOUv-0003Tz-00; Tue, 27 Apr 2004 05:03:25 -0400 Received: from [66.24.127.139] (helo=mxus.perfora.net) by smtp.perfora.net with asmtp (Exim 3.35 #1) id 1BIOUv-0001CM-00; Tue, 27 Apr 2004 05:03:25 -0400 Received: by mxus.perfora.net (Postfix, from userid 1001) id C98FE62E4; Tue, 27 Apr 2004 05:03:13 -0400 (EDT) Date: Tue, 27 Apr 2004 05:03:13 -0400 From: Dev Tugnait To: John Murphy Message-ID: <20040427090313.GA35577@hellsing.vampire.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://unixdaemon.org X-Operating-System: Unix/5.2.1-RELEASE (i386) X-Uptime: 5:01AM up 39 days, 7:12, 27 users, load averages: 0.33, 0.38, 0.38 User-Agent: Mutt/1.5.6i cc: questions@FreeBSD.ORG Subject: Re: ipf not loging (5.2.1) 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: Tue, 27 Apr 2004 09:03:27 -0000 Try using ipmon_flags="-Dsn" ipmon_program="/sbin/ipmon" and the other program flags are not necessary * John Murphy (jfm@blueyonder.co.uk) wrote: > I'm stumped. Can't seem to get ipf/ipmon to log to /var/log/ipflog > (FreeBSD 5.2.1-Release) > > In /etc/rc.conf I have: > ipfilter_enable="YES" > ipfilter_program="/sbin/ipf" > ipfilter_rules="/etc/ipf.rules" > ipfilter_flags="" > > ipnat_enable="YES" > ipnat_program="/sbin/ipnat" > ipnat_rules="/etc/ipnat.rules" > ipnat_flags="" > > ipmon_enable="YES" > ipmon_program="/sbin/ipmon" > ipmon_flags="-D /var/log/ipflog" > > The end of dmesg says: > IP Filter: v3.4.31 initialized. Default = pass all, Logging = enabled > > I've touched and chmoded /var/log/ipflog so it looks like: > -rw-rw-rw- 1 root wheel 0 Apr 26 23:23 /var/log/ipflog > > And I've used trafshow to see packets which should be logged but > /var/log/ipflog remains empty. Any hints welcome. > > -- > John. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" ---++--- ---------GnuPGPVer 1.2.3-------------------------------------------------- pub 1024D/B9046473 2003-11-21 Dev Tugnait (Freebsd) Key fingerprint = F690 6725 1930 6FBE C05A FE4D 6CB1 34C1 B904 6473 sub 1024g/F8F019DF 2003-11-21 --------------------------------------------------------------------------