Skip to content

Commit f5cdf94

Browse files
authored
feat(instances): Fix broken VPN when switching openvpn instance to ro… (#3825)
1 parent 35f1e1e commit f5cdf94

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+

menu/navigation.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,10 @@
13911391
"label": "Fixing long delays when booting without a public IP",
13921392
"slug": "fix-long-delays-booting-without-public-ip"
13931393
},
1394+
{
1395+
"label": "Fixing broken VPN when switching OpenVPN Instance to routed IP",
1396+
"slug": "fix-broken-vpn-when-switching-openvpn-vm-to-routed-ip"
1397+
},
13941398
{
13951399
"label": "Fixing the user configuration of cloud-init on Debian 12",
13961400
"slug": "fix-cloud-init-debian12"

0 commit comments

Comments
 (0)