Hi list

I'm having some trouble setting up my home router under OpenBSD
5.7-stable and hope you can help me.

My setup:

I'm connecting to my ISP trough pppoe and basically my box should do
ipv4 and ipv6 NAT for anything that comes from my local network.

For the sake of easyness, I'm using the following addresses on my local
network:

IPv4: 192.168.0.0/24 with 192.168.0.1 set to my obsd box.
IPv6: fd00::192:168:0:0/112 with fd00::192:168:0:1 set to my obsd box.

My /etc/hostname.pppoe0 looks like this:

# cat /etc/hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE \
        pppoedev vlan35 \
        authproto pap \
        authname "XXX" \
        authkey "XXX"
dest 0.0.0.1
inet6 autoconf
!/sbin/route add 0.0.0.0/0 -ifp pppoe0 0.0.0.1
!/sbin/route add ::/0 -ifp pppoe0 fe80::

and my /etc/hostname.em2 looks like this:

# cat /etc/hostname.em2
inet 192.168.0.1 255.255.255.0
inet6 fd00::192:168:0:1/112

With the above pppoe config, I can connect to my ISP and receive an ipv4
and ipv6 address but unfortunately, the ipv6 connection on my local
network won't work.

No route for my local fd00::192:168:0:0/112 network is added:

# route -n show -inet6 | grep fd00
fd00::192:168:0:1  00:90:0b:33:6c:3d  HLl 0 0 - 1 lo0

and I am unable to ping any ipv6 host in my local network.

If I remove the "inet6 autoconf" line from the hostname.pppoe0 file, I
don't receive an ipv6 address from my ISP anymore (which is normal) but
now my internal ipv6 network works.

# route -n show -inet6 | grep fd00
fd00::192:168:0:0/112 link#4 UC 1 0 - 4 em2
fd00::192:168:0:1  00:90:0b:33:6c:3d  HLl 0 0 - 1 lo0

Is this a bug in OpenBSD 5.7 stable or am I too dumb to configure it?

Thx for any help

Btw, I applyed this patch
(https://marc.info/?l=openbsd-cvs&m=142730518728044&w=2) to enable IPv6
forwarding and SLAAC at the same time to my kernel, but that does not help.

Daniel

Reply via email to