How to allow a specific port in Google Cloud Platform instance for the specific URL/IP

Viewed 417

Instead of allowing for all, I just want to open the port for the specific IP/URL, How we can do this in Google Cloud Platform?

1 Answers

As it was already discussed at the comment section, you can use Google Cloud Firewall which operates on the Level 3 to create a rule and allow access from the particular IP addresses:

Firewall rules are defined at the network level, and only apply to the network where they are created.

If you require URL filtration on the Level 6/7 you can have a look on the Google Cloud Web Application Firewall - Google Cloud Armor.

Related