LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2010, 01:04 PM   #1
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184

Rep: Reputation: 28
IPSec "connect: No such process"


I am trying to setup IPSec with setkey, but after execute the following command on both machines
Code:
setkey -f /etc/ipsec.conf
they cannot ping each other, and I get the following error when trying to ping 192.168.6.86 from 192.168.6.14.
Code:
connect: No such process
If I try to ping from 192.168.6.14 from 192.168.6.86 the ping just never gets a response.

Here are my ipsec.conf for each machine:
Machine 192.168.6.86
Code:
#!/usr/sbin/setkey -f

# Configuration for 192.168.1.100

# Flush the SAD and SPD
flush;
spdflush;

# Attention: Use this keys only for testing purposes!
# Generate your own keys!

# AH SAs using 128 bit long keys
#add 192.168.6.86 192.168.6.14 ah 0x200 -A hmac-md5 
#0xc0291ff014dccdd03874d9e8e4cdf3e6;
#add 192.168.6.14 192.168.6.86 ah 0x300 -A hmac-md5 
#0x96358c90783bbfa3d7b196ceabe0536b;

# ESP SAs using 192 bit long keys (168 + 24 parity)
add 192.168.5.86 192.168.5.14 esp 0x1000 -m transport -E aes-ctr
"ipv6readylogoaes2to1" -A hmac-sha1 "ipv6readylogsha12to1";
#0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831;
add 192.168.5.14 192.168.5.86 esp 0x2000 -m transport -E aes-ctr
"ipv6readylogoaes1to2" -A hmac-sha1 "ipv6readylogsha11to2";
#0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df;

# Security policies
spdadd 192.168.6.86 192.168.6.14 any -P out ipsec
           esp/transport//require;


spdadd 192.168.6.14 192.168.6.86 any -P in ipsec
           esp/transport//require;
Machine 192.168.6.14:
Code:
#!/usr/sbin/setkey -f

# Configuration for 192.168.1.100

# Flush the SAD and SPD
flush;
spdflush;

# Attention: Use this keys only for testing purposes!
# Generate your own keys!

# AH SAs using 128 bit long keys
#add 192.168.6.86 192.168.6.14 ah 0x200 -A hmac-md5 
#0xc0291ff014dccdd03874d9e8e4cdf3e6;
#add 192.168.6.14 192.168.6.86 ah 0x300 -A hmac-md5 
#0x96358c90783bbfa3d7b196ceabe0536b;

# ESP SAs using 192 bit long keys (168 + 24 parity)
add 192.168.5.86 192.168.5.14 esp 0x1000 -m transport -E aes-ctr
"ipv6readylogoaes2to1" -A hmac-sha1 "ipv6readylogsha12to1";
#0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831;
add 192.168.5.14 192.168.5.86 esp 0x2000 -m transport -E aes-ctr
"ipv6readylogoaes1to2" -A hmac-sha1 "ipv6readylogsha11to2";
#0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df;

# Security policies
spdadd 192.168.6.86 192.168.6.14 any -P in ipsec
           esp/transport//require;


spdadd 192.168.6.14 192.168.6.86 any -P out ipsec
           esp/transport//require;
If I do a
Code:
setkey -FP
on both machines they ping each other again. I'm thinking that there is some configuration issue with my ipsec.conf files.

Does anyone know how to resolve this issue?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need solution to "failed to fork PTY" and "error creating the child process" problems Gnusboy Linux - Newbie 4 01-02-2010 07:54 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
"failed to execute child process" "Input/output error" fl.bratu Fedora 4 12-15-2008 04:03 AM
Measure "CPU load" and "memory consumption" of a process DaneelGiskard Programming 3 08-30-2007 11:43 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration