|
| 1 | +--- |
| 2 | +meta: |
| 3 | + title: Fix broken VPN when switching OpenVPN Instance to routed IP |
| 4 | + description: This page helps you recover VPN functionality when switching your OpenVPN Instance to routed IP |
| 5 | +content: |
| 6 | + h1: Fix broken VPN when switching OpenVPN Instance to routed IP |
| 7 | + paragraph: This page helps you recover VPN functionality when switching your OpenVPN Instance to routed IP |
| 8 | +tags: openvpn instance routed ip |
| 9 | +dates: |
| 10 | + validation: 2024-10-11 |
| 11 | + posted: 2024-10-11 |
| 12 | +categories: |
| 13 | + - compute |
| 14 | +--- |
| 15 | + |
| 16 | +When switching an Instance created with the OpenVPN InstantApp to routed IP, the configured VPN will fail to work after the reboot. This is caused by a bug in a script that has been fixed on newer versions of the OpenVPN image. |
| 17 | + |
| 18 | +This can now be fixed by installing a new version of the OpenVPN scripts, which has been packaged in Scaleway's stable PPA and contains the fixed script. |
| 19 | + |
| 20 | +You can also avoid this situation altogether by installing the package prior to moving to a routed IP. |
| 21 | + |
| 22 | +## Your Instance has not been rebooted |
| 23 | + |
| 24 | +1. Add Scaleway's stable PPA |
| 25 | + |
| 26 | +```sh |
| 27 | +add-apt-repository ppa:scaleway/stable |
| 28 | +``` |
| 29 | +2. Add the ovpn-scripts package containing the new scripts |
| 30 | + |
| 31 | +```sh |
| 32 | +apt -y install ovpn-scripts |
| 33 | +``` |
| 34 | + |
| 35 | +From this point on, your Instance may be safely rebooted and you will no longer lose VPN functionality. |
| 36 | + |
| 37 | +## Your Instance has rebooted and the VPN service no longer works. |
| 38 | + |
| 39 | +1. Add Scaleway's stable PPA |
| 40 | + |
| 41 | +```sh |
| 42 | +add-apt-repository ppa:scaleway/stable |
| 43 | +``` |
| 44 | +2. Add the ovpn-scripts package containing the new scripts |
| 45 | + |
| 46 | +```sh |
| 47 | +apt -y install ovpn-scripts |
| 48 | +``` |
| 49 | + |
| 50 | +3. Reboot your Instance. |
| 51 | + |
| 52 | +Once rebooted, your VPN service will be available. |
| 53 | + |
| 54 | +<Message type="important"> |
| 55 | + OpenVPN images published after November 9th 2023 already contain the fixed script and do not need to be modified. |
| 56 | +</Message> |
| 57 | + |
0 commit comments