When i using the main firewall i can connect to internet but when i disable the main firewall and enable the backup one it failed to connect to internet . What i can do to solve this ?? Thanks
You need to provide a lot more information for anyone to be able to help you.
Did you follow this guide to set up the firewall pair?
https://docs.opnsense.org/manual/how-tos/carp.html