We have configured OSPF to work in our environment and it works well, but we are having an issue when a site fails over from its primary connection to a backup VPN connection we no longer get our OSPF routes. Which of course cause all kinds of routing issues. I am trying to get it setup so when we failover the OSPF routes go through the VPN connection back to the main site and need help figuring this out. I have attached a remote site configuration.
OSPF by default uses multicast, which won't work directly via IPSec. Your hello packets can't reach the other side and you won't form an adjacency. You can use a GRE tunnel over the VPN and establish OSPF over the tunnel interfaces.
Another possibility: With Cisco, you can specify a non-broadcast network type for the VPN connection and manually configure the neighbors. Not sure if Adtran offers this functionality.