0

I am new to these and I am not sure I am posting to the right forum.

I have a newbie question:

Lets say inside a vpn I am connecting my web server to the database server and both of these two are inside the vpn each one on its own machine.

Is this communication between these two servers encrypted or because they are both inside the vpn is not encrypted ?

Thanks. Edit I am not the one who has setup the VPN. I am just having two machines inside it. I just want to know if the VPN ensures that these two machines communicate securely. Or at least the common setup is that the communication is being encrypted inside the VPN by the VPN.

1
  • This site will be more helpful if you have a more specific problem to solve. Right now, it is difficult to give a concise answer, because while encryption is involved, explaining in which ways traffic is readable to whom and how this may go wrong depends a lot on your specific setup.
    – anx
    Feb 28, 2021 at 17:19

1 Answer 1

0

Let me begin with important note. VPN, a "virtual private network", doesn't say anything about security. Virtual, i.e. there is no additional physical thing. Private, so you can not ask anybody how to design, deploy and for which purpose. Network, so you'll connect something by its means so it looks like ordinary network connection. Where is encryption and authentication comprising security? It is often assumed, but nothing in this acronym requires any of them. And you well can build a VPN without any encryption and authentication, for instance, use raw IPIP or GRE or L2TP v3. And techically that would be a VPN by the definition, but insecure.

Your consideration must begin with question to yourself: which VPN? Is it secure? Is each system that can participate secure too?

If web service is running on the same machine as one VPN endpoint, and also the web client is running on the same machine as other VPN endpoint, and routing is set up such as that the communication between them is possible only through that VPN channel which is properly secured, their communication can be considered secure.

A caveat: in this case there is usually no way for either client or server to assure they are running through secure channel. They only use unencrypted connections themselves, all the encryption is done transparentely for them, without any way to ensure and influence security. If VPN software is buggy and security can be disabled, they may continue to communicate, without noticing and without notifying the user the communication is no longer secure. This is not a joke and not theoretizing, I've seen example of such VPN.

This is why often encryption is embedded into software that usually doen't meant to be communicating over insecure networks, like database engines. To serve as additional layer of security. To be sure that even if something goes wrong, we have some endurance left.

2
  • So suppose I am having two machines communicating between inside a vpn there is no other way to find out if this communication is encrypted but asking the administrator? Mar 8, 2021 at 21:47
  • Yes. Absolutely. Mar 9, 2021 at 13:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .