Networking - Is it ok to use a network range for my VPC that does not fall into the reserved private ranges?

This is probably a stupid question, but please forgive me.

I am reading up on networking and I see that the 172.16.0.0/32 to 172.31.0.0/16 ranges are reserved for private networks. Yes there’s 10.x.x.x and 192.x.x.x ones too. But what if I made my VPC 172.10.0.0/16. Will that break anything or cause potential issues? Or is it fine given the fact that it’s private.

Correct me if I’m wrong, but this will cause issues. If the IP of some service on the public internet is 172.10.x.x, my router will look at my local network to try and find that resource. It won’t ever route that traffic out to the world. Or am I Wrong on this?

Thanks!

You’re right 100%.

Correct, private IP ranges are reserved as private for this reason. If an IP address is not a part of a reserved private range, you could encounter it on the internet, and you will not be able to reach it if your network is configured to treat the address as internal.

only for things that have routes to that VPC. So the vpc itself and anything peered with it. Anything not peered with it wouldn’t be affected as the traffic should take the default route out to the public internet.

You could also find issues were it sends requests to the internet for a local IP and thus exposes internal data to the internet’s.

All comes down to how the router is setup and what routes are set in what priority.

I’ve done the same mistake..and on the last 10 years this problem above happened once for me…I couldn’t reach the target endpoint because of that. My solution was to create a “lambda forwarder” of the original request and the lambda outside vpc could reach the destination

Yeah, but if the VPC local route conflicts with something on the Internet, you won’t be able to access that thing on the Internet

Yes, this is why the RFC 1918 range is generally used

There’s a couple other private IP ranges as well, namely carrier grade NAT (100.64.0.0/10) and router benchmark (198.18.0.0/15)

obviously

I mean, what if you gave all your internal company phones full real phone numbers? As long as it never touched the real phone network it technically would work, but it literally has no benefit and only will cause endless potential trouble and confusion. if you make your bosses phone the same number internally as the local pizza place, like yeah, you could do some sort of weird internal routing so that technically functions, but like, why? what if you are in the building and do need to call the pizza place? or they call you? or any of the million other issues.

If you don’t use the private range for your VPC then whoever owns/uses that public range will be inaccessible to your network. For some unknown reason HSBC does this and uses a public range in their internal networks and as a result their entire network is unable to access anything related to British Airways.