Bienvenido! - Willkommen! - Welcome!

Bitácora Técnica de Tux&Cía., Santa Cruz de la Sierra, BO
Bitácora Central: Tux&Cía.
Bitácora de Información Avanzada: Tux&Cía.-Información
May the source be with you!

Wednesday, November 7, 2012

OpenVPN Access Server Windows (VHD) Virtualization Version

http://openvpn.net/index.php/download.html
openvpn.net/index.php/access-server/download-openvpn-as-vm
Select the Virtual Appliance Windows (VHD) Version of OpenVPN Access Server to Begin Downloading

Using the OpenVPN Access Server Virtual Appliance For Windows (VHD) Virtualization Version
Release with Access Server v1.8.4
IntroductionOpenVPN Access Server is available as a Virtual Hard Disk for deployment on Windows. To use the virtual appliance, you must download the Virtual Hard Disk and run it with Hyper-V or Virtual PC (such as Hyper-V 2008 R2, Hyper-V 2008 R2).

In order to upgrade from OpenVPN Access Server 1.6.1 to 1.8.4 you will need to do the following:
1. Download the Appliance at the top of this page and configure it.
2. Run the following commands in the virtual machine command prompt:

wget http://swupdate.openvpn.net/as/openvpn-as-1.8.4-Ubuntu8.i386.deb
dpkg -i openvpn-as-1.8.4-Ubuntu8.i386.deb

The package is updated while preserving the configuration (including license information and all keys/certificates) from the previous Access Server installation.

Downloading and Running the Virtual Machine on Hyper-V

Once Hyper-V has been installed, download the OpenVPN Access Server virtual appliance. The
virtual appliance is distributed as a .ZIP archive file and may be obtained from the link at the top of this page.
After downloading the virtual appliance ZIP file, expand the ZIP file into the desired directory. On Windows, you can expand the ZIP archive by right-clicking on the file and selecting "Extract All".
To load the extracted virtual machine into your Hyper-V manager:
  1. Open up your Hyper-V Manager
    (in windows server 2008 this can be done by Navigating to: Start>Administrative Tools>Hyper-V Manager)
  2. Once the Hyper-V manager is loaded you can click: New>Virtual Machine (found at the top right of the Hyper-V Manager window)
  3. You will then be prompted to enter a name, create any name you desire. After this you will be prompted to enter in the desired memory (Minimum requirement: 256 Megabytes). You will then be prompted to select an Network adapter, ignore this for now, Linux require legacy adapters when running under Hyper-V.
  4. At the next window you will be prompted to create a Virtual Hard Drive, since we already have a Virtual Hard Disk created you will use this instead so check the radio button to enable the use of an existing Virtual Hard Disk. Now you need to browse and select the extracted OpenVPN-AS_1.6.1.vhd file. After this you can click finish.
  5. After Hyper-V manager has created the virtual machine you will need to setup a legacy adapter for this virtual machine. You can do so by selecting the newly created virtual machine and clicking the "Settings" link located near the bottom right of the Hyper-V Manager interface. Once the settings window is open navigate over the "Add Hardware" area (found near the top left of the settings window). Select "Legacy Network Adapter" and click add. Under the Network Menu select your Virtual Network. Keep the MAC Address info set to "Dynamic" after that you will need to click the check box that says "Enable spoofing of MAC Addresses". Click Apply proceed to the next step. *Note: If you are running Hyper-V 2008 (non-R2) you will not have the option to enable Mac Spoofing, instead you will need to use a mac address from your allocated mac addresses via the Virtual Network Settings in Hyper-V.
  6. Start the virtual machine if it does not start automatically. Next, click inside the appliance window to select it for input. (When the appliance window is selected, the mouse pointer will vanish. Press Control-ALT+Left Arrow to return to your computer.)

Initial Setup of Access Server

The first time the virtual appliance boots, you will be queried for some information. First, you must agree to the End User License Agreement (EULA). Next, you will be asked to enter some basic settings that the OpenVPN Access Server needs to initialize itself. These settings may be safely defaulted by pressing 'Enter'.
At the end of the boot sequence, the appliance window will turn to a blue background and show the URL of the appliance management interface. Enter this URL into a browser to continue the setup. You will likely receive a browser warning about the web server SSL certificate not being recognized. You can safely ignore these warnings.
On the appliance management interface, enter the username and password for the appliance. The initial credentials are:
Username: root
Password: openvpnas
See the Virtual Appliance section of the FAQ for information on how to change the root password.
The Admin Account for OpenVPN-AS needs to be setup through terminal by doing the following:
Change the password:
passwd openvpn
You will then be prompted to set a password for the user openvpn, after setting the password you can login to the Admin UI with the Username openvpn and the password you set.
Once logged in, you will be directed to the "System Information" page which gives you basic control over the virtual appliance. You can reboot, shut down, or change the network settings of the appliance.
Note:Keep in mind that the appliance will acquire its own IP address from DHCP that is separate from the IP address of the VMware host machine. You can use this DHCP-assigned address, or enter a fixed IP address under the "Network" tab.
The next step is to log into the OpenVPN Access Server Admin Web UI. On the "System Information" page, click on the "AS Admin Login" link located in the upper right corner of the page. You will receive another certificate-related browser warning at this point; that warning can also be ignored. At the Access Server Admin Web UI login page, enter the same username and password you entered previously for the appliance management interface.
Once logged in to the Access Server Admin Web UI, follow the instructions in the "Welcome to the Access Server Admin UI" information box to complete configuration of the Access Server.

No comments: