OpenVPN access server
Another OpenVPN scenario involves connecting to OpenVPN Access Server and using the configuration information it provides to establish an OpenVPN tunnel to an OpenVPN server. The configuration for this scenario is very simple because the OpenVPN Access Server provides all the necessary VPN configuration information to the connecting host (the vRouter in this case). The following figure shows a configuration that uses OpenVPN Access Server.
To configure V2 to establish an OpenVPN tunnel to an OpenVPN server using an OpenVPN Access Server as shown in the previous figure, perform the following steps in configuration mode.
Step | Command |
---|---|
Create the vtun0 configuration node. |
|
Specify the OpenVPN Access Server IP address. |
|
Specify the username to be authenticated by OpenVPN Access Server. |
|
Specify the password to be authenticated by OpenVPN Access Server. |
|
Commit the change. |
|
Show the configuration. |
|
This example is valid for a scenario in which Autologin is enabled on the OpenVPN server for tunnel establishment. If Autologin is disabled, the following commands must be used to establish the tunnel:
- interfaces openvpnvtunx remote-configuration tunnel-username username
- interfaces openvpnvtunx remote-configuration tunnel-password password
To configure V2 to establish an OpenVPN tunnel to an OpenVPN server (with Autologin disabled) using OpenVPN Access Server as shown in the previous figure, perform the following steps in configuration mode.
Step | Command |
---|---|
Create the vtun0 configuration node. |
|
Specify the OpenVPN Access Server IP address. |
|
Specify the username to be authenticated by OpenVPN Access Server. |
|
Specify the password to be authenticated by OpenVPN Access Server. |
|
Specify the username required to establish the tunnel with the OpenVPN server. |
|
Specify the password required to establish the tunnel with the OpenVPN server. |
|
Commit the change. |
|
Show the configuration. |
|