A VPN (virtual private network) uses encryption to secure traffic traveling across public networks, making data unreadable to anyone who intercepts it. This content covers how site-to-site and client-to-site VPNs work, along with the protocols that support them.
Virtual Private Networks (VPN)
It's great now that we have the internet where we can make cheap and fast connections from site to site or site to user, but we still need to protect that traffic that goes across those public networks. Well, that's where a virtual private network comes into play, or VPN.
Here we have a headquarters for a certain business. What we want to do is we want to connect another site, and we want to also have remote users, so they need to connect into this network. So how can they be a part of that network? We can do that, but how specifically do we make it secure so that way no one else sees that?
Well, the answer to that is encryption. If we encrypt the traffic across here, people still see those bits. They still see the ones and zeros, but what they can't see is what actual data is behind those ones and zeros. That's what makes it virtually private. It's not private. They can see the data, they can see the ones and zeros, but it's virtually private because they can't interpret what those ones and zeros actually mean.
We have a couple main types of VPNs. There's lots of different types of VPNs, but one of the main ones here is a site-to-site VPN. So here we have our headquarters office, and maybe we have some sort of satellite campus right here. But what we need to do is we need to connect those. Users from this side need to access resources over here, and users on this side need to access resources over here. In order to do that, we create a site-to-site VPN. What happens is, as it leaves this router or firewall that we have on this side, it encrypts the traffic, and then it decrypts it when it gets to the other side and then sends it into this network, making it virtually private.
Now, site-to-site VPNs are great if you have some sort of satellite campus, but often we have users that are connecting in from coffee shops or homes, and they don't have the equipment, like a router that can connect to a router, or a firewall that can connect to a firewall, and create that VPN. So in those cases, we might use some sort of client-to-site VPN.
A client-to-site VPN allows a client machine to have software inside of it that encrypts traffic going to this end device here, which is probably a firewall. Actually, I have it represented as routers, which it could be a router, but a lot of times those are firewalls. So this would be a client-to-site VPN.
One of the ways to do this is with an Internet Protocol Security, or IPsec, tunnel. So we create a tunnel between two devices. For instance, our site to site, what happens is it creates this virtual tunnel, and really that just means it gets encapsulated with this IPsec. So what happens is, as it gets to here, it gets encrypted and gets encapsulated with this IPsec, gets sent over, and then decrypted and sent into this network. So it is a protocol that's used to secure this by encrypting it.
There's also a transport layer security, or TLS, VPN. A TLS VPN I don't see near as common out there. It is for clients really. You wouldn't really do it for a site-to-site VPN. So it's on the clients, and it's very limited, which is one of the reasons why I have not seen a lot of this TLS VPN.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →