From nobody@FreeBSD.org  Wed May 16 11:26:33 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id EB2FC16A400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 May 2007 11:26:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id DC7BD13C455
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 May 2007 11:26:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4GBQUVr061358
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 May 2007 11:26:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l4GBLT9e060823;
	Wed, 16 May 2007 11:21:29 GMT
	(envelope-from nobody)
Message-Id: <200705161121.l4GBLT9e060823@www.freebsd.org>
Date: Wed, 16 May 2007 11:21:29 GMT
From: Vyacheslav Silakov<seal@inar.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipfw is seems to be broken to limit number of connections
X-Send-Pr-Version: www-3.0

>Number:         112708
>Category:       kern
>Synopsis:       [ipfw] ipfw is seems to be broken to limit number of connections
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 16 11:30:04 GMT 2007
>Closed-Date:    Sat Aug 28 10:46:42 UTC 2010
>Last-Modified:  Sat Aug 28 10:46:42 UTC 2010
>Originator:     Vyacheslav Silakov
>Release:        FreeBSD 6.2-STABLE
>Organization:
JSC Internet-Arkhangelsk
>Environment:
FreeBSD fw.inar.ru 6.2-STABLE FreeBSD 6.2-STABLE #3: Fri May 11 15:45:11 MSD 2007     seal@fw.inar.ru:/usr/obj/usr/src/sys/FW  i386

>Description:
IPFW rules:
ipfw add allow tcp from me to me 25
ipfw add allow tcp from x.x.x.0/19 to me 25 limit dst-port 100
ipfw add allow tcp from any to me 25 limit dst-port 500
works fine with FreeBSD 4.11-STABLE.

However they doesn't work properly after upgrade to 6.2-STABLE.
Our mail server is always heavy loaded. When I'm installing this ipfw rules number of sendmail connections is keeping around selected limit (500-600 sendmail processes. ps -ax| grep sendmail | wc). But after 5-10 minutes of runtime number of sendmail processes is going to 25 and server rejects new smtp connections. 'ipfw -f flush' and ipfw reconfiguration makes smtp-server alive for another 5-10 minutes and so on.

>How-To-Repeat:

>Fix:
none
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ipfw 
Responsible-Changed-By: remko 
Responsible-Changed-When: Wed May 16 11:44:16 UTC 2007 
Responsible-Changed-Why:  
reassign to ipfw team. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112708 

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: bug-followup@FreeBSD.org, seal@inar.ru
Cc:  
Subject: Re: kern/112708: ipfw is seems to be broken to limit number of connections
Date: Thu, 17 May 2007 16:42:16 +0400

 Hi,
 
 What show `ipfw -d show` and
 `netstat -anf inet | grep -E "SYN|ESTAB"`?
 
 -- 
 WBR, Andrey V. Elsukov
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sun Feb 7 03:08:41 UTC 2010 
State-Changed-Why:  
To submitter: feedback was requested quite some time ago.  Does this 
problem still persist? 


Responsible-Changed-From-To: freebsd-ipfw->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Feb 7 03:08:41 UTC 2010 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=112708 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Aug 28 10:46:22 UTC 2010 
State-Changed-Why:  
Feedback timeout ( > 3 months). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112708 
>Unformatted:
