VPN client for DietPi Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: VPN client for DietPi

Post by przemko »

Yes, I have nextcloud installed on dietpi with ssl from ddns (no-ip). Do I have to open port on my router 1194?
trendy
Posts: 121
Joined: Tue Feb 25, 2020 2:54 pm

Re: VPN client for DietPi

Post by trendy »

If I have understood properly, the VPN is terminating on the dietpi. Is that correct?
If so the port forward on the router is pointless. You have 2 options:
Either you ask the vpn provider to do the port forwarding, which might as well be from difficult to impossible.
Or you create some traffic rules on dietpi for policy based routing. This means that traffic that matches certain criteria (e.g source port) will be forwarded to the ISP and not to the VPN.
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: VPN client for DietPi

Post by przemko »

Have paid for VPS on ArubaCloud and then on debian server I install openvpn server. There I generate ovpn files. I use that on my laptops, smartphone and OSMC. Now I want to use that on Dietpi on my Rpi4 in my home.
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: VPN client for DietPi

Post by Joulinar »

ok have some ??? why do you need DietPi connected to your VPS Server? I mean your NextCloud is reachable from Internet right now as you have forwarded http/https to your DietPi system. So you can connect directly from the global web. No need for any VPN solution.

Next to this, you could install a VPN server on your DietPi system if needed. Or for what do you use the VPS Server? Does it do anything else?

As I understood DietPi is just the client, the VPS Sever will act as OpenVPN server. Therefore no need to open Port on your Router. This is needed for incoming traffic only. Means if DietPi would act as Server and not as Client.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
trendy
Posts: 121
Joined: Tue Feb 25, 2020 2:54 pm

Re: VPN client for DietPi

Post by trendy »

przemko wrote: Tue Mar 24, 2020 5:00 pm Have paid for VPS on ArubaCloud and then on debian server I install openvpn server. There I generate ovpn files. I use that on my laptops, smartphone and OSMC. Now I want to use that on Dietpi on my Rpi4 in my home.
Lovely, then you can open the ports you need on the VPS.
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: VPN client for DietPi

Post by Joulinar »

@trendy
As other devices are already able to connect to the VPS System, no need to port opening there. ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: VPN client for DietPi

Post by przemko »

I use openvpn server (installed on VPS) for security. It hides my IP. I think to close that VPS but I don't know if when I install openvpn server or PiVPN on my dietpi what IP it will show?
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: VPN client for DietPi

Post by Joulinar »

it will show your public IP of your private ISP
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: VPN client for DietPi

Post by przemko »

So that is pointless because I use vpn to hide my IP and it shows now IP of my VPS that is in another country.
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: VPN client for DietPi

Post by Joulinar »

so you still need to fix that your DietPi system is not able to connect to your VPS Server. Therefore still my recommendation to create a complete new config file and delete all the other config files.

but if you like to route your entire internet traffic from your home network to the VPN, you should consider WireGuard as VPN technology as its faster and more lightweight than OpenVPN. Ok downside is that WireGuard is net yet marked as stable and still under development.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply