From owner-freebsd-net@FreeBSD.ORG Thu May 28 11:36:53 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 211AFC86 for ; Thu, 28 May 2015 11:36:53 +0000 (UTC) (envelope-from juliank@tzi.de) Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailhost.informatik.uni-bremen.de", Issuer "Universitaet Bremen CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD237E1 for ; Thu, 28 May 2015 11:36:52 +0000 (UTC) (envelope-from juliank@tzi.de) X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [134.102.201.11]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id t4SBakrf006681; Thu, 28 May 2015 13:36:46 +0200 (CEST) Received: from [IPv6:2003:55:6b2b:d000:30d9:f279:82b0:be8e] (p200300556B2BD00030D9F27982B0BE8E.dip0.t-ipconnect.de [IPv6:2003:55:6b2b:d000:30d9:f279:82b0:be8e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3ly6SG2bNNz8xQs; Thu, 28 May 2015 13:36:46 +0200 (CEST) Message-ID: <5566FDCD.9000908@tzi.de> Date: Thu, 28 May 2015 13:36:45 +0200 From: Julian Kornberger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: Crash with GRE und IPFW fwd References: <5566565A.7030200@tzi.de> <20150528013135.GR95600@strugglingcoder.info> <55668B7F.9010509@freebsd.org> In-Reply-To: <55668B7F.9010509@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2015 11:36:53 -0000 Am 28.05.2015 um 05:29 schrieb Julian Elischer: > Julian, I am guessing (with no actual information) that something in gre > processing is > assuming that the packet id going where it normally would go. (and not > where fwd is sending it). > > you really need to use objdump or gdb to look at the gre module and > work out where > > gre_output+0x467 > > is in the function. that should give you a clue on the problem. > > not too helpful I know... but you have a reproducible case at least. > kgdb may be your friend if you > have a serial cable or firewire cable. It is a multihomed machine behind two DSL routers. All packets leave the interface with the default route unless I use IPFW with fwd. Is there another way to force packets to leave the correct interface? The problem does also appear if I shutdown the second WAN interface. This is the way the traffic goes: re0 (internal network) -> fwd to gre1 -> fwd to gateway of re1 -> re1 If the traffic source is the machine an not the internal network it seems to cause no problems. I guess the problem is to use fwd twice. I will do additional tests and I will try to debug this using a serial connection next week. kind regards, Julian