Connect To SecureClient VPN From Linux
Connect To SecureClient VPN From Linux
1. Download OpenSwan
2. Download the patch openswan-2.4.0-SecureClient.diff section and apply it
3. Compile and install software following OpenSwan documentation
4. Obtain firewall certificate using following procedure:
XXX: following has been tested for VPN-1 on UNIX only, please report if it's different for other
platforms
c. Copy the file cacert.pkcs7 to your linux box and convert it to PEM:
d. openssl pkcs7 -in cacert.pkcs7 -print_certs > certs.pem
Yes, openssl is required.
5. Once you have firewall certificates in PEM format pick out the RSA key:
a. Edit the resulting certs.pem file, there should be two certificates in it. Save them to
separate file, the first one (root CA) to /etc/ipsec.d/cacerts/rootca.pem and the second
one (firewall cert) under firewall.pem in your working directory. (I'm not absolutely sure
that the first cert is CA cert always, so you may verify the header, which for root CA should
look like this:
b. subject=/O=checkpoint.intranet.example.com..p9bkhs
and for firewall one like this:
subject=/O=checkpoint.intranet.example.com..p9bkhs/CN=rhl7 VPN Certificate
Note the CN= part)
c. Now go to your openswan source directory then follow to debian/fswcert and type:
d. make
e. make install
.
6. Construct ipsec.conf file using acquired rightrsasigkey, be sure to use rightid=@! not the output
of above command. The sample ipsec.conf is here:
7.
8. conn sc
9. leftid=@!
10. left=1.1.1.MyIP(it might be %defaultroute too ;)
11. leftxauthclient=yes
12. right=50.50.50.CheckPoint-IP
13. rightsubnet=192.168.0.0/16
14. rightrsasigkey=0x2E6A0CC18077BEB56462C62DB4BC9C... <= we got it earlier
15. rightxauthserver=yes
16. ikelifetime=8h
17. rekey=no
18. cpsc=yes
19.
Check twice for errors!!!
Please note, that there are certain things that don't work!:
1. There is is a timing issue. If your CP side requests reauthentication it doesn't work (yet?). You
have to shut down the tunnel and brig it up again reauthenticating (it's specially true for SecureID
authentication). We encourage you to set rekey=no and ikelifetime=8h so the Linux side does not
requests for rekeying.
2. CP Office Mode is not supported. That would require some serious OpenSwan modifications. If you
figure out how to deal with it send us a patch :)