Wireguard installation Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Blade76
Posts: 3
Joined: Fri Jun 05, 2020 5:40 pm

Wireguard installation

Post by Blade76 »

Hi guys! So i´m a newbie to this forum and to the DietPi aswell. Lately i tried to install Wireguard but i doesn´t work for me :cry: :cry: :cry: , so i´m now a little bit frustrated and i hope to get help here. So i wanna share my configurations here and wanna go step by step here.
First of all is have a Fritz Box Router with the IP XXX.XXX.XXX.1 and on this i have my Pi with DietPi installed, this Pi has the static IP XXX.XXX.XXX.45 and as software i have the PiHole running. I also have a dyn.dns Service running like this address XXX.ddns.net, at the install routine i took the server installation and as public IP i put in the dyn.dns Address and Port 51820. In the Router i have under the Pi IP Address open the Port 51820 for UDP. When i´m installing Wireguard all seems good so far, so if i open the wg0.conf it looks like this
Wireguard 1.png
. Private Key and Public Key are set is this config good so far?
User avatar
Joulinar
Posts: 2074
Joined: Sat Nov 16, 2019 12:49 am

Re: Wireguard installation

Post by Joulinar »

Hi,

many thanks for your request. Pls can you share a little bit more on your issue and eactly your problem is? I have exactly the same setup as you and for m it's working flawless.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Blade76
Posts: 3
Joined: Fri Jun 05, 2020 5:40 pm

Re: Wireguard installation

Post by Blade76 »

Hi Joulinar!! Thanks for replying! So yeah the problem is, that i can´t get a connection to the internet, i went through the process many times now, but nothing worked so far. So something has to be wrong, but i don´t know what excatly, this is the reason why i would go throu it step by step
User avatar
Joulinar
Posts: 2074
Joined: Sat Nov 16, 2019 12:49 am

Re: Wireguard installation

Post by Joulinar »

Not sure but there might be a misunderstanding. You setup a server, means your DietPi device is waiting on a connection from the internet. Usually a mobile device like your cell phone is using the WireGuard client app to connect back home. This would allow you to access your local devices while you are away. The WireGuard server as is, will not connect to the internet.

Maybe you can describe what you like to achieve with your WireGuard installation.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Blade76
Posts: 3
Joined: Fri Jun 05, 2020 5:40 pm

Re: Wireguard installation

Post by Blade76 »

Oh okay! That seems indeed a misunderstanding on my side.
Thanks for that Joulinar!
Post Reply