3 ms·
We use a VPN for this reason. It works pretty well and means we can lock things down to a single IP while allowing staff to still get on from home.
by scaryclam 9y ago
We use a VPN for this reason. It works pretty well and means we can lock things down to a single IP while allowing staff to still get on from home.
- phil21 9y agoI never understood this. If you allow roaming VPN sessions what is the difference between a roaming SSH session? I'd argue they are effectively the same thing with the same auth methods available for both. Why do you consider VPN to be a better protocol than SSH for security/authentication?
- scaryclam 9y agoI don't consider it better, I consider it an additional barrier to attacking the production systems. Everyone authorised to access the servers (prod or non-prod) has to have an SSH key, protected by passphrase, to access the servers. This in addition to the requirement that they are either in the office or logged into the VPN means that any attacks have to come via that funnel. Attackers who are not specifically targeting the company are unlikely to bother or to have the skills necessary. It's too much hassle and attackers scanning around for a random victim don't even see that the ports are open since they're behind a firewall. So, it's not about this protocol vs that protocol for authentication, there certainly shouldn't be open access just because you got past the VPN auth, it's about layering your security to shrink the surface area and make it simpler to identify the entry points.
- phil21 9y agoAlright, so you use VPN as your bastion server - effectively. I guess I never considered the need to SSH directly to machines. I completely agree security is defense in depth through layers. I brought up the question since I was just at a client site that required VPN to ssh to their single bastion (jumpbox) ssh host, which then you used to further ssh to production machines. The VPN layer in that architecture seems rather silly - just lock down your bastion server (SSH) in the same way!
- scaryclam 9y ago> Alright, so you use VPN as your bastion server - effectively. No, I apologise if I wasn't clear, the bastion server is accessible only after you are either also within the office or logged in via the VPN. It's an additional hoop to jump through, not a replacement. The point being, the bastion server is locked down in addition to the requirement to be logged into the VPN or being physically located at the office. IP locking is not a replacement, it's a sensible addition. I think perhaps this is why you think it's silly; you're misunderstanding that it's not a different layer it's an additional one.