Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 2013 18:17:47 +0200
From:      Milan Obuch <freebsd-net@dino.sk>
To:        Andreas Nilsson <andrnils@gmail.com>
Cc:        Robert Blacquiere <freebsd-net@blacquiere.nl>, freebsd-net@freebsd.org
Subject:   Re: gre tunnel woes
Message-ID:  <20130403181747.0fa7677e@zeta.dino.sk>
In-Reply-To: <CAPS9%2BSsRe=t34eWEOWkraAMqpdmTP8Of1beGRsSo6c3deQm_LA@mail.gmail.com>
References:  <CAPS9%2BSvcTUQo-O8AefjwpHGKPXwne%2BiWM9P4D4uF-NO8zdt8xw@mail.gmail.com> <20130403150053.GC5100@calendar.blacquiere.nl> <CAPS9%2BSsRe=t34eWEOWkraAMqpdmTP8Of1beGRsSo6c3deQm_LA@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

On Wed, 3 Apr 2013 17:21:41 +0200
Andreas Nilsson <andrnils@gmail.com> wrote:

> On Wed, Apr 3, 2013 at 5:00 PM, Robert Blacquiere
> <freebsd-net@blacquiere.nl
> > wrote:
> 
> > On Wed, Apr 03, 2013 at 04:51:53PM +0200, Andreas Nilsson wrote:
> > > Hello,
> > >
> > > I'm struggling a fair bit with gre tunnels today:
> > >
> > > Woe 1:
> > >
> > > I'm trying to incorporate my gre tunnels into rc.conf, like
> > >
> > > cloned_interfaces="gre1"
> > > ifconfig_gre1="inet 10.0.0.1/30 10.0.0.2 tunnel a.b.c.d e.f.g.h"
> >
> > I have "up" at the end of the ifconfig_gre0 statements and tunnels
> > work also after reboot.
> >
> > For the other problems you are seeing I have no answer. There is no
> > keep alive for as i know to change tunnel to down if tunnel fails.
> >
> > Regards
> >
> > Robert
> >
> 
> Thanks,
> 
> good to know there is hope. Unfortunately adding up directive at the
> end of the ifconfig-line makes no difference :(
> 
> I should also have mentioned that this is on 9.1-RELEASE. The host is
> multihomed, so the tunnels needs a route installed to "go the right
> way", ie they should not go over the default route. Maybe I should
> just add the NOAUTO keyword and create a local rc.d service that
> start all tunnels...
> 
> Best regards
> Andreas
>

Well, I am struggling with this too, and now I just use /etc/rc.local
containing

#!/bin/sh

ifconfig gre0 up
ifconfig gre1 up

to bring tunnels to real life. Maybe not that nice, but simple and
working.

Milan


help

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