Pi-Hole-on-Google-Compute-Engine-Free-Tier-with-Full-Tunnel-and-Split-Tunnel-Wireguard-VPN-Configs icon indicating copy to clipboard operation
Pi-Hole-on-Google-Compute-Engine-Free-Tier-with-Full-Tunnel-and-Split-Tunnel-Wireguard-VPN-Configs copied to clipboard

Second run of setup.sh breaks everything

Open failinghobbyist opened this issue 3 years ago • 2 comments

Thanks for the guide! Running through it once and generating the first key is very smooth. Using a phone with the first QR code works, and modding to go full tunnel works fine.

As soon as I run setup for a second time to generate another key, the first client dies. It appears to connect, but can't reach either the pi hole admin console or the internet.

What am I doing wrong? I notice during the second setup run that its trying to assign the same client IP again (10.66.66.2) which seems like a problem.

Is there a way to blank the wg config so that I don't have to spin up a new VM every time I start over?

Thanks again for the help, enjoyed learning through your guide!

failinghobbyist avatar Jun 01 '21 23:06 failinghobbyist

Are you sure that the qr code you are scanning is not the same as the first one?

chicocheco avatar Jul 20 '21 16:07 chicocheco

I had the same issue. Generating a second profile was overwriting the first and would make the QR code substantially larger, increasing in size each time a client was added.

To get around it, when running the script again, it'd offer 10.66.66.2 again, so I just removed the 2 and typed 3. I did the same for the IPv6 address.

The resulting profile had both the .2 and the .3 addresses for the client, so I just removed the .2 stuff and it worked. I very much doubt this is a proper way of doing it, but it worked.

LloydGSR avatar Aug 07 '21 11:08 LloydGSR