From owner-freebsd-ipfw Thu Jan 30 23:58:31 2003 Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CDB437B401 for ; Thu, 30 Jan 2003 23:58:30 -0800 (PST) Received: from rose.csi.cam.ac.uk (rose.csi.cam.ac.uk [131.111.8.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8C0643F79 for ; Thu, 30 Jan 2003 23:58:29 -0800 (PST) (envelope-from sa264@cam.ac.uk) Received: from m218-3.phy.cam.ac.uk ([131.111.79.217]) by rose.csi.cam.ac.uk with esmtp (Exim 4.10) id 18eW4C-00088r-00; Fri, 31 Jan 2003 07:58:28 +0000 Received: from localhost ([::1]) by m218-3.phy.cam.ac.uk with esmtp (Exim 4.12) id 18eW4B-0000s1-00; Fri, 31 Jan 2003 07:58:28 +0000 Date: Fri, 31 Jan 2003 07:58:27 +0000 From: AMAKAWA Shuhei To: freebsd-ipfw@FreeBSD.ORG Cc: Sergey Klusov Subject: Re: ipfw2 In-Reply-To: <124904071.20030130102535@geoseis.t72.ru> References: <124904071.20030130102535@geoseis.t72.ru> MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Message-Id: Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Thu, 30 Jan 2003 10:25:35 +0500, Sergey Klusov wrote: > > ipfw add 50 divert natd all from any to any via ${extif} > ipfw add 100 check-state > ipfw add 200 deny log tcp from any to any established > ipfw add 300 permit tcp from any to any setup > > almost always there is a logged message like this, WHEN the connection > terminates > Everything works fine but full log of this: > > Jan 10 12:04:24 tower /kernel: ipfw: 200 Deny TCP 217.66.99.188:80 193.111.x.x:1147 in via rl1 > > i've tried to intercept this packets with tcpdump and figured out, > what those packets logged are TCP packets with FIN flag. And it seems, > that many hosts send multiple FIN packets, wich causes to remove > dynamic rule on first FIN packet and then log that message above on > all subsequent packets. > Also i must notice that it is not diverted packets logged, because we > use squid, which is on the same host. So i doubt what this is a NAT > issue. > > Any ideas? I think you keep-state at 300. Does sysctl net.inet.ip.fw.dyn_fin_lifetime=4 possibly change anything? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message