Hi,
the documentation about restoring a backup is incomplete: https://docs.pivpn.io/wireguard/#migrating-pivpn-wireguard
After setting up a new pivpn instance and restoring the backup the following issues arise:
- The
pivpnNET in /etc/pivpn/wireguard/setupVars.conf seems to be chosen randomly during initial setup. So it will differ from the one that is used in the backup in /etc/wireguard/wg0.conf. You need to edit /etc/pivpn/wireguard/setupVars.conf to set it to the value, that is used in the backup.
- Also the iptables rules contain this network and must be changed. On Alpine Linux you have to edit
/etc/iptables/rules-save and change it to the one from backup.
- Restart wg-quick and iptables services or reboot.
Hi,
the documentation about restoring a backup is incomplete: https://docs.pivpn.io/wireguard/#migrating-pivpn-wireguard
After setting up a new pivpn instance and restoring the backup the following issues arise:
pivpnNETin/etc/pivpn/wireguard/setupVars.confseems to be chosen randomly during initial setup. So it will differ from the one that is used in the backup in/etc/wireguard/wg0.conf. You need to edit/etc/pivpn/wireguard/setupVars.confto set it to the value, that is used in the backup./etc/iptables/rules-saveand change it to the one from backup.