Unable to access SQL over VPN

Philip Preece 41 Reputation points
2025-02-27T12:04:55.5+00:00

We have an on-premises Active Directory with Azure AD synchronization (ie: a hybrid environment). Our on-prem includes two separate AD forests that are connected with a two-way trust. For name sake, i'll call these: AD1.local and AD2.local. All client devices are Windows 11 Entra Joined and enrolled in Intune. AD1.local and AD2.local, have their own domain controllers, RRAS, and NPS servers. In Intune, we’ve implemented two AOVPN profiles, one for users in AD1.local and another for those in AD2.local. Additionally, in AD1.local we have a SQL server that runs two separate SQL instances (Instance1 and Instance2). Users from AD1.local connect to Instance1, while users from AD2.local connect to Instance2. When in the office, users from both AD1.local and AD2.local can access their relevant SQL instance without any problems. Also, remote users from AD1.local can connect to their SQL instance via AOVPN. However, remote users from AD2.local are experiencing a timeout error when trying to connect to their instance. They can ping and browse to the SQL server (for example, \SQL01\testshare), and the SQL server can ping the remote AD2.local client devices over the vpn, so it seems this isn’t a firewall or routing issue. On a remote AD2.local device, we can also establish an ODBC SQL test connection. Any advice would be greatly appreciated.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,655 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Philip Preece 41 Reputation points
    2025-02-28T09:02:26.6666667+00:00

    Hi ZoeHui

    This is the error received. As mentioned, remote devices can ping/browse to the SQL server and visa-versa. Also, on a remote device, if we create an ODBC connection to the SQL server, the device is unable to automatically detect the SQL server, however, if we manually enter it (ie: SQLSERVER1:\INSTANCE02), it then works.

    User's image

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.