You should, ideally, restore a backup from 2.4.5 as well. There were some changes to the config format for 2.5.0 that are not backward compatible (like IPsec tunnel lifetime settings)