Default route (IPv4) demolished by destroying clone (gif/gre)
interface
Brooks Davis
brooks at one-eyed-alien.net
Thu Aug 17 03:04:58 UTC 2006
On Thu, Aug 17, 2006 at 08:49:27AM +1200, Andrew Thompson wrote:
> On Wed, Aug 16, 2006 at 12:15:25PM -0500, Brooks Davis wrote:
> > On Wed, Aug 16, 2006 at 07:58:44PM +0400, Yar Tikhiy wrote:
> > > 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().
> >
> > Agreed. That code shouldn't be on by default. I've disabled in it HEAD
> > and will MFC in a few days. As another poster said, I'm not even sure
> > it should exist as an option.
>
> Thanks for fixing this up, it certainly was odd to be flushing routes in
> userland. I have one more bug report from the ifnet/devd change to look
> at where renamed interfaces give some sort of an error.
Should be fixed in HEAD.
-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060817/deaa8255/attachment.pgp
More information about the freebsd-stable
mailing list