YouFibre is an UK ISP which provides routers which connect via DHCP (no PPPoE involved).
All Internet advice suggest that to use with your own router (OPNSense obviously), you need to ensure that the MAC address of the WAN side of your router matches what YouFibre expect, otherwise their DHCP server will refuse to issue you an IP address. Fortunately, their router has its MAC address printed on the base.
If I plug a Fedora laptop into the Optical Network Termination box and override the MAC address of the laptop with that taken from their router, then the connection comes up and a quick speed test shows a blistering 990Mbs on a 1Gbs package. This shows that the principle works.
However, if I move the Ethernet cable to my OPNSense router and configure the same MAC address, I'm issued an IP address and given a default gateway via DHCP, but there's no further traffic.
I should add that the OPNSense router has been in service for a couple of years now, but the previous ISP used PPPoE. I simply changed the WAN interface's settings from PPPoE to DHCP as suggested.
I can use the built-in packet sniffer to watch ICMP packets leave the router, but nothing returns.
I've even created a temporary any-any rule on the firewall just in-case I misconfigured something there.
I'm currently online by plugging the OPNSense router (with the MAC address reverted to default) into the LAN port of the provided YouFibre router, and am still managing 900Mbs or so, but I'd rather take the provided router out of the loop if possible.
Has anyone come across a similar situation, either with YouFibre or other DHCP and MAC address based ISPs?
Have you gone to your WAN interface settings on OPNsense and disabled "Block private networks" and "Block bogon networks"? I would start there.
You can also try deleting and re-adding the WAN interface.