Networking Forums

Networking Forums > Computer Networking > Linux Networking > VPN with racoon Phase 2 issue

Reply
Thread Tools Display Modes

VPN with racoon Phase 2 issue

 
 
xscream@gmail.com
Guest
Posts: n/a

 
      02-29-2008, 12:44 PM
Hi,
I want to established an Ipsec site to site vpn between redhat server
and Juniper Netscreen.
I know how to do it on netscreen.

172.30.99.0/24
IPSEC 172.30.98.0/24
Redhat>10.2.120.3/22========10.2.121.100/22<Juniper

My proposal on netscreen side is :
Phase 1:PreSharedKey, DH_G2, 3des, Sha1
Phase 2:nopfs, esp, des, md5, liftetime 3600s

Here is the configuration file of racoon :

path include "/etc/racoon";
path pre_shared_key "/etc/racoon/psk.txt";
path certificate "/etc/racoon/certs";
sainfo anonymous
{
lifetime time 3600 seconds;
encryption_algorithm des;
authentication_algorithm hmac_md5;
compression_algorithm deflate;
}
remote 10.2.121.100
{
exchange_mode aggressive, main;
my_identifier address;
proposal {
encryption_algorithm 3des;
hash_algorithm sha1;
authentication_method pre_shared_key;
dh_group 2;
}
}

and here is my ifcfg-ipsec0
TYPE=IPSEC
ONBOOT=no
IKE_METHOD=PSK
AH_PROTO=none
SRCGW=172.30.99.1
DSTGW=172.30.98.1
SRCNET=172.30.99.0/24
DSTNET=172.30.98.0/24
DST=10.2.121.100

On netscreen, I have the following debug message :
IKE<10.2.120.3> SA life type = seconds
IKE<0.0.0.0 > SA life duration (TV) = 3600
IKE<0.0.0.0 > encap mode from peer = 1.
IKE<0.0.0.0 > encap mode after converting it to private value
= 1.
IKE<10.2.120.3> Phase 2 received:
IKE<10.2.120.3> atts<00000002 00000002 00000000 00000001 00000001
00000000>
IKE<10.2.120.3> proto(2)<AH>, ah(2)<AH_MD5>, auth(1)<MD5>,
encap(1)<TUNNEL>, group(0)
IKE<10.2.120.3> expect [0]:
IKE<10.2.120.3> atts<00000003 00000000 00000002 00000001 00000001
00000000>
IKE<10.2.120.3> proto(3)<ESP>, esp(2)<ESP_DES>, auth(1)<MD5>,
encap(1)<TUNNEL>, group(0)
IKE<10.2.120.3> proposal not acceptable, but no more proposal in
payload.
IKE<10.2.120.3> Phase 2: Rejected proposals from peer. Negotiations
failed.

As you can see, there is no acceptable proposal, but normally it
should.
It seems that racoon send proposal with AH, MD5 but Netscreen expect
only ESP des...

I must missed something in racoon configuration, so if someone can
tell me where to look.
 
Reply With Quote
 
 
 
 
xscream@gmail.com
Guest
Posts: n/a

 
      02-29-2008, 12:52 PM
