Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Openswan Host-Host Tunnel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
-Blade-
n00b
n00b


Joined: 19 Sep 2003
Posts: 23
Location: Germany

PostPosted: Sat May 07, 2005 3:59 pm    Post subject: Openswan Host-Host Tunnel Reply with quote

I'd like to setup an openswan ipsec tunnel between two hosts:

host1 <---> host2

host1:
default ip -> eth1 10.10.0.1
ipsec tunnel ip -> eth1:1 10.10.1.1

host2:
default ip -> eth0 10.10.0.2
ipsec tunnel ip -> eth0:1 10.10.1.2

The connection between the "default ip's" is unencrypted. The connection between the alias ip's should be an ipsec tunnel.

Does anybody have an idea for an example ipsec.conf ?
_________________
Open Minds - Open Source - Open Future
Back to top
View user's profile Send private message
-Blade-
n00b
n00b


Joined: 19 Sep 2003
Posts: 23
Location: Germany

PostPosted: Mon May 09, 2005 9:41 pm    Post subject: Reply with quote

Mh... it is "easier", than i thought. :)

Just use the HOWTO and edit the appropriate settings.

/etc/ipsec/ipsec.conf
Code:

version 2.0     # conforms to second version of ipsec.conf specification

config setup

include /etc/ipsec/ipsec.d/examples/no_oe.conf

conn host1-host2
        left=10.10.1.1
        leftid=@host1
        leftrsasigkey=[somekey]
        right=10.10.1.2
        rightid=@host2
        rightrsasigkey=[somekey]
        auto=add


Kernel-Config:
-> Cryptographic options
-> Cryptographic API [all modules]
_________________
Open Minds - Open Source - Open Future
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum