wireguard create new clients automatically Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: wireguard create new clients automatically

Post by Joulinar »

PiVPN is a simple command line tool to manage wg configuration files. It's not an own VPN software. During installation, PiVPN install script will take care on all needed steps to get Wireguard installation done. Basically it's doing nothing else than manager the conf files. Server configuration will be different from DietPi's as PiVPN is more generic script that will work on quite a large number of different OS.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 103
Joined: Sun Jul 21, 2019 12:54 pm

Re: wireguard create new clients automatically

Post by naddel81 »

will give it a go. since uninstall I cannot even get ONE client to connect again. strange.
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: wireguard create new clients automatically

Post by Joulinar »

Ensure the correct DDNS is used. As well check if you see a handshake on the server side. On plain Wireguard, you can use wg command. As well check correct port forwarding on your router. As long as you don't see a handshake, VPN connection is not established.

If you see a handshake, try to open a website using IP first. This will exclude DNS and verify basic connection. If this works, try opening a page using DNS.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 103
Joined: Sun Jul 21, 2019 12:54 pm

Re: wireguard create new clients automatically

Post by naddel81 »

pivpn works great. it makes creating clients much easier. but it does not seem to have Pihole as DNS because ads come through. how to test if it uses Pihole?
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: wireguard create new clients automatically

Post by Joulinar »

Have a look in your client app. There you see the DNS server set. Change it to your PiHole server IP.

I guess PiVPN stores the DNS server information somewhere, to use it for the client file creation. But I'm not 100% sure where.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 103
Joined: Sun Jul 21, 2019 12:54 pm

Re: wireguard create new clients automatically

Post by naddel81 »

it stores a 10.0.6.x IP although Pihole is 192.168.2.x. strange
User avatar
MichaIng
Site Admin
Posts: 3106
Joined: Sat Nov 18, 2017 6:21 pm

Re: wireguard create new clients automatically

Post by MichaIng »

10.0.6.x is the VPN-internal IP. That should also work when Pi-hole is on the same system as the VPN server, and the IP matches the servers IP, hence 10.0.6.1 usually. Otherwise, yes, the LAN IP will always work.
naddel81
Posts: 103
Joined: Sun Jul 21, 2019 12:54 pm

Re: wireguard create new clients automatically

Post by naddel81 »

piVPN works great. the normal WG script wouldn't work, but PiVPN did the trick. I have no clue why. same input data was used.
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: wireguard create new clients automatically

Post by Joulinar »

just to be clear, PiVPN is doing nothing else crating the client conf files. The WireGuard VPN server is still the same as before. Probably something was not set correctly while setting up the additional clients.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply