Its very easy to upgrade the ios on your router provided you have got the latest one in place which also satisfies the required hardware (like flash/ram) conditions.
If you require VPN and firewall capability in your ios then you need to choose out the exact feature code..
You can refer the below link for finding out the required ios.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: