scumdogmillionaire Posted April 24, 2023 Share Posted April 24, 2023 Hello! I am a small ISV that deals with SQL Server. Typically when a user wants a remote connect (i.e. from home to their business) we secure a TCP port and configure their router. This has become a massive headache and realize from a security perspective it's not great. Luckily the database does not contain any critical information, but even so... What would be the least friction for setting up a VPN for users who do not know much. This way they could just VPN to where their server PC is, and no additional configuration needs to occur on the client software. Any suggestions? Easy to setup and cost effective are considerations. THanks! Link to comment https://www.neowin.net/forum/topic/1428319-software-vpn-for-clientserver-connections/ Share on other sites More sharing options...
C:Amie Posted April 24, 2023 Share Posted April 24, 2023 If they are dialling into Windows Server, you can enable RRAS and SSTP/L2TP/IKE, but you still need to configure the router and the idea of VPing into a SQL Server is a fairly poor one to be honest - you really want a dial-in server and proper intermediate security into the core network. If you have a standardised WAN router, you might find that they support direct L2TP VPN. If the remote user has a static IP address, you could lock down their port access to the static IP Finally, you could look at a remote access solution like Team Viewer, Chrome Remote Desktop, AnyDesk which do not require any firewall punch through as they use rendezvous points. Link to comment https://www.neowin.net/forum/topic/1428319-software-vpn-for-clientserver-connections/#findComment-598815093 Share on other sites More sharing options...
scumdogmillionaire Posted April 24, 2023 Author Share Posted April 24, 2023 Thanks for the reply. No, mostly these guys are small businesses just on Windows client machines. I don't want to VPN to SQL server specifically, but just the PC that hosts it. This seems more secure to me than the current method of direct SQL connections? They are starting to have issues with things like credit card compliance issues because their network has that port open, even though we have nothing to do with credit cards. So I'm looking at ways to eliminate those types of things I guess the L2TP is maybe the way to suggest. was hoping one of these like Express VPN things or something had some software installed on some end that created that VPN server so to speak that they could establish the connection to that network and do what they needed to do. Link to comment https://www.neowin.net/forum/topic/1428319-software-vpn-for-clientserver-connections/#findComment-598815130 Share on other sites More sharing options...
C:Amie Posted April 24, 2023 Share Posted April 24, 2023 Unless you are saying that the 'host PC' is just running a copy of SSMS, that would be a direct connection to the SQL Server. You don't want other things running on SQL Servers. It isn't great design or security posture. It really doesn't matter what VPN service you use, be it built-in, RRAS, OpenVPN etc. Unless the VPN server is on the WAN router, you still have to config it and then reconfigure the router, port forwards and monitor it. One compromised password, one weak account on the VPN system. Someone has to police it. Link to comment https://www.neowin.net/forum/topic/1428319-software-vpn-for-clientserver-connections/#findComment-598815171 Share on other sites More sharing options...
scumdogmillionaire Posted April 24, 2023 Author Share Posted April 24, 2023 Yes, i get all of that... but this is SQL Server express for very small businesses. They don't have the resources to build out dedicated SQL servers . It's a fat client that's being sunset more or less. looking for ways to bridge some gaps for me on the support side and make things a little tighter/easier on this end of things. it seems to not exist like i was hoping. Link to comment https://www.neowin.net/forum/topic/1428319-software-vpn-for-clientserver-connections/#findComment-598815183 Share on other sites More sharing options...
Joe User Posted April 25, 2023 Share Posted April 25, 2023 For small offices, when I'm working with a shoestring budget, I usually get an ASUS router that's compatible with third party firmware like Merlin WRT and run a VPN server on it. scumdogmillionaire 1 Share Link to comment https://www.neowin.net/forum/topic/1428319-software-vpn-for-clientserver-connections/#findComment-598815214 Share on other sites More sharing options...
C:Amie Posted April 25, 2023 Share Posted April 25, 2023 On 24/04/2023 at 22:06, scumdogmillionaire said: Yes, i get all of that... but this is SQL Server express for very small businesses. They don't have the resources to build out dedicated SQL servers . It's a fat client that's being sunset more or less. looking for ways to bridge some gaps for me on the support side and make things a little tighter/easier on this end of things. it seems to not exist like i was hoping. Then I would use something like team viewer and forget about port forwarding entirely. It'll give you a console connection without the mass security implications. Link to comment https://www.neowin.net/forum/topic/1428319-software-vpn-for-clientserver-connections/#findComment-598815276 Share on other sites More sharing options...
+InsaneNutter MVC Posted April 25, 2023 MVC Share Posted April 25, 2023 Perhaps ZeroTier would work in this situation, you can essentially build a virtual network over the internet that consists of any device with the ZeroTier client installed. You'd install the ZeroTier client on the SQL server, along with any client PC you wish to remotely connect. Essentially all these devices are then on the same virtual local area network, so can talk to each other. Ideally you want to lock the SQL server PC down down so only remote connections are allowed on the SQL server port, nothing else like RDP. From what you have said you can't really trust the devices that are going to be sat on the same ZeroTier network and have the ability to connect to this SQL server. The end result is you have limited the people who can connect to the SQL server to just the people with the ZeroTier client installed and are a member of the virtual network you created, not the whole internet. The more proper way to do this would be to run a VPN on premises. You'd have the SQL server in its own VLAN, have the users VPN in and be isolated in another VLAN. Finally a firewall rule to only allow connections from the VPN VLAN to the SQL VLAN on port 1433 for example. However from what you have said the hardware is probably not in place to support this. scumdogmillionaire 1 Share Link to comment https://www.neowin.net/forum/topic/1428319-software-vpn-for-clientserver-connections/#findComment-598815298 Share on other sites More sharing options...
scumdogmillionaire Posted April 25, 2023 Author Share Posted April 25, 2023 On 25/04/2023 at 05:33, InsaneNutter said: Perhaps ZeroTier would work in this situation, you can essentially build a virtual network over the internet that consists of any device with the ZeroTier client installed. You'd install the ZeroTier client on the SQL server, along with any client PC you wish to remotely connect. Essentially all these devices are then on the same virtual local area network, so can talk to each other. Ideally you want to lock the SQL server PC down down so only remote connections are allowed on the SQL server port, nothing else like RDP. From what you have said you can't really trust the devices that are going to be sat on the same ZeroTier network and have the ability to connect to this SQL server. The end result is you have limited the people who can connect to the SQL server to just the people with the ZeroTier client installed and are a member of the virtual network you created, not the whole internet. The more proper way to do this would be to run a VPN on premises. You'd have the SQL server in its own VLAN, have the users VPN in and be isolated in another VLAN. Finally a firewall rule to only allow connections from the VPN VLAN to the SQL VLAN on port 1433 for example. However from what you have said the hardware is probably not in place to support this. Ah! This is closer to what I was looking for! Thank you! I need some network tunneling that I don't have to manage/maintain so this looks like it may fit the bill! Link to comment https://www.neowin.net/forum/topic/1428319-software-vpn-for-clientserver-connections/#findComment-598815415 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now