Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2006 19:58:44 +0400
From:      Yar Tikhiy <yar@comp.chem.msu.su>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        drl@MyBSD.org.my, brooks@freebsd.org, freebsd-stable@freebsd.org, Stefan Bethke <stb@lassitu.de>, thompsa@freebsd.org
Subject:   Re: Default route (IPv4) demolished by destroying clone (gif/gre) interface
Message-ID:  <20060816155844.GA85503@comp.chem.msu.su>
In-Reply-To: <20060816145419.GB62485@lor.one-eyed-alien.net>
References:  <20060815040736.2f85f090.drl@MyBSD.org.my> <9405D801-3435-419A-9541-E1A9B2CF26D2@lassitu.de> <20060816081130.GB81271@comp.chem.msu.su> <FED9705F-B445-4495-B90F-A656AAA966EE@lassitu.de> <20060816145419.GB62485@lor.one-eyed-alien.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 16, 2006 at 09:54:19AM -0500, Brooks Davis wrote:
> On Wed, Aug 16, 2006 at 10:23:13AM +0200, Stefan Bethke wrote:
> > 
> > Ouch. Don't ppp(8), OpenVPN etc. destroy the tun interface they're  
> > using when they exit?  Flushing all routes then would be rather  
> > harmful.  I'm glad I haven't updated to a newer -stable yet then :-)
> 
> In general, no since tun interfaces can not be destroyed.

Did you mean "in particular"? :-)

The problem can be triggered by destroying any interface that can
be destroyed.  Just imagine getting rid of a defunct gif tunnel on
a remote router, or removing an unused vlan, and totally losing
connectivity to the router due to its default route having been
flushed.  The scenario still can be quite unpleasant.  I'd rather
change the default for $removable_route_flush to NO and let the
kernel choose which routes should be flushed upon the physical
ejection or software destruction of an interface.  Note that this
doesn't include static_routes_${ifn}, which are handled separately
by pccard_ether_stop().

-- 
Yar



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060816155844.GA85503>