How we configure VPN tunnel, based on Unix BSD/9.0/10.2 with Racoon and Cisco 2911.

Expected result, working tunnel with IPSec between FreeBSD and Cisco 2911

1. What about BSD interface?

Before you will read it you can check this vpn ipsec handbook and skip below text and make all yourself.

Most people didn't like to read something where somebody explain in details why we use this or this or this.
This specialist always like use codesnippets. And after copy / paste trying understand why this application / service or something like this is not work.
So, it means i will not explain you how it works. I will give you only general keys and show you step by step, what you should use.

You can find your racoon in /usr/local/etc/racoon
And this folder will be empty.
First of all you should create raccon.conf file and psk.txt
First file will be configuration for racoon and second one will stored our keys for vpn connections.

And it is psk.txt were we stored our shared key. If you lost while read this, we remember you
Cisco side:

crypto isakmp key YOUR_PASSWORD_HERE address X.X.X.X

And in psk.txt YOUR_PASSWORD_HERE should be the same.

Y.Y.Y.Y YOU_PASSWORD_HERE

4. What about IPSec

We will use IPSec for encryption our traffic in tunnel.
What we need fo this in our example. First of all we will create file /etc/ipsec.conf and put to this file specific information about which traffic we will encrypt.