Closed coridonhenshaw closed 2 years ago
@coridonhenshaw What's the contents of the following file?
# cat /tmp/vtnet1_routerv6
And what is your IPv6 WAN type set to?
Last but not least can you ping this?
# ping6 fe80::5054:ff:fe14:e3a2%vtnet1
Cheers, Franco
root@OPNsense:~ # cat /tmp/vtnet1_routerv6
fe80::5054:ff:fe14:e3a2
root@OPNsense:~ # ping6 fe80::5054:ff:fe14:e3a2%vtnet1
PING6(56=40+8+8 bytes) fe80::5054:ff:fed8:92d2%vtnet1 --> fe80::5054:ff:fe14:e3a2%vtnet1
^C
--- fe80::5054:ff:fe14:e3a2%vtnet1 ping6 statistics ---
8 packets transmitted, 0 packets received, 100.0% packet loss
root@OPNsense:~ #
The only thing that can give you this address is dhcp6c which may or may not talk to your LAN side DHCPv6.
Not sure what your WAN IPv6 type is set to still but I would suggest temporarily disabling the tracking on LAN IPv6 to test the theory that there is a loop in your network between WAN and LAN and they talk to each other.
Cheers, Franco
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
Since upgrading to 21.7.7, OPNsense consistently sets the LAN interface as the IPv6 default gateway, breaking IPv6 connectivity. Using the shell to set a default route to the ISP upstream router works around the problem.
I don't recall what version of OPNsense was in use before I upgraded, so I can't say which version is known-good. Upgrading to 21.7.8 did not correct the issue.
To Reproduce
Connect to an ISP which provides IPv6 with DHCP6-PD and configure OPNsense in the usual way (i.e. track6 on LAN interface, etc) All IPv6 addressing functionality will work as expected (prefix will be delegated, addresses will be assigned, and RAs will be broadcast to the LAN). The default route will, however, be wrong. Ping6 to external hosts will fail both from clients and the firewall itself.
Diagnosis via SSH (edited for brevity):
The default gateway address appears to be derived from the link local address for the LAN interface but uses the scope for the WAN interface.
Showing ISP RAs using tcpdump:
fe80::a2f3:e4ff:fe7d:ca30 appears to be the ISP router.
Forcing a default gateway manually restores connectivity:
Expected behavior
The default gateway should match that provided by ISP RA messages.
Describe alternatives you considered
Shell intervention is required to restore connectivity.
Screenshots
Not needed. The web UI provides the same gateway address as given by
route -6
Relevant log files
From the general log, as shown by the web UI:
Additional context
Environment
OPNsense 21.7.8-amd64 FreeBSD 12.1-RELEASE-p22-HBSD OpenSSL 1.1.1m 14 Dec 2021