Forward incoming internet traffic to instance alias ip

97 views
Skip to first unread message

kiser

unread,
Mar 14, 2019, 5:41:29 PM3/14/19
to gce-discussion
Hi,

I have a setup when instance has the second interface with private subnet ip assigned to it on creation.
Then I added additional alias ip on interface via api https://cloud.google.com/vpc/docs/configure-alias-ip-ranges
There is a service serving on that particular alias ip and I need to reach it from Internet. How to setup forwarding rule
or any other setup that will allow accepting external incoming traffic on some public ip and then forward it to instance
alias ip?

James Richard Boa (Google Cloud Platform Support)

unread,
Apr 4, 2019, 10:16:30 AM4/4/19
to gce-discussion

Hello Kiser,


I am not certain on some of the conditions you need for your deployment but the best way to accomplish what you are looking for is deploying a Load Balancer[1] to allow incoming traffic through an external IP.


This is the recommended way to do this due to Instance IP’s being ephemeral and subject to change over time.


You can also create forwarding rules[2] as well and point them to your instance or IP. I have included some documentation below if needed that covers this in more details.


I hope that helps Kiser.


[1] https://cloud.google.com/load-balancing/docs/https/setting-up-https

[2] https://cloud.google.com/load-balancing/docs/forwarding-rules


Reply all
Reply to author
Forward
0 new messages