The RPN VPN

This service allows you the connection to your RPN group using a VPN.

The VPN is based on OpenVPN to ensure an easy configuration on your side.

You can add the VPN server to your RPN group as any other server.

Key benefits

With the RPN VPN you can:

  • Connect yourself from anywhere in your totally secure and private network
  • Connect servers not having a RPN interface to the RPN

Setting up the RPN VPN

At first you need to order a RPN-VPN in your management console. Click on “RPN” in the menu on the top, then at “RPN VPN” to see a summary of your RPN VPN services. You can also order a new one on this page.

On this page you can also see the status of your RPN VPN services.

You can see the details of a RPN VPN server by clicking on “configuration”.

To use your RPN VPN server in your RPN group, you need to add it to your group as described in the documentation about the RPN

Configuation on your server

At first, you need to have these informations available:

  • IP of the Online.net VPN server
  • CA Certificate
  • Client Certificate
  • .key Certificate
  • Password

All certificates have to be present on the server that has to be connected with the Online.net VPN server.

Linux

You need to start with the installation of OpenVPN

  root@iloveponeytelecom:~# apt-get install openvpn

Edit the client configuration of OpenVPN:

  root@iloveponeytelecom:/etc/openvpn# cat client.conf
  client
  dev tun
  ;proto tcp
  proto udp
  float
  remote <IP of the Online.net VPN server> 1194
  nobind
  persist-key
  persist-tun
  ca <ca.crt>
  cert <cert.crt>
  key <cert.key>
  askpass <password file>
  ns-cert-type server
  comp-lzo
  verb 3
  

In the configuration file you need to configure:

  • <IP of the Online.net VPN server>: IP of the Online.net 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

To autostart the VPN at the start of the server, you need to edit the file /etc/default/openvpn and insert the line:

  AUTOSTART="client"

This line allows to autostart OpenVPN with the config file located at /etc/openvpn/client.conf

After the connection to the Online.net VPN server has been established, you should check if you can see a new interface, using your RPN VPN IP:

  root@iloveponeytelecom:/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

There will be also new routes appear for the RPN:

  root@iloveponeytelecom:/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.