From owner-freebsd-net@FreeBSD.ORG Wed Apr 3 16:17:49 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E50C2972 for ; Wed, 3 Apr 2013 16:17:49 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from mailhost.netlab.sk (mailhost.netlab.sk [84.245.65.10]) by mx1.freebsd.org (Postfix) with ESMTP id 77903DBA for ; Wed, 3 Apr 2013 16:17:49 +0000 (UTC) Received: from zeta.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by mailhost.netlab.sk with ESMTPSA; Wed, 03 Apr 2013 18:18:06 +0200 id 0066121C.515C563E.00011C4D Date: Wed, 3 Apr 2013 18:17:47 +0200 From: Milan Obuch To: Andreas Nilsson Subject: Re: gre tunnel woes Message-ID: <20130403181747.0fa7677e@zeta.dino.sk> In-Reply-To: References: <20130403150053.GC5100@calendar.blacquiere.nl> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; amd64-portbld-freebsd9.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: ak5rwz4-aUa>hPFZlcg,bXxn.(TN}e9DGFrKU\.i_'B[&5=pAd9o"j)5VSUYW:BRQG#^42Ev$Il|; Ztn=,C X-Operating-System: FreeBSD/amd64 8.2-STABLE Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Robert Blacquiere , freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2013 16:17:50 -0000 On Wed, 3 Apr 2013 17:21:41 +0200 Andreas Nilsson wrote: > On Wed, Apr 3, 2013 at 5:00 PM, Robert Blacquiere > > 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