将 Windows Server 2022 设置为 VPN 服务器

将 Windows Server 2022 设置为 VPN 服务器

我正在尝试在新的 Win Server 2022 上设置应用程序和 VPN 连接,就像它当前在旧的 Win Server 2008 上设置一样,但我遇到了困难……基本上,我正在尝试在 Win Server 2022 上镜像所有内容。

几年前为客户做过这件事的人现在联系不上了,所以我被这个问题困扰着……

当前的测试和生产环境是(服务器是 Azure 上的虚拟机,我可以访问所有内容):

- VPN Linux server on Azure (it uses OpenVPN)
- Win server 2008 (on Azure) and MSSQL database are connected to VPN server
- To connect to MSSQL locally or to connect to Win server via RD I have to be connected to VPN over OpenVPN

我做的事情:

- Created new win server 2022 on Azure, set up IIS, users and stuff like that
- Made a backup of database and restored it on Win 2022 server
- Deployed application on IIS on new server (it works but it wont connect to database, I suppose because of VPN). 
- Application works though when I run frontend and backend locally and database is on new server, also only when I'm connected to VPN

这是结果和问题:

- I can connect to Win 2022 server via RemoteDesktop without connecting to OpenVPN
- I can connect to MSSQL database on new server from my computer only when connected to OpenVPN (why? I mean, It's supposed to be like that but I don't know why and how it did this automatically after i restored db on new server)

- I didn't find anything on VPN server that would tell me it allows access for old Win 2008 server (no IP address, or anything helpful)
- I didn't find anything on old Win 2008 server that would tell me that it can be only accessed through VPN server and that all traffic goes throug it.
- Application works though when I run frontend and backend locally and database is on new server, also only when I'm connected to VPN

如果重要的话,所有服务器都位于 Azure 中的同一资源组中(VPN、Win server 2008、Win server 2022)

我希望有人能给我指明正确的方向。

谢谢

相关内容