I'm having a hard time getting IPv6 to work under OPNSense 21.1.3_3. OPNsense is getting a delegated prefix from my ISP but isn't assigning an IPv6 address to the LAN interface. As such, IPv6 is not available to clients on the LAN.
According to the dashboard, OPNsense is assigning a public IPv6 address to the WAN interface. Further, if I SSH into the firewall, ping6 works as expected, so IPv6 on the firewall itself is fine.
The relevant portion of system.log appears to be this:
Mar 24 15:13:00 OPNsense dhcp6c[23405]: dhcp6c REQUEST on pppoe0 - running newipv6
Mar 24 15:13:01 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'
Mar 24 15:13:01 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: On (IP address: 2607:c000:8004::cd4d) (interface: WAN[wan]) (real interface: pppoe0).
Mar 24 15:13:01 OPNsense opnsense[41605]: plugins_configure dhcp (,inet6)
Mar 24 15:13:01 OPNsense opnsense[41605]: plugins_configure dhcp (execute task : dhcpd_dhcp_configure(,inet6))
Mar 24 15:13:02 OPNsense opnsense[28811]: plugins_configure local (execute task : webgui_configure_do(1))
Mar 24 15:13:03 OPNsense opnsense[28811]: plugins_configure vpn (1)
Mar 24 15:13:03 OPNsense opnsense[28811]: plugins_configure vpn (execute task : ipsec_configure_do(1))
Mar 24 15:13:04 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: Warning! dhcpd_dhcp6_configure() found no suitable IPv6 address on lan
Mar 24 15:13:04 OPNsense kernel: pflog0: promiscuous mode disabled
Mar 24 15:13:05 OPNsense opnsense[94416]: plugins_configure vpn (,wan)
Mar 24 15:13:05 OPNsense opnsense[94416]: plugins_configure vpn (execute task : ipsec_configure_do(,wan))
Mar 24 15:13:05 OPNsense kernel: pflog0: promiscuous mode enabled
Mar 24 15:13:05 OPNsense opnsense[94416]: plugins_configure vpn (execute task : openvpn_configure_do(,wan))
Mar 24 15:13:05 OPNsense opnsense[94416]: /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.
Mar 24 15:13:05 OPNsense opnsense[94416]: plugins_configure newwanip (,wan)
Mar 24 15:13:05 OPNsense opnsense[94416]: plugins_configure newwanip (execute task : dyndns_configure_do(,wan))
Mar 24 15:13:05 OPNsense opnsense[94416]: plugins_configure newwanip (execute task : ntpd_configure_defer())
Mar 24 15:13:05 OPNsense opnsense[94416]: plugins_configure newwanip (execute task : opendns_configure_do())
Mar 24 15:13:05 OPNsense opnsense[94416]: plugins_configure newwanip (execute task : openssh_configure_do(,wan))
Mar 24 15:13:05 OPNsense opnsense[94416]: plugins_configure newwanip (execute task : unbound_configure_do(,wan))
Mar 24 15:13:05 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: Warning! dhcpd_radvd_configure(manual) found no suitable IPv6 address on vtnet0
Mar 24 15:13:06 OPNsense opnsense[41605]: plugins_configure hosts ()
Mar 24 15:13:06 OPNsense opnsense[41605]: plugins_configure hosts (execute task : dnsmasq_hosts_generate())
Mar 24 15:13:06 OPNsense opnsense[41605]: plugins_configure hosts (execute task : unbound_hosts_generate())
Mar 24 15:13:07 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: The command '/sbin/ifconfig pppoe0 inet6 2607:c000:8004::cd4b delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
Mar 24 15:13:07 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: ROUTING: entering configure using 'wan'
Mar 24 15:13:07 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: ROUTING: IPv4 default gateway set to wan
Mar 24 15:13:07 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: ROUTING: setting IPv4 default route to 206.248.155.152
Mar 24 15:13:07 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway '206.248.155.152'
Mar 24 15:13:07 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: ROUTING: IPv6 default gateway set to wan
Mar 24 15:13:07 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: ROUTING: setting IPv6 default route to fe80::200:ff:fe00:0
Mar 24 15:13:07 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: ROUTING: keeping current default gateway 'fe80::200:ff:fe00:0%pppoe0'
Mar 24 15:13:08 OPNsense opnsense[41605]: plugins_configure monitor ()
Mar 24 15:13:08 OPNsense opnsense[41605]: plugins_configure monitor (execute task : dpinger_configure_do())
Mar 24 15:13:08 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: The WAN_DHCP6 monitor address is empty, skipping.
Mar 24 15:13:08 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: The WAN_PPPOE monitor address is empty, skipping.
Mar 24 15:13:09 OPNsense opnsense[94416]: plugins_configure newwanip (execute task : vxlan_configure_interface())
Mar 24 15:13:09 OPNsense opnsense[94416]: plugins_configure newwanip (execute task : webgui_configure_do(,wan))
Mar 24 15:13:09 OPNsense opnsense[28811]: plugins_configure vpn (execute task : openvpn_configure_do(1))
Mar 24 15:13:09 OPNsense opnsense[28811]: /usr/local/etc/rc.reload_all: Resyncing OpenVPN instances.
Mar 24 15:13:14 OPNsense kernel: pflog0: promiscuous mode disabled
Mar 24 15:13:14 OPNsense opnsense[41605]: plugins_configure vpn (,wan)
Mar 24 15:13:14 OPNsense opnsense[41605]: plugins_configure vpn (execute task : ipsec_configure_do(,wan))
Mar 24 15:13:14 OPNsense opnsense[41605]: plugins_configure vpn (execute task : openvpn_configure_do(,wan))
Mar 24 15:13:14 OPNsense kernel: pflog0: promiscuous mode enabled
Mar 24 15:13:14 OPNsense opnsense[41605]: /usr/local/etc/rc.newwanipv6: Resyncing OpenVPN instances for interface WAN.
Mar 24 15:13:14 OPNsense opnsense[41605]: plugins_configure newwanip (,wan)
Mar 24 15:13:14 OPNsense opnsense[41605]: plugins_configure newwanip (execute task : dyndns_configure_do(,wan))
Mar 24 15:13:14 OPNsense opnsense[41605]: plugins_configure newwanip (execute task : ntpd_configure_defer())
Mar 24 15:13:14 OPNsense opnsense[41605]: plugins_configure newwanip (execute task : opendns_configure_do())
Mar 24 15:13:14 OPNsense opnsense[41605]: plugins_configure newwanip (execute task : openssh_configure_do(,wan))
Mar 24 15:13:14 OPNsense opnsense[41605]: plugins_configure newwanip (execute task : unbound_configure_do(,wan))
Mar 24 15:13:17 OPNsense opnsense[41605]: plugins_configure newwanip (execute task : vxlan_configure_interface())
Mar 24 15:13:17 OPNsense opnsense[41605]: plugins_configure newwanip (execute task : webgui_configure_do(,wan))
Mar 24 15:13:29 OPNsense opnsense[75551]: /status_services.php: Warning! dhcpd_dhcp6_configure() found no suitable IPv6 address on lan
Mar 24 15:14:09 OPNsense opnsense[96135]: /status_services.php: Warning! dhcpd_dhcp6_configure() found no suitable IPv6 address on lan
Mar 24 15:28:22 OPNsense config[96135]: /services_router_advertisements.php: Warning! dhcpd_radvd_configure(manual) found no suitable IPv6 address on vtnet0
Mar 24 15:28:22 OPNsense configctl[37856]: event @ 1616624902.14 msg: Mar 24 15:28:22 OPNsense.local config[96135]: config-event: new_config /conf/backup/config-1616624902.1407.xml
Mar 24 15:28:22 OPNsense configctl[37856]: event @ 1616624902.14 exec: system event config_changed
Mar 24 15:28:41 OPNsense opnsense[86936]: /status_services.php: Warning! dhcpd_dhcp6_configure() found no suitable IPv6 address on lan
Radvd is running, but it isn't doing anything. If it is restarted, the following errors appear in the system log:
2021-03-24T15:44:21 config[96135] /services_router_advertisements.php: Warning! dhcpd_radvd_configure(manual) found no suitable IPv6 address on vtnet0
2021-03-24T15:28:41 opnsense[86936] /status_services.php: Warning! dhcpd_dhcp6_configure() found no suitable IPv6 address on lan
2021-03-24T15:28:22 configctl[37856] event @ 1616624902.14 exec: system event config_changed
2021-03-24T15:28:22 configctl[37856] event @ 1616624902.14 msg: Mar 24 15:28:22 OPNsense.local config[96135]: config-event: new_config /conf/backup/config-1616624902.1407.xml
2021-03-24T15:28:22 config[96135] /services_router_advertisements.php: Warning! dhcpd_radvd_configure(manual) found no suitable IPv6 address on vtnet0
The 'IPv6 Configuration Type' on the LAN interface is set to 'Track Interface' (WAN) but it isn't tracking.
Any ideas what to do to fix this?
Quote from: inthewilds on March 24, 2021, 11:47:07 PM
OPNsense is getting a delegated prefix from my ISP
Are you sure? Do you see a delegated prefix in Interfaces / Overview / WAN?
dhcp6c debug needs to be set to info at minimum, preferably debug, then we'll be able to see what dhcp6c is actually doing on the interfaces, looks to me like there's no PD.