From owner-freebsd-ipfw@FreeBSD.ORG Tue Mar 31 20:38:28 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 E7AB41065692 for ; Tue, 31 Mar 2009 20:38:28 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outG.internet-mail-service.net (outg.internet-mail-service.net [216.240.47.230]) by mx1.freebsd.org (Postfix) with ESMTP id D084E8FC22 for ; Tue, 31 Mar 2009 20:38:28 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id C235613DBB; Tue, 31 Mar 2009 13:38:28 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 70DD92D6092; Tue, 31 Mar 2009 13:38:25 -0700 (PDT) Message-ID: <49D27F5C.7030506@elischer.org> Date: Tue, 31 Mar 2009 13:38:52 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: zgabe References: <22800054.post@talk.nabble.com> In-Reply-To: <22800054.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 31 Mar 2009 20:38:29 -0000 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. > > I built a kernel with the following options: > options IPFIREWALL > options IPFIREWALL_VERBOSE > options IPFIREWALL_DEFAULT_TO_ACCEPT > options IPFIREWALL_FORWARD > > and put these lines to my rc.conf > firewall_enable="YES" > firewall_type="open" > > as the handbook says. > > I use the following command as root: > ipfw add 101 fwd pppgateway ipv6 from pppaddress to any > > (pppgateway and pppaddress ipv6 addresses) > > It throws "getsockopt(IP_FW_ADD): Invalid argument" error! > > I have tried to set the following variables but the problem is still the > same. > sysctl -w net.inet.ip.forwarding=1 and > sysctl -w net.inet6.ip6.forwarding=1 > > Can anybody help me? > 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..