With Redhat ES4, does I have to deal with setkey and ipsec.conf
(ipsec.conf doesn't exist on the server) ?
At the moment, I only configured ifcfg-ipsec0 and racoon.conf...
 
Reply With Quote
 
Joe Beasley
Guest
Posts: n/a

 
      03-01-2008, 03:30 AM
(E-Mail Removed) wrote:
> With Redhat ES4, does I have to deal with setkey and ipsec.conf
> (ipsec.conf doesn't exist on the server) ?
> At the moment, I only configured ifcfg-ipsec0 and racoon.conf...

Use setkey for the policies. That's the proposal that is missing.
 
Reply With Quote
 
xscream@gmail.com
Guest
Posts: n/a

 
      03-03-2008, 08:28 AM
On 1 mar, 05:30, Joe Beasley <jbeas...@somwhere.com> wrote:
> xscr...@gmail.com wrote:
> > With Redhat ES4, does I have to deal with setkey and ipsec.conf
> > (ipsec.conf doesn't exist on the server) ?
> > At the moment, I only configured ifcfg-ipsec0 and racoon.conf...

>
> Use setkey for the policies. That's the proposal that is missing.


Ok Joe,
but are you sure that in redhat 4 update 4 we have to deal with
setkey ???
 
Reply With Quote
 
xscream@gmail.com
Guest
Posts: n/a

 
      03-03-2008, 02:04 PM
On 1 mar, 05:30, Joe Beasley <jbeas...@somwhere.com> wrote:
> xscr...@gmail.com wrote:
> > With Redhat ES4, does I have to deal with setkey and ipsec.conf
> > (ipsec.conf doesn't exist on the server) ?
> > At the moment, I only configured ifcfg-ipsec0 and racoon.conf...

>
> Use setkey for the policies. That's the proposal that is missing.


Hello again,
tried everything, but I still have only one proposal :
proto(2)<AH>, ah(2)<AH_MD5>, auth(1)<MD5>, encap(1)<TUNNEL>, group(2)
And I would like
proto(3)<ESP>, esp(3)<ESP_3DES>, auth(2)<SHA>, encap(1)<TUNNEL>,
group(2)

Where can I set ESP and not AH ???
 
Reply With Quote
 
Joe Beasley
Guest
Posts: n/a

 
      03-04-2008, 03:14 AM
(E-Mail Removed) wrote:
> On 1 mar, 05:30, Joe Beasley <jbeas...@somwhere.com> wrote:
>> xscr...@gmail.com wrote:
>>> With Redhat ES4, does I have to deal with setkey and ipsec.conf
>>> (ipsec.conf doesn't exist on the server) ?
>>> At the moment, I only configured ifcfg-ipsec0 and racoon.conf...

>> Use setkey for the policies. That's the proposal that is missing.

>
> Hello again,
> tried everything, but I still have only one proposal :
> proto(2)<AH>, ah(2)<AH_MD5>, auth(1)<MD5>, encap(1)<TUNNEL>, group(2)
> And I would like
> proto(3)<ESP>, esp(3)<ESP_3DES>, auth(2)<SHA>, encap(1)<TUNNEL>,
> group(2)
>
> Where can I set ESP and not AH ???

Not sure about the RHES4. I use ubuntu server and freebsd to make
connections to cisco routers and pixs. Both use setkey.
 
Reply With Quote
 
xscream@gmail.com
Guest
Posts: n/a

 
      03-04-2008, 12:45 PM
On 4 mar, 05:14, Joe Beasley <jbeas...@somwhere.com> wrote:
> xscr...@gmail.com wrote:
> > On 1 mar, 05:30, Joe Beasley <jbeas...@somwhere.com> wrote:
> >> xscr...@gmail.com wrote:
> >>> With Redhat ES4, does I have to deal with setkey and ipsec.conf
> >>> (ipsec.conf doesn't exist on the server) ?
> >>> At the moment, I only configured ifcfg-ipsec0 and racoon.conf...
> >> Use setkey for the policies. That's the proposal that is missing.

>
> > Hello again,
> > tried everything, but I still have only one proposal :
> > proto(2)<AH>, ah(2)<AH_MD5>, auth(1)<MD5>, encap(1)<TUNNEL>, group(2)
> > And I would like
> > proto(3)<ESP>, esp(3)<ESP_3DES>, auth(2)<SHA>, encap(1)<TUNNEL>,
> > group(2)

>
> > Where can I set ESP and not AH ???

>
> Not sure about the RHES4. I use ubuntu server and freebsd to make
> connections to cisco routers and pixs. Both use setkey.


Ok thank you Joe, actually, you're right, I have to use setkey, so I
use this :

flush;
spdflush;
spdadd 172.30.97.0/24 172.30.96.0/24 any -P out ipsec esp/tunnel/
10.2.120.4-10.2.121.100/require;
spdadd 172.30.96.0/24 172.30.97.0/24 any -P in ipsec esp/tunnel/
10.2.121.100-10.2.120.4/require;

and everything is find now.
 
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
Configure PEAP to send Anonymous user in Phase 1 WLAN_Guy Wireless Networks 0 04-30-2008 05:56 PM
Cisco to phase-out Linksys brand ps56k Wireless Internet 0 04-22-2008 07:03 PM
Racoon with SNAT Can2002 Linux Networking 1 08-10-2005 05:25 PM
Ofcom: Strategic Review of Telecommunications Phase 2 published Sunil Sood Broadband 0 11-18-2004 09:29 AM
Racoon routing Hans Fugal Linux Networking 0 06-03-2004 07:59 PM



1 2 3 4 5 6 7 8 9 10 11