How to Forward IPv6 Packets to Another Interface in ip6tables (Router --oif alternative)?

I am currently working on a network configuration where I need to forward IPv6 packets directly to another interface. Specifically, the packets arriving on the device, which are destined for the current device, should not be consumed by the device itself but instead be forwarded to another interface.

In IPv4, this can be achieved using the ROUTE target with the --oif option in iptables, as shown below:

iptables -t mangle -A PREROUTING -j ROUTE --oif primarylan3

I am looking for a similar solution for IPv6. How can I achieve this functionality with ip6tables? Any guidance or examples would be greatly appreciated.

Thank you!

The first question to ask is whether IPv6 forwarding is enabled in the first place.

What operating system are we talking about here?