From nobody@FreeBSD.org  Thu Feb  9 07:17:20 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2A37B16A420
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Feb 2006 07:17:20 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E90C943D49
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Feb 2006 07:17:19 +0000 (GMT)
	(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 k197HJ8v034477
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 9 Feb 2006 07:17:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k197HJLn034476;
	Thu, 9 Feb 2006 07:17:19 GMT
	(envelope-from nobody)
Message-Id: <200602090717.k197HJLn034476@www.freebsd.org>
Date: Thu, 9 Feb 2006 07:17:19 GMT
From: Michael Wayne <wayne@staff.msen.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: netstat -i fails to report bytes output by jails
X-Send-Pr-Version: www-2.3

>Number:         93081
>Category:       kern
>Synopsis:       [jail] netstat -i fails to report bytes output by jails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 09 07:20:03 GMT 2006
>Closed-Date:    Mon Dec 25 15:14:50 GMT 2006
>Last-Modified:  Mon Dec 25 15:14:50 GMT 2006
>Originator:     Michael Wayne
>Release:        6.0-RELEASE-p4
>Organization:
Msen, inc
>Environment:
FreeBSD j2.msen.com 6.0-RELEASE-p4 FreeBSD 6.0-RELEASE-p4 #0: Wed Feb  8 04:32:51 EST 2006     root@j2.msen.com:/usr/obj/usr/src/sys/JAIL  i386   
>Description:
netstat -ibn is reporting traffic which should originate from a jailed IP
address as though they are originating from the host IP address.  Inbound
packets/bytes are correctly associated with the jailed IP, only the output
packets are reported incorrectly.
>How-To-Repeat:
Create a jail, ping the jailed IP address, then use netstat -ibn on the host
machine.  The jailed IP address output packets and bytes will remain at zero.
>Fix:
              
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Mon Dec 25 15:14:49 UTC 2006 
State-Changed-Why:  
This can be explained: outgoing traffic passes through the external 
(first) IP which gets counted there, after that it is being changed so 
that it appears from the jail's IP. Closing the PR (please correct me if 
I am wrong and/or you have more information). 

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