Raspberry Pi VPN server, 2/4/8GB RAM?

Will be buying a raspberry pi to setup a VPN server. Is the 2 GB version enough? Does RAM affect performance if the pi is just for a VPN server?

Any advantage to getting more RAM?

I am currently running a headless, minimal Raspberry Pi OS install on a B3+ and I only use about 140MB of RAM for Wireguard, PiHole, Unbound (all three of these in Docker containers), and a Samba server. So the 2GB is more than enough in my opinion.

But, more RAM is always better than less if you’re planning to also run a GUI desktop, etc. More RAM also means more caching for the OS, too.

How many users? A 4GB Pi4 is the way to go in all liklihood. The main thing that could affect performance is that the pi3 ethernet port shares bandwidth with USB so depending on what else you’re doing with the device, it could slow down a lot.

Just to add my 2p… I use a Raspberry Pi Zero W as a WireGuard VPN server and have no issues with it’s performance. In my case, it is only me accessing my LAN through it and that is to access files, Internet and SSH, all super quick. With a case, that’s less than £15 all in!

Running the exact same setup as /u/bealanator, minus Docker containers and Samba, as I have Samba along with some other stuff on a 4GB Pi 4.

For my setup, WireGuard, Pi-hole, and Unbound uses ~180MB total of the available 1GB RAM on the 3B+, likely because of my adlists. Screenshot

A 2GB Pi 4 will be much more than enough for a VPN server.

The more users you plan to have connected to your vpn the more ram & cpu you would want have

I am not sure about all that but whenever I buy RDP servers to use online if their not AT LEAST 8GB they are so slow it is basically unusable. Im not sure if that helps but I figured it could so I would say it. lol.

I am currently using the 4GB Pi 4 version with Wireguard, getting 250mbps testing via iperf, quite happy with this headless machine

https://i.imgur.com/lIPKwNz.png

Agreed iv has around 20Mbs out of the old PI2 using AES encryption so you will be fine! More likely the CPU will top out before the memory anyway

Did you follow a specific tutorial to do this? I need to be able to access my home network while I’m away from home, and my googling has landed me here lol. I have a Pi 4 Model B 2GB Ram.

I just installed WireGuard as per this guide: https://pimylifeup.com/raspberry-pi-wireguard/

And if you intend to have a firewall on the server too and will be using UFW then you’ll want to take a look here to set up IP Masquerading: https://www.reddit.com/r/WireGuard/comments/ik6w4h/etcdefaultufw_default_forward_policyaccept/

Hope that helps…