How can I prevent my VPS provider from accessing my decrypted VPN data?
9 points by vpnconcernusers 2 days ago | 14 comments
Hi everyone,
I'm currently exploring the idea of setting up my own VPN (for example, using WireGuard) on a VPS. However, I have a significant concern: by design, the VPN server must decrypt the traffic in order to forward it, which means that the VPS provider technically has the ability to access this decrypted data.
My main question is: Is there any method or configuration that can ensure that even on my self-hosted VPS, the provider cannot access my data? In other words, I'm looking for a way to maintain end-to-end encryption from my device to the final destination—even if my data is passing through a VPS.
I've read that application-level encryption (like HTTPS) is necessary for true end-to-end security, but I'm wondering if there are any additional techniques or tools that can help secure the data even on the server side, effectively preventing the VPS provider from inspecting the contents.
Any advice, guidance, or alternative solutions would be greatly appreciated!
Thanks in advance for your help.
gradschool a day ago | next |
Here's a crazy idea. Create a large empty file on your VPS. Call it backingfile.lol. Then remotely mount the directory containing backingfile.lol using sshfs on your local machine, so that you can access backingfile.lol as if it were a local file. Then create a loopback device on the local machine using backingfile.lol as the backing file, and create a luks device on top of the loopback device. Format the luks device with the filesystem of your choice, mount the filesystem, and rsync your secret files with it. Tear down everything except backingfile.lol on the VPS when not in use, and your files will persist inside it.
If my understand about all this is correct, your adversary could have physical access, root access, and Intel's own ME signing keys, but will see only encrypted data at rest on the VPS, because your keys never leave the local machine, affording him no recourse short of cracking AES.