From edwin@mavetju.org  Sat Feb 16 18:04:59 2002
Return-Path: <edwin@mavetju.org>
Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141])
	by hub.freebsd.org (Postfix) with ESMTP id 2C09237B405
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Feb 2002 18:04:59 -0800 (PST)
Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141])
	by topaz.mdcc.cx (Postfix) with ESMTP id 1174B2B6AF
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Feb 2002 03:04:55 +0100 (CET)
Received: by k7.mavetju.org (Postfix, from userid 1001)
	id 5E05F42B; Sun, 17 Feb 2002 13:04:47 +1100 (EST)
Message-Id: <20020217020447.5E05F42B@k7.mavetju.org>
Date: Sun, 17 Feb 2002 13:04:47 +1100 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /sbin/route: weird behaviour with using the -interface flag
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35017
>Category:       bin
>Synopsis:       /sbin/route: weird behaviour with using the -interface flag
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ume
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 16 18:10:00 PST 2002
>Closed-Date:    Mon Mar 4 04:21:03 PST 2002
>Last-Modified:  Mon Mar 04 04:23:14 PST 2002
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju.org 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Fri Feb 1 09:51:30 EST 2002 edwin@k7.mavetju.org:/usr/src/sys/compile/k7 i386

Running the net/freenet6-port, revision 0.9.5
FreeBSD 4.5 specific, FreeBSD 4.4. didn't have this problem.

>Description:

See also 
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=167189+0+current/freebsd-net

During the setup of an IPv6 over IPv4 tunnel, the freenet port uses
the statement: "route add -inet6 default -interface gif0"

When sending TCP traffic over this tunnel, the first few packets
get send without problems until my host starts sending out CMP6
neighbor solicitation requests. From that moment on, my host doesn't
send any packet anymore for this TCP session. New TCP sessions can
be start without problems (but experience the same problems), ICMP6
packets of other sessions keep flowing without interruption. It's
only this TCP session which is hanging.

I've posted a message about this in -hackers and -net and got two
groups of answers: yes I have the same problem and no I don't have
this problem anymore since I've changed to a different IPv6 provider.

When comparing what was going different with different providers,
I saw they were issueing the "route add -inet6 default ipaddress"
Statement instead of the "route add -inet6 default -interface ..."
statement. When using this statement in the scripts of freenet6 my
tunnels stayed up without problems.

I have informed the people from freenet6.net about this, I have
submitted a patch for the net/freenet6 port. But the real problem
lies somewhere in the way FreeBSD 4.5 is looking through its
routing-table.

>How-To-Repeat:

Install net/freenet6 version 0.9.5 and setup a tcp-session towards
an IPv6 enabled host.

>Fix:

Unfortunatly I'm not skilled enough to fix what is going wrong here...
>Release-Note:
>Audit-Trail:

From: Edwin Groothuis <edwin@mavetju.org>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/35017: /sbin/route: weird behaviour with using the -interface flag
Date: Sun, 24 Feb 2002 14:49:04 +1100

 The previous URL given is wrong, please use
 http://www.freebsd.org/cgi/getmsg.cgi?fetch=167189+172081+/usr/local/www/db/text/2002/freebsd-net/20020217.freebsd-net
 and
 http://www.freebsd.org/cgi/getmsg.cgi?fetch=279914+284924+/usr/local/www/db/text/2002/freebsd-hackers/20020217.freebsd-hackers
 
 I also would like to move this PR from the categorie bin to kern.
 
 Edwin
 
 -- 
 Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
 edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
 ------------------+                       http://www.FatalDimensions.org/
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Mon Mar 4 04:21:03 PST 2002 
State-Changed-Why:  
Closed at submitters request as problem is fixed. 


Responsible-Changed-From-To: freebsd-bugs->ume 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Mon Mar 4 04:21:03 PST 2002 
Responsible-Changed-Why:  
ume did the patching and is planning to MFC. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35017 
>Unformatted:
