I have a Compute Engine instance running Ubuntu 20.04 on the Google Cloud Platform.
I want to be able to connect to it over port 102. For this purpose, I opened this port by adding a rule in the 'Firewall' section under 'VPC Network'. The rules are shown below:
This VM instance is running an OpenVPN server with an IP address 10.8.0.1
. I want to be able to connect to it from a Windows PC which acts as a VPN client (IP: 10.8.0.3
).
I used the following command in Windows PowerShell to check if the port was accessible: Test-NetConnection 10.8.0.1 -Port 102
. The output is as shown below:
As you can see, it is able to ping but not connect via port 102.
I have checked and confirmed that the network rules set on the VPC applies to the VM instance in question, so that shouldn't be the problem. Also, the port 102 has been opened on the Client PC as well. This can be confirmed from the output of nmap -p 102 10.8.0.3
from the Virtual Machine Terminal:
So, why is the VM not reachable over port 102? Any help would be appreciated.