IPSEC AND WINDOWS 2000

Shortcuts:
Creating a p12 certificate
Configuration for Windows 2000
Back to Top

Assumptions and notes:

Conventions of this document:

This font and colour is to indicate screen output
This font indicates information typed by the user 
This font and colour represents data within files, either edited or produced
This is a comment
This font and color represent filenames
This text is for clarification
This is the colour of links
And this is the colour of normal text.

Back to Top

Creating a .p12 certificate

You've already got your key pair from following this document and they are named host.public.pem and host.private.key respectably

Now you need to copy it over to your windows machine. The copying needs to be secure - scp, sftp or floppy disk please.

Back to Top

Installing IP Sec on Windows 2000

Most of this is stolen from http://www.natecarlson.com/include/showpage.php?cat=linux&page=ipsec-x509

Create a IPSEC + Certificates MMC

Add the certificate

Next, create/edit the configuration file ipsec.conf :

conn %default
	dial=

conn acer
	left=%any
	right=192.168.68.1
	rightca="C=AU, S=WA, L=Perth, O=UWA, OU=CS, CN=wireless, Email=wireless@cs.uwa.edu.au"
	rightsubnet=*
	network=auto
	auto=start
	pfs=yes

The rightca field is the information produced from :


but reformatted. ie) becoming :

  • The IP in the right= field is the IP address of the other side of the tunnel. In our case it is our gateway.

    Once that is up, you can start the tunnel by typing "ipsec" and you should see something like the following:

    C:\Temp\ipsec>ipsec
    IPSec Version 2.1.4 (c) 2001,2002 Marcus Mueller
    Getting running Config ...
    Microsoft's Windows 2000 identified
    Host name is: acer
    No RAS connections found.
    LAN IP address: 192.168.68.80
    Setting up IPSec ...
    
            Deactivating old policy...
            Removing old policy...
    
    Connection acer:
            MyTunnel     : 192.168.68.80
            MyNet        : 192.168.68.80/255.255.255.255
            PartnerTunnel: 192.168.68.1
            PartnerNet   : *
            CA (ID)      : C=AU, S=WA, L=Perth, O=UWA, OU=CS, CN=Fred, Em...
            PFS          : y
            Auto         : start
            Auth.Mode    : MD5
            Rekeying     : 3600S/50000K
            Activating policy...
    
    If you then try to ping across the link, you should be told "Negotiating IP security" a few times, then it will start to work

    To check the link status, you can use "IPSecmon" command to look at current security associations. You should see something like:

    Image goes here


    Back to Top

    Questions?