New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[General Issue]: backup imported successfully, but no connection possible (0 byte received) #1763
Comments
Please run troubleshooting steps: https://docs.pivpn.io/faq/#how-do-i-troubleshoot-connection-issues Is the public IP of the server up to date? |
Hello, I have encountered the same issue you have described here. As you can see in the debug log, pivpnNET is configured with the following value:
While your clients addresses are 10.144.242.x. If you check closely, the new client you created contains:
Which corresponds to the network defined in the pivpnNET variable, meaning that the network rules are installed for the new client and not the old clients. To fix this issue, you can go to Next, go to Now, if you run the debug command again, it will prompt you if you want to fix iptables masquerade/forward rule. After that you can just reboot, and the new rules should be applied, making the old clients work again. |
I've also just run into this when re-configuring PiVPN. @David-Antunes 's steps are what I needed but it took me a while to figure it out myself before I found them here. Having skimmed through the documentation site I found the troubleshooting steps rather hidden. I didn't spot the debug script ( I've proposed a few minor alterations to the page which would have helped me skim through and find the command, but ultimately I would consider splitting the FAQ into two pages - one with questions and answers, the second with the more detailed troubleshooting info. I'll propose that in a second PR |
Pre-archive closing, more information here |
In raising this issue I confirm that
Describe the issue
After a pivpn backup on server 1 and a successful migration to server 2, no VPN connection can be established via Wireguard. The connection is established with the client, but no data is received (data is only sent).
The fact that a connection was established can also be traced under pivpn -c.
So all migrated profiles cannot establish a connection. However, if I create a new profile, then the VPN connection works. So the error must be in the migration/backup process.
Expected behavior
Please describe the steps to replicate the issue
Have you taken any steps towards solving your issue?
Screenshots
No response
Where did you run pivpn?
Raspberry Pi 3
Please provide your output from
uname -a
Linux docker-pi-2 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
Details about Operative System
Installation
Profile / Client creation
Debug output
The text was updated successfully, but these errors were encountered: