Networking Forums

Networking Forums > Computer Networking > Linux Networking > IPSec with Racoon: Roadwarrior-Gateway Setup

Reply
Thread Tools Display Modes

IPSec with Racoon: Roadwarrior-Gateway Setup

 
 
Marco Ender
Guest
Posts: n/a

 
      05-04-2009, 04:28 PM
Hi all,

hopefully someone can help me with my following configuration problem
of ipsec-tools, racoon and routing. I'd like to create a new private
network with some "roadwarrior" systems (except they have known
ip-adresses and should NOT get new virtual adresses on connection but
use their preconfigured ones) and a gateway with other systems
behind it.


[System A] [System B - Gateway]
"Public" Adress: "Public" Adress:
192.168.1.1 192.168.2.2
"Private" Adress: "Private" Adresses:
10.0.0.1 ============================= 10.0.0.x

I already managed to get transport mode with certificates between two
public adresses work, but i really have problems to make the above
configuration work, especially regarding the routing and setting the
correct spd's (do i use the private adresses or the public ones...).
Any link to an example would be great.

The relevant parts of my current transport-mode configurations for one
host are:

/etc/ipsec-tools.conf:
----------------------
spdadd 192.168.1.1 192.168.2.2 any -P out ipsec esp/transport//require;
spdadd 192.168.2.2 192.168.1.1 any -P in ipsec esp/transport//require;

/etc/racoon/racoon.conf:
------------------------
remote 192.168.2.2 {
exchange_mode main;
certificate_type x509 "host-cert.pem" "host-key.pem";
verify_cert on;
my_identifier asn1dn;
peers_identifier asn1dn;
proposal {
encryption_algorithm 3des;
hash_algorithm sha1;
authentication_method rsasig;
dh_group modp1024;
}
}
sainfo address 192.168.1.1 any address 192.168.2.2 any {
pfs_group modp1024;
encryption_algorithm aes,3des;
authentication_algorithm hmac_sha1,hmac_md5;
compression_algorithm deflate;
}
# Extra sainfo for port 500 needed, taken from
# <http://bugs.debian.org/341398#msg69>
sainfo address 192.168.1.1[500] any address 192.168.2.2[500] any {
pfs_group modp1024;
encryption_algorithm aes,3des;
authentication_algorithm hmac_sha1,hmac_md5;
compression_algorithm deflate;
}

tia

Marco
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPSec racoon/cisco problem Vittorio Talamo Linux Networking 0 07-10-2008 11:23 AM
IPsec tunnel using racoon dee Linux Networking 2 07-16-2007 08:53 AM
Linux as NAT gateway to IPSEC server deja3-user@bitrealm.com Linux Networking 3 09-12-2005 04:38 AM
Help! Ipsec-tools/Racoon link through NAT .. "ip route" fails Sundial Services Linux Networking 12 11-28-2004 06:33 PM
PPTP <-> IPSEC gateway? Dan Stromberg Linux Networking 1 10-18-2004 06:25 PM



1 2 3 4 5 6 7 8 9 10 11