On Fri, May 02, 2014 at 08:24:27PM +0200, Peter J. Philipp wrote: > On 05/02/14 16:13, Stefan Sperling wrote: > > Hi again, > > I just had a few more questions... > > > OpenBSD doesn't support IPv6 autoconf on routers (i.e if forwarding > > is enabled). Some ISPs have started using autoconf to assign a > > global prefix for use on the WAN link. This violates early IPv6 RFCs > > which said that a router cannot do autoconf. There is a newer RFC which > > clears this up but OpenBSD doesn't support it yet: > > http://tools.ietf.org/html/rfc6204 > > This RFC is actually pretty good at first glance. You mentioned OpenBSD > doesn't support it yet, so I'm wondering what needs to be done in > OpenBSD to bring it up to par. Is there any leads? > > It seems to me that section 4.2 "WAN-Side Configuration", under W-3 > states it MUST use Router Discovery based on RFC 4861 "Neighbour > Discovery for IPv6" which is a replacement for RFC 2461. When I look at > the comments in /usr/src/sys/netinet6/nd6.c it seems to me they quote > RFC 2461 a lot, is upgrading this area needed for a first step? > > Do you think bringing nd6 up to RFC 4861 par would be easy, for someone > like me?
I don't really know what's necessary because I haven't spent much time looking into the problem. > > However, using a global prefix on your WAN link is usually not a > > hard requirement since link-local addresses are sufficient for this. > > > > Try setting a default route that points to pppoe0: > > > > !/sbin/route add -inet6 default -ifp pppoe0 fe80:: > > > > Your router should now be able to reach the IPv6 internet. > > > > I tried this. Outgoing packets probly work fine but I don't have a > globally routeable IPv6 address, so return packets would probably not > make it back. As Brad suggested, have you tried wide-dhcpv6 from ports? You can probably use dhcp6c to put the dynamically assigned prefix on your internal LAN interface. In the dhcp6c.conf man page there's an example using ppp0 and ne0 which you could try adjusting. I've never tried this myself so I'm not sure how the details work. If you have a global address on your LAN interface, the router will also use it as source address for self-originated outgoing packets on the WAN link instead of using the link-local adress as source address. You do not need a global address on pppoe0 to be reachable!