如何允许用户连接到Windows Server Azure VM上运行的Perforce Server?

问题描述:

对于任何愚蠢的问题,请允许我提前道歉.我几乎没有IT经验,但是由于与一个非常小的团队合作而*担任这个职位.

Allow me to apologize in advance for any stupid questions. I have little to no IT experience, but have been thrust into this role due to working with a very small team.

我目前已启动并正在运行Windows Server 2016 VM.我可以通过RDP连接到它,所以我至少可以部分正确地对其进行设置.我和我的团队打算使用此计算机为代码存储库托管我们的Perforce Helix Core Server. 我已经设置好了,应该可以通过端口1666对其进行访问.

I currently have a Windows Server 2016 VM up and running. I'm able to connect to it via RDP so I have it at least partially set up correctly. My team and I are intending to use this machine to host our Perforce Helix Core Server for our code repository. I have this set up and it should be accessible via port 1666. 

让我迷路的是如何设置权限,以允许我们通过Perforce Visual Client(P4V)实际连接到该服务器.我已经在Windows Server VM的配置设置中设置了DNS标签(通过Azure门户),并且将 期望使用服务器名称mylabel连接到perforce服务器.

Where I'm getting lost is how to set up permissions to allow us to actually connect to this server via the Perforce Visual Client (P4V).  I have set up a DNS Label in the configuration settings of the Windows Server VM (via the Azure Portal) and will be expecting to connect to the perforce server using the server name mylabel.westus2.cloudapp.azure.com:1666 but am unsure what exactly needs to be configured to allow this.

任何建议将不胜感激.值得一提的是,我和我的团队都在远程工作,因此我将需要确保任何解决方案都可以使我们访问,但仍要确保足够的安全性,以使团队之外的任何人都无法访问此代码存储库.

Any advice would be greatly appreciated. It should also be worth mentioning that my team and I all work remotely, so I will need to ensure any solution gives us access but still ensures enough safety that no one outside the team can access this code repository.

谢谢!

肯特·甘比尔,

Hi Kent Gambill,

请让我知道如何您正在访问Windows Server.

Please let me know how  you are accessing your Windows Server.

使用公共IP或 VPN 解决方案.

With public IP or with the help of a VPN solution.

如果使用公共IP访问,则可以为Windows服务器设置DNS名称并进行访问.

If you are accessing with public ip, Then you can set a DNS name for your windows server and access it.

还应确保端口1666已打开.

You should also make sure that the port 1666 is open.

这种情况下的问题是它向互联网开放.

Problem with this scenario is that its open to the internet.

您说您的团队正在远程工作.如果您的团队的远程IP不变,则可以将这些ip添加为该VM的NSG中的源IP.这样只有您的团队可以访问.

You said that your team is working remotely. If your teams remote IP is not changing, you can add those ips as the source IP's in your NSG for that VM. So that only your team can access.

如果远程团队的IP经常更改,则可以考虑设置VPN.

If your remote teams IP's are changing frequently, You can consider setting up a VPN.

在此解决方案中,您的团队流量通过公共Internet传输到Azure.在这种情况下,您不需要Windows VM的公共IP.

In this solution your teams traffic is tunneled into Azure over the public internet. In this case you don't need to have a public IP for your windows VM.

此解决方案的缺点是您需要在笔记本电脑上安装vpn客户端,然后进行连接.如果只有一台服务器要保护和公开,那么拥有VPN解决方案就显得过分了.

Downside with this solution is that you need to install a vpn client on your laptops and then connect. If you have only one server to secure and expose, Having a VPN solution is a overkill.

让我知道您的评论.