Incidentally, the VLAN loopback trick isn't entirely new to me. I previously used the same principle to connect a GPON SFP module to an OPNsense box without an SFP port, using a managed switch as a media converter.
The same approach could be used with the UDM-SE's second SFP+ port, provided the GPON module is compatible.
There are two cases:
If the ISP uses a tagged VLAN, things are particularly simple. Just pass the ISP's VLAN unchanged from the GPON SFP port through the switch to OPNsense, where the corresponding VLAN interface serves as WAN. No additional VLAN translation is needed.
If the ISP delivers untagged Ethernet, assign an arbitrary, dedicated transit VLAN to the GPON port and the OPNsense connection. Both endpoints can remain untagged (access ports), while the switch transports the traffic internally using that VLAN. If the connection to OPNsense is an existing VLAN trunk instead, carry the transit VLAN tagged over that trunk and terminate it on an OPNsense VLAN interface.
In either case, the UDM-SE would simply provide Layer-2 connectivity between the GPON module and OPNsense, without handling any ISP routing itself.
That would make good use of the otherwise unused second SFP+ port and potentially eliminate another dedicated piece of hardware.
The same approach could be used with the UDM-SE's second SFP+ port, provided the GPON module is compatible.
There are two cases:
If the ISP uses a tagged VLAN, things are particularly simple. Just pass the ISP's VLAN unchanged from the GPON SFP port through the switch to OPNsense, where the corresponding VLAN interface serves as WAN. No additional VLAN translation is needed.
If the ISP delivers untagged Ethernet, assign an arbitrary, dedicated transit VLAN to the GPON port and the OPNsense connection. Both endpoints can remain untagged (access ports), while the switch transports the traffic internally using that VLAN. If the connection to OPNsense is an existing VLAN trunk instead, carry the transit VLAN tagged over that trunk and terminate it on an OPNsense VLAN interface.
In either case, the UDM-SE would simply provide Layer-2 connectivity between the GPON module and OPNsense, without handling any ISP routing itself.
That would make good use of the otherwise unused second SFP+ port and potentially eliminate another dedicated piece of hardware.
"