Roadwarrior to IPCOP via OpenVPN
This tutorial will describe how to get an OpenVPN VPN working between a roadwarrior and IPCOP using Zerina. Before we begin, make sure that your IPCOP setup does not use the following common private IP subnets:
- 192.168.0.x/24
- 192.168.1.x/24
- 10.0.x.x/16
If your IPCOP setup does use one of the above subnets, change it before continuing. This will prevent issues when your roadwarrior is at a WIFI hotspot which uses one of the above subnets.
- Download the latest version of Zerina. As of this writing, the latest stable version is ZERINA-0.9.4i
- Copy Zerina to IPCOP
- From the console:
- type ’tar -zxvf ZERINA-0.9.4i’ (or current version)
- type ’./install’
- From the web interface, goto ’VPNs – OpenVPN’
You may have to refresh your page before OpenVPN shows up - Under ’Global Settings’, enter the appropriate information
- Make sure ’OpenVPN on RED’ is checked
If you have Blue and/or Orange and want OpenVPN access, check as required - Next to ’OpenVPN Subnet(e.g. 10.0.10.0/255.255.255.0)’ set a subnet that will not overlap with any IPCOP subnet or the above common subnets. I suggest you use something like 10.100.0.0/255.255.255.0.
- Click ’Save’
- Under ’Certificate Authorities:’ click ’Generate Root/Host Certificates’
- Under ’Generate Root/Host Certificates:’ enter the appropriate information
- Under ’Organization Name:’ enter your information
- Under ’IPCOP’s Hostname:’ enter your IPCOP’s Red address or hostname
- Click ’Generate Root/Host Certificates’
- Be patient, this step may take time
- Under ’Global settings’ click ’Start OpenVPN Server’
- Under ’Client status and control:’ click ’Add’
- Under ’Connection Type’ select ’Host-to-Net Virtual Private Network (RoadWarrior)’ and click ’Add’
- Under ’Connection:’ enter the appropriate information
- Next to ’Name:’ enter a name for the connection
- Make sure ’Enabled’ is checked
- Next to ’Remark’ enter a comment
- Under ’Authentication:’ enter the appropriate information
- Select ’Generate a certificate:’
- Next to ’User’s Full Name or System Hostname:’ enter the user’s name
- Next to ’PKCS12 File Password:’ enter a password
The password here will be required before OpenVPN will attempt to connect to IPCOP - Next to ’PKCS12 File Password: (confirmation)’ re-enter your password
- Click ’Save’
- Repeat steps 10 through 14 for additional OpenVPN clients
