Introduction

I was trying to setup a Net-to-Net VPN between 2 IPCop boxes with no much success. I was using the Short Howto on the X.509 VPN.

The procedure is relatively simple, but sometimes it gets confusing which side is what. If you don't do everything right, it does not work and it is difficult to understand what is wrong.

I had to do it 3 times to get it right. As a result I wrote this detailed step-by-step how-to.

Hope it is useful for other people.

---
Iassen Hristov

Scenario

We have 2 IPCop boxes, both are running the latest version as of this writing – 1.4.2 (this how-to should work for later 1.4 versions as well)

We want to make an IPSec VPN between the 2 internal networks protected by the 2 IPCop boxes.



Network diagram

GREEN1 -- ipcop1 ------------- Internet --------------------- ipcop2 -- GREEN2







Detailed step-by-step instructions

Preparation

  1. On ipcop1:

  1. On ipcop2:

Generate Root/Host Certificates

  1. On ipcop1: Hit the “Generate Root/Host Certificates” button and fill the following values:

  1. On ipcop2: Hit the “Generate Root/Host Certificates” button and fill the following values:

Upload the CA Certificates

In this step you are letting the 2 IPCop boxes know about the other CA (Certificate Authority), so that they can trust the certificates issued by the other box.

  1. On ipcop1:

  1. On ipcop2:

Create connections

  1. On ipcop1: Hit the “Add” button in the middle panel. On the next screen select “Net-to-Net Virtual Private Network” for the “Connection type” and fill the following values:

  1. On ipcop2 (everything is reversed): Hit the “Add” button in the middle panel. On the next screen select “Net-to-Net Virtual Private Network” for the “Connection type” and fill the following values:



Important note: As some people have pointed out, it is essential to have your clock synchronized to accurate time on both machines, otherwise you might have issues.
Here is one case
> My clock was a few hours ahead, the certs I was generating were yet
> to become valid, and I was getting a very uniformative failure that
> my CA was not available for my host verification.


Revision history of this document
Description Author Date Version
Initial version IH 13-Feb-2005 0.1
Added note about time synchronization and version table IH 05-Sep-2006 0.2