VNC to Kali Linux

185 views
Skip to first unread message

Michael Abernathy

unread,
Apr 30, 2018, 10:50:24 AM4/30/18
to gce-discussion
I just spun up my first Kali Linux instance and am trying to connect to the gui from my home windows machine using VNC Viewer but I am getting "Timed out waiting for a response from the computer"

I have created a firewall rule to allow TCP:5901-5910, tagged it, and applied that tag to my kali server.
I checked the iptables: 
$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Ensured the connection is allowed:
$ nc XXX.XXX.XXX.XXX 5901
RFB 003.008


I am really not sure what I am missing.

Any help would be greatly appreciated.

Thanks,
Mike

Kamran (Google Cloud Support)

unread,
Apr 30, 2018, 7:16:04 PM4/30/18
to gce-discussion

Hello Michael,

It seems that you ran netcat from inside the VM to ensure the connection is locally allowed. Can you make sure that the firewall rule you've created for VNC service is made for the VPC network which the VM is attached to?

Michael Abernathy

unread,
May 1, 2018, 11:08:40 AM5/1/18
to gce-discussion
Kamran,
The firewall rule is for the default network.


Kamran (Google Cloud Support)

unread,
May 1, 2018, 12:33:33 PM5/1/18
to gce-discussion

Is the VM created on the default network?  

If you require further assistance please feel free to email me your project ID and the VM name privately.
Reply all
Reply to author
Forward
0 new messages