From owner-freebsd-current@freebsd.org Fri Nov 30 14:32:55 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B91001145DB4 for ; Fri, 30 Nov 2018 14:32:55 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3646284EAE for ; Fri, 30 Nov 2018 14:32:55 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gSjqe-0005eD-V1; Fri, 30 Nov 2018 14:32:53 +0000 Date: Fri, 30 Nov 2018 14:32:52 +0000 From: Gary Palmer To: "O. Hartmann" Cc: FreeBSD CURRENT Subject: Re: ipv6/ppp: FreeBSD obtains linklocal on tun0 only Message-ID: <20181130143252.GA24286@in-addr.com> References: <20181130131259.1654aee3@thor.intern.walstatt.dynvpn.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181130131259.1654aee3@thor.intern.walstatt.dynvpn.de> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 3646284EAE X-Spamd-Result: default: False [2.03 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_LONG(0.77)[0.767,0]; NEURAL_SPAM_SHORT(0.36)[0.365,0]; NEURAL_SPAM_MEDIUM(0.89)[0.894,0]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2018 14:32:55 -0000 On Fri, Nov 30, 2018 at 01:12:32PM +0100, O. Hartmann wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > My ISP is offering IPv6 only "as an experimental feature", so I had to ask to enable the > IPv6 stack on my connection. I'm using FreeBSD 12-STABLE as the basis for a > router/firewall/PBX system, FreeBSD's onboard ppp client is performing the uplink and > authetication and this works well with IPv4 for years for now. > > I'm using IPFW as my filtering system, reading the standard /etc/rc.ipfirewall and add > some custom rules regarding my setup. > > As far as I know, with the IPv4 stack a IPv4 address is obtained automatically, so I > would expect the same for IPv6. > > I'm new to IPv6 and I've trouble with my provider for a long time now, so there is a > slight possibility that my ISP is not truthful on what they say. On the other hand, there > is still a high probability that I do something wrong. I need need to send this ahead, > before continueing. > > When booting off, I see the classic tun0 uplink with > > MYADDR -> HISADDR > > For IPv6, I only see my local linklocal address, fe80::... > > Checking the log of ppp (/var/log/ppp.log), there is also a fe80:: linklocal address > assigned to the variable HISADDR. Somehow, the tun0 never obtains a IPv6 aprefix so far. > > Can someone give a tip? I have : shell /sbin/ifconfig tun0 inet6 -ifdisabled -no_radr accept_rtadv shell /sbin/rtsol tun0 & in a ppp.linkup file. The alternative is to use dhcp6c, which also worked for my provider. (there are other lines in the linkup file also, but I think those are the relevant ones) Regards, Gary