Purevpn gateway

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Monic
Posts: 5
Joined: Thu Mar 18, 2021 6:44 pm

Purevpn gateway

Post by Monic »

Hi @ll,
I'm new and I need so.e support.
I have buy my first pi 4/2gb for a vpn gateway & pihole.
I have installed dietpi,pihole and pivpn...
Pihole works already great in my network, but I need help to configure my purevpn account.

I have installed pivpn with openvpn option...
So, now where should I put this files?

ca.crt
Auth.txt
Wdc.key
*.ovpn (server)

Another question is if there are a possibility to have a webif for openvpn if I want to change server location...

Thx to all helping me :)

Sorry for my bad English...

Monic
User avatar
MichaIng
Site Admin
Posts: 2783
Joined: Sat Nov 18, 2017 6:21 pm

Re: Purevpn gateway

Post by MichaIng »

PiVPN is actually meant to setup a VPN server, how a client. However, bare OpenVPN can be used for both.

It should work to put the files into /etc/openvpn/.
Rename the .ovpn file to have a .conf ending.
Then start it via: systemctl start openvpn@<filename> with <filename> being the filename without the ending.

Coincidentally we're working on a dietpi-nordvpn rewrite for DietPi v7.1 that will allow to use custom .ovpn files :).

Take care that either the server supports IPv6 or disable it on the client to not have IPv6 leaks or failing requests.
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Purevpn gateway

Post by Joulinar »

indeed PiVPN is no needed as it will act as server. Simply instll of OpenVPN and following the advice of @MichaIng should be enough
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Monic
Posts: 5
Joined: Thu Mar 18, 2021 6:44 pm

Re: Purevpn gateway

Post by Monic »

Thx !!
I will try.
So if the server file name is xy.conf I start it with systemctl start openvpn@xy
Right?

Ipv6 is already disabled on my router.

So I can soon try the dietpi-nordvpn with my purevpn account?
This is great!!!

Schoud I deinstal pivpn and replace it with openvpn on dietpi-software?

Thx for helping me 😃
User avatar
MichaIng
Site Admin
Posts: 2783
Joined: Sat Nov 18, 2017 6:21 pm

Re: Purevpn gateway

Post by MichaIng »

Also dietpi-software OpenVPN selection sets it up for server usage. You could uninstall PiVPN, but it does not hurt. In case you might need to reinstall the plain OpenVPN package: apt install openvpn

The lack of an OpenVPN client setup is also the reason I like the dietpi-nordvpn rework. It will be called dietpi-vpn then btw ;).
Monic
Posts: 5
Joined: Thu Mar 18, 2021 6:44 pm

Re: Purevpn gateway

Post by Monic »

Hi Michalng,
I have now connection to my vpn account. Many thanks 😊
I'm trying now to redirect all network through the raspberry
But it doesn't work.

What should I do?
M.
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Purevpn gateway

Post by Joulinar »

You would need to change default network on your local device pointing to the RPi
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Monic
Posts: 5
Joined: Thu Mar 18, 2021 6:44 pm

Re: Purevpn gateway

Post by Monic »

Hi...
It doesn't work...
Where can I find a step-by-step tutorial?

I have installed dietpi 》pihole and pivpn (openvpn)
Pihole work great (pi ip 192.168.1.54).

Pivpn I have a connection to my purevpn but when I give gateway and das on my devices I don't have connection to internet.

My fritzbox 7590 : dns and gateway are on the rpi ip.

What I need is:
- connection on boot to my purevpn
- a gateway that all my devices in my home goes through the vpn. (With rpi ip on the settings)
- a script that reconnect to the vpn service when it goes down.
- when no connection to vpn then no internet. (For my synology download station)

I hope someone can help me. 😀
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Purevpn gateway

Post by Joulinar »

did you changed the default gateway on your clients? Usually this can be done on the DHCP server or on the clients directly if you use STATIC IP
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Monic
Posts: 5
Joined: Thu Mar 18, 2021 6:44 pm

Re: Purevpn gateway

Post by Monic »

Hi Joulinar,
It finally works.
Is there a way to add in dietpi pivpn&pihole a killswitch?
I need it for my synology download station...

Thx
Post Reply