Is it possible to do this with PiVPN or Wireguard?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
OwenJoseph
Posts: 8
Joined: Wed Aug 19, 2020 11:43 am

Is it possible to do this with PiVPN or Wireguard?

Post by OwenJoseph »

I'm new to DietPi and have a RP4 running the latest DietPi with PiHole and Samba installed, using a USB 3 external drive as a share which is all working nicely.

There are a few things I'd like to do with the Pi, just wondering the smoothest way of achieve them and if it's possible.

Firstly I'd like to create a VPN tunnel between my Pi in Canada, and my Windows 2012R2 Server in Australia. Either a split-tunnel so I can leave the VPN connected at all times and all traffic destined for the Windows Server goes over the VPN while all other traffic goes via the local internet connection. Or a VPN that can be easily turned on and off when I need to send files across to Australia without having to SSH to the Pi, perhaps a web interface control to enable/disable the VPN connection each time I need to use it?
A VPN client in Australia will have to be installed to the Windows Server, I do not have a VPN capable router over there, any recommendations on a Windows Client?

Secondly, I'd like a VPN client installed on the Pi which is always running which I can login to from my Android phone or Windows PC anywhere in the world, so I can administer things on the Pi's home network remotely.

I've heard of PiVPN and Wireguard, can these services do what I'm looking for and can you recommend how to set it up or point me to a guide?

Very new to this and want to get it right first time, thanks!
User avatar
Joulinar
Posts: 2287
Joined: Sat Nov 16, 2019 12:49 am

Re: Is it possible to do this with PiVPN or Wireguard?

Post by Joulinar »

Hi,

many thanks for your request. For clarification before looking to your topic. PiVPN is not an own VPN Software. It's just a command line interface that will enable you to mange VPN connection. PiVPN is offering to use 2 different VPN technologies. OpenVPN and WireGuard. However, as well you could use both VPN Server without using PiVPN.

In your case it might be easiest to set a VPN server on your DietPi system and install the VPN client on all your devices (incl the Windows Box). Personally I'm using WireGuard as VPN Server and have installed the client on my Android + iOS Mobile devices as well as on my FireTV Stick and my Windows Surface. The only downside might be, that your Windows Server will be connected whole time to your VPN Server.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply