Jump toUpdate content
How to use the RPN VPN with your Dedibox Servers
The RPN VPN service allows you to access machines inside your RPN from an external connection or from a Dedibox server having no RPN interface. It is based on OpenVPN and you can add the RPN VPN to your RPNv1 group like any other server.
The RPN VPN service allows you to:
- Connect from anywhere in your totally secure and private network
- Connect servers which do not have an RPN interface to the RPN
- You have an account and are logged into the Dedibox Console
- You have an RPN-compatible Dedibox dedicated server
- You have installed an OpenVPN client on your local computer
From the Dedibox Console, click on RPN in the menu on top of the page. Select RPN VPN to display a summary of your RPN VPN services.
Click Configure next to the RPN VPN service you want to configure. The RPN VPN information displays.Tip:
If you do not have any RPN VPN services yet, you can click Order RPN VPN directly on the page.
Download the certificate files for your RPN VPN. Click Show Password to display the password associated with your RPN VPN.Note:
To use your RPN VPN in your RPNv1 group, you have to add it to your group as an RPN server. For more information follow our RPN documentation.
To complete the following steps, you need to have the following infomation available on the client:
- IP of the RPN VPN server
- CA Certificate
- Client Certificate
- RPN VPN Password
Launch the installation of OpenVPN using the following command:
root@mydedibox:~# apt install openvpn
Edit the client configuration file
/etc/openvpn/client.confin a text editor. For example with
root@mydedibox:~# nano /etc/openvpn/client.conf
The configuration file looks like the following example:
remote <IP of the RPN VPN server> 1194
askpass <password file>
Set the following values in the configuration file:
<IP of the RPN VPN server>: IP of the RPN VPN server
<ca.crt>: Path to ca.crt
<cert.crt>: Path to the client .crt
<cert.key>: Path to the client .key
<password file>: Path to the file containing your password
Then save the file and exit the text editor.
To start the VPN automatically during the boot process of the server, edit the file
/etc/default/openvpnand insert the following line:
This line allows OpenVPN to start automatically with the configuration file located at /etc/openvpn/client.conf
Once the connection to the RPN VPN server has been established, you may check whether you can see a new interface, using your RPN VPN IP:
root@mydedibox:/etc/default# ifconfig tun0
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.90.250.25 P-t-P:10.90.250.26 Mask:255.255.255.255
You can also check if the routes for the RPN network have been set:
root@mydedibox:/etc/default# route -n | grep 10.90
10.90.0.0 10.90.250.26 255.255.0.0 UG 0 0 0 tun0
10.90.250.1 10.90.250.26 255.255.255.255 UGH 0 0 0 tun0
10.90.250.26 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
Now you can configure your server in your RPN group.