Problem
Creating a route in HVN to a non-private destination CIDR range is currently expected to receive an error similar to the one below.
must match pattern of 10.*.*.* with prefix greater than /8,or 172.[16-31].*.* with prefix greater than /12, or 192.168.*.* with prefix greater than /16; where * is any number from [0-255]
Solution
Hashicorp Virtual Network (HVN) only allows network peering and routing to customer networks with RFC1918 and RFC6598 addresses.
HashiCorp Cloud HVNs are managed with tools & services with public IP addresses. Creating routes to non-RFC1918 addresses could result in routing problems.
We recommend that you specify a CIDR block from the private IPv4 address ranges as mentioned in RFC1918.
Additional Information
For additional questions or support, please open a Support ticket.