Network A: 192.168.20.0/24
Network B: 192.168.30.0/24
Network C: 192.168.40.0/30
Network A ↔ Router A (192.168.40.1) ↔ (192.168.40.2) Router B ↔ Network B
On both routers we have an RFC required blackhole for private addresses (including 192.168.0.0/16) with metric 100, and default GW with metric 101.
Unfortunately ROS looking the Routes Table first and then check the IPSec Policy. So IPSec doesn’t work in our scenario because the destination networks are blackholed. And we have no methods to exclude a network from the blackhole rule because we cannot create a new routing rule without GW address (what GW on IPSec tunnel?).
So I think that we need any of the following:
- IPSec Policy table should have higher priority than Routes Table.
- IPSec Policy should create a Route Table record with configurable metric value.