From owner-freebsd-ipfw@FreeBSD.ORG Wed Apr 1 20:47:22 2009 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A86C3106564A for ; Wed, 1 Apr 2009 20:47:22 +0000 (UTC) (envelope-from dev+lists@humph.com) Received: from ns.ondecorte.net (ns.ondecorte.net [78.4.156.158]) by mx1.freebsd.org (Postfix) with ESMTP id 5B9918FC19 for ; Wed, 1 Apr 2009 20:47:22 +0000 (UTC) (envelope-from dev+lists@humph.com) Received: from 88-149-183-86.static.ngi.it ([88.149.183.86] helo=[192.168.69.4]) by ns.ondecorte.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id KHFV9W-00048P-CY; Wed, 01 Apr 2009 22:22:44 +0200 Message-Id: <54A338F9-D66C-4406-804C-7443798931C8@humph.com> From: Giuliano Gavazzi To: zgabe In-Reply-To: <49D27F5C.7030506@elischer.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Wed, 1 Apr 2009 22:22:43 +0200 References: <22800054.post@talk.nabble.com> <49D27F5C.7030506@elischer.org> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-ipfw@freebsd.org Subject: Re: FreeBSD 7.1 IPv6 multihoming problem X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2009 20:47:23 -0000 Sorry Julian, I wrongly sent my reply to you! On T 31 Mar, 2009, at 22:38 , Julian Elischer wrote: > zgabe wrote: >> Hi All, I am using laptop, FreeBSD 7.1 connecting to two ISPs (wlan >> and ppp) and I >> have IPv6 addresses. 'netstat -rn' says there is only one default >> gateway >> (for example wlan's default gateway). My problem is the following: >> If I ping the ppp tunnel from an other computer, my laptop recieves >> the >> ICMP6 echo request over the ppp tunnel, but it answers over the wlan >> interface. I read some similar posts (only ipv4) about forwarding >> with IPFW, >> but I was unable to solve my problem until now. > [...] > > the theory with multihoming is that unless you are the holder of a > class-C (/24) you basically have to do it using NAT. > You have to make some subset of your traffic use one NAT while the > remainder uses another (or is untranslated). > Unfortunately we don't have NAT for IPV6. I don't know how that > gets solved.. I am not sure I understand how NAT would solve the routing problem. Doesn't a packet have the next hop set according to the destination, that is anything not for a locally attached network will go to the default router? Zgabe is correct in trying to use fwd, I use that to route packets according to the source. I use this method, in ipv4, although perhaps too intrusively as I also fwd packets that should go to the default route (which could be instead just accept'ed), but this is another topic. For zgabe problem, aren't packets coming from the pppaddress going through the ppp interface. So why don't you try to select them by the interface (and the direction they go through it, as in out xmit ppp) rather than by protocol? Not sure how will you enter an ipv6 address as a forwarding one, it does not work on my setup (macos). g