I'm configuring the following scenario:
Head Office Router (ABR - area 0 and 1) --- VPN tunnel over the Internet --- Branch Office Router (area 1)
Area 1 is configured to be a totally stubby area, therefore the Branch Office Router receives only area 1 routes and a default route to area 0.
But to allow Internet access and to get the vpn up in the first place I need a default route to my ISP. This means that my OSPF default route to area 0 never enters the routing table. If I create a floating default route with an AD of lets say 250 the VPN connections drops as OSPF builds up its connection with its neighbours. Which is true, because the VPN connection needs the default route to my ISP and all the other Internet traffic needs to use this default route too.
What is the best solution for this problem?
Basically I need to send traffic with a public ip as destination to my default route from my ISP, all other traffic can use the OSPF default route.
You want to send the least amount of routes without preventing the remote location access to the internet - in other words, you don't want to summarize a route that will overlap to an internet route.
Based on the list you've provided, you can easily summarize these subnets with 2 entries. I'm including 3 to cover the RFC 1918 guidelines.
Under the HQ Router OSPF process, you do
router ospf xx
area 0 range 10.0.0.0 255.0.0.0
area 0 range 172.16.0.0 255.240.0.0
area 0 range 192.168.0.0 255.255.0.0