Routing IPv6 over tun0 (PPPoE) issue

Matthew Seaman matthew at FreeBSD.org
Sun Aug 23 15:38:06 UTC 2015


On 23/08/2015 16:04, Gary Palmer wrote:
> However if I configure other IPs on other interfaces from the netblock that
> has been delegated to me and either source the traffic from those IPs or
> try the traceroute from another computer using IPs in that netblock, I
> don't even see the traffic leaving tun0 with tcpdump, let alone get any
> replies.

I have a similar setup.  Looks to me as if there's a problem with your
routing internally.

My routing table looks like this (excluding the ff01::, ff02:: and
ff03:: routes and anything that's a host specific route):

% netstat -rn -f inet6 | grep -vE '(UH|ff0)'
Routing tables

Internet6:
Destination         Gateway                       Flags  Netif Expire
::/96               ::1                           UGRS    lo0
default             fe80::203:97ff:fe19:8000%tun0 UGS    tun0
::ffff:0.0.0.0/96   ::1                           UGRS    lo0
2001:8b0:151:1::/64 link#1                        U       em0  <<<---**
fe80::/10           ::1                           UGRS    lo0
fe80::%em0/64       link#1                        U       em0
fe80::%re0/64       link#2                        U       re0
fe80::%lo0/64       link#3                        U       lo0
fe80::%tun0/64      link#5                        U      tun0

Here em0 is the interface onto my internal network, and any addresses
from my assigned IPv6 netblock are configured on that interface or the
network directly attached to it. You should have a route equivalent to
the one marked with the arrow.

Note that tun0 uses link-local addresses for the IPv6 tunnelling, not
addresses from my assigned range.  Depending on how your ISP has
configured things you may need a "real" IPv6 address on your tun0
interface, but this should be from a distinct subnet to the block you're
using internally.

Hmmm.... you do have 'gateway_enable="YES"' and
'ipv6_gateway_enable="YES"' in your /etc/rc.conf ?

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 957 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20150823/bedf85da/attachment.bin>


More information about the freebsd-net mailing list