From nobody@FreeBSD.org  Thu Nov 15 14:45:30 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 45B6816A41B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Nov 2007 14:45:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id CA43613C44B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Nov 2007 14:45:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id lAFEipko007224
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Nov 2007 14:44:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id lAFEipdY007222;
	Thu, 15 Nov 2007 14:44:51 GMT
	(envelope-from nobody)
Message-Id: <200711151444.lAFEipdY007222@www.freebsd.org>
Date: Thu, 15 Nov 2007 14:44:51 GMT
From: Oleg Gawriloff  <barzog@telecom.by>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipnat -s expired counter does not update
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118071
>Category:       bin
>Synopsis:       ipnat(8): ipnat -s expired counter does not update [regression]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 15 14:50:01 UTC 2007
>Closed-Date:    Wed Jul 03 01:08:18 UTC 2013
>Last-Modified:  Wed Jul 03 01:08:18 UTC 2013
>Originator:     Oleg Gawriloff
>Release:        6.2
>Organization:
Atlant Telecom
>Environment:
FreeBSD vulture.telecom.by 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #7: Wed Oct 31 15:22:48 EET 2007     root@vulture.telecom.by:/usr/obj/usr/src/sys/VULTURE  i386

>Description:
[barzog@vulture ~]$ sudo ipnat -s
mapped  in      2582625093      out     1741190126
added   233203089       expired 0
no memory       0       bad nat 46424
inuse   52113
rules   28
wilds   0

expired counter does not updated during expiration of nat translations.
in log we see:
15/11/2007 16:43:00.014051 @0 NAT:EXPIRE 10.128.2.61,1135 <- -> 213.184.224.28,3545 [69.147.121.161,80] Pkts 5/6 Bytes 1398/616
15/11/2007 16:43:00.014054 @0 NAT:EXPIRE 10.128.15.112,3536 <- -> 213.184.224.29,31646 [72.14.221.104,80] Pkts 5/6 Bytes 360/1297
15/11/2007 16:43:00.014058 @0 NAT:EXPIRE 10.128.20.50,16378 <- -> 213.184.224.31,64039 [85.10.201.34,80] Pkts 5/5 Bytes 458/1058
15/11/2007 16:43:00.014061 @0 NAT:EXPIRE 10.128.7.243,4971 <- -> 213.184.224.28,3830 [88.212.196.89,80] Pkts 3/4 Bytes 128/168
15/11/2007 16:43:00.014065 @0 NAT:EXPIRE 10.128.7.243,4972 <- -> 213.184.224.28,3832 [194.67.45.100,80] Pkts 5/5 Bytes 1051/659
15/11/2007 16:43:00.014069 @0 NAT:EXPIRE 10.128.7.243,4973 <- -> 213.184.224.28,3833 [194.67.35.198,80] Pkts 2/4 Bytes 88/168
15/11/2007 16:43:00.014073 @0 NAT:EXPIRE 10.128.23.150,10818 <- -> 213.184.224.31,64035 [86.57.250.96,80] Pkts 13/11 Bytes 14187/1202
15/11/2007 16:43:00.014076 @0 NAT:EXPIRE 10.128.3.13,4756 <- -> 213.184.224.28,3818 [195.137.160.74,80] Pkts 5/5 Bytes 373/1002
15/11/2007 16:43:00.014080 @0 NAT:EXPIRE 10.128.14.197,1701 <- -> 213.184.224.29,32073 [194.67.45.55,80] Pkts 4/5 Bytes 270/1363
15/11/2007 16:43:00.014084 @0 NAT:EXPIRE 10.128.14.198,1595 <- -> 213.184.224.29,32031 [88.212.200.103,80] Pkts 18/13 Bytes 20652/1283
15/11/2007 16:43:00.014087 @0 NAT:EXPIRE 10.128.11.239,1362 <- -> 213.184.224.29,32078 [194.67.45.123,80] Pkts 5/5 Bytes 429/657
15/11/2007 16:43:00.014091 @0 NAT:EXPIRE 10.128.4.1,1081 <- -> 213.184.224.28,3814 [81.19.80.26,80] Pkts 5/5 Bytes 448/595
15/11/2007 16:43:00.014095 @0 NAT:EXPIRE 10.128.11.239,1363 <- -> 213.184.224.29,32079 [194.67.35.195,80] Pkts 6/6 Bytes 797/886
15/11/2007 16:43:00.014106 @0 NAT:EXPIRE 10.128.23.248,12528 <- -> 213.184.224.31,64032 [207.46.19.190,80] Pkts 3/5 Bytes 645/450
15/11/2007 16:43:00.014110 @0 NAT:EXPIRE 10.128.2.12,1537 <- -> 213.184.224.28,3766 [83.222.3.196,80] Pkts 5/5 Bytes 426/673
15/11/2007 16:43:00.014114 @0 NAT:EXPIRE 10.128.6.148,2484 <- -> 213.184.224.28,3800 [213.186.117.131,80] Pkts 6/6 Bytes 2509/778
15/11/2007 16:43:00.014118 @0 NAT:EXPIRE 10.128.3.240,1354 <- -> 213.184.224.28,61775 [194.186.176.31,80] Pkts 5/6 Bytes 1795/725
15/11/2007 16:43:00.014122 @0 NAT:EXPIRE 10.128.3.13,4758 <- -> 213.184.224.28,3821 [195.137.160.74,80] Pkts 6/6 Bytes 1675/852

but expired counter is always 0. In 5.5 all works well
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->darrenr 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu Nov 15 18:24:43 UTC 2007 
Responsible-Changed-Why:  
Can you look at this please? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118071 
State-Changed-From-To: open->analyzed 
State-Changed-By: darrenr 
State-Changed-When: Fri Dec 21 12:20:23 UTC 2007 
State-Changed-Why:  
I'm no longer able to reproduce this problem with FreeBSD using the 
latest ipfilter bits. 

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

From: Darren Reed <darrenr@freebsd.org>
To: bug-followup@FreeBSD.org, barzog@telecom.by
Cc:  
Subject: Re: bin/118071: ipnat(8): ipnat -s expired counter does not update
 (regression)
Date: Fri, 21 Dec 2007 23:17:03 +1100

 This bug should be fixed in the latest FreeBSD 6 release branch
 (for the upcoming 6.3 release.)
 
State-Changed-From-To: analyzed->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Jul 3 00:50:32 UTC 2013 
State-Changed-Why:  
In theory, should have been fixed as of 6.3.  Please let us know if it 
was not. 


Responsible-Changed-From-To: darrenr->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jul 3 00:50:32 UTC 2013 
Responsible-Changed-Why:  

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