Hi All
we have some machines that are hosted on GCP.
in those machines, we have some services that each one runs in its container (a microservices architecture)
when services talk to one another from within the machine everything is working fine (they "talk" using rest API in HTTP protocol)
however, when I try to invoke one of those services from my local computer (my company's local network) I get
"No connection could be made because the target machine actively refused it. (gb.nanomock.com:8093)"
from what I read this is a firewall problem.
I tried to add my local IP (192.168.x.x) as a firewall rule and associate this rule with the machine but it didn't work.
I've added my IP into the Source IPV4 ranges and selected "Allow all" under Protocols and ports
I also restarted the machine after the rule edit (not sure if this is needed or not)
but that didn't help
Any ideas?
You need to use your public IP address on the firewall rules, not the private one, assuming your VMs do have an external IP configured; otherwise, you would need to set up a Cloud VPN within your infrastructure and GCP.