Configured Load Balancer with SSL Certificate & Domain Name but how to restrict loadbalancer IP

We have deployed the Windows VM with IIS Web Application, for Google Managed SSL we configured the Loadbalancer with Valid Domain name and SSL Certificate, which is working fine.

We want to restrict the IP Address of the Load Balancer which should not open publicly. Load Balancer Public IP also should be redirected to Domain Name. Can anyone guide how to do the same.

1 1 194
1 REPLY 1

For your first question - i.e. limiting which IPs can connect to the service, you could explore Cloud Armor rules, have a look at these links:

https://cloud.google.com/armor/docs/cloud-armor-overview

https://cloud.google.com/armor/docs/rules-language-reference#allow_or_deny_access_based_on_an_ip_add...

For your second question, you want to redirect requests to the IP to the DNS name? If so you probably want to look at a URL redirect, check out some documentation here: https://cloud.google.com/load-balancing/docs/https/setting-up-url-redirects-classic

Hope that helps,

Alex