Joshua Okonkwo
Joshua Okonkwo

Reputation: 41

How do I set a stable ip in Google Cloud Platform?

I set up a cloud instance with Google Cloud Engine; It works well: I can SSH into it and I can use a VNC client in any desktop to connect to it.

However, that causes a lot of trouble. I set the approved addresses as 0.0.0.0/0. This works, but it also leaves my account vulnerable. Even though hackers don't succed to break through, their attempts makes my vnc server to reject new attempts, including mine.

How about changing the approved ip addresses to only my own? The problem with that is that I use an internet provider that constantly changes my ip - it can change multiple times in 5 minutes. As a result, I have to change the approved ip all the time.

I have set up a static ip for my laptop, but the ip that my vnc server sees is the ip set by my internet service provider. Is there a way to ask GCE to only check the computer's ip? Is there a way to set my external ip to a static one (without contacting my ISP)?

Is there anything I can do?

Thank you.

Upvotes: 0

Views: 181

Answers (1)

boredabdel
boredabdel

Reputation: 2120

You can use IAP for TCP forwarding.

This way your VM doesn't need a Public IP (So it's not exposed to the internet) and IAP for TCP forwarding supports both SSH and RDP

Upvotes: 1

Related Questions