Now that you have 2 failover groups, Follow this link https://docs.opnsense.org/manual/how-tos/multiwan.html and choose the appropriate gateway group for each subnet firewall default allow rule and DNS.