Skip to content

Documentation about restoring a backup is incomplete #26

Description

@thenktor

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions