How to setup a VPN server?

I have the WD My Cloud EX2 Ultra, I’d like to have remote acces to it since it will be placed in a different network. The best way to do this to me seems to host a VPN server. I cant find anything about this topic, just how to setup clients.

Thanks, I’ll try it out. I can’t believe I haven’t heard of this before.