Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a working racoon ipsec vpn setup on an ubuntu lucid server. To set it up, I just did an apt-get on the ipsectools package and configured the racoon.conf file.

If I take the exact same steps, but also install the racoon package in precise (it's separated from ipsec-tools in precise) and use an identical config, the racoon daemon won't even start.

If you set logging in racoon to debug, you see the following in the syslog:

Nov 21 00:42:02 vpnhub2 racoon: DEBUG: getsainfo params: loc='ANONYMOUS' rmt='ANONYMOUS' peer='NULL' client='NULL' id=1
Nov 21 00:42:02 vpnhub2 racoon: INFO: Resize address pool from 0 to 100
Nov 21 00:42:02 vpnhub2 racoon: DEBUG: open /var/run/racoon/racoon.sock as racoon management.
Nov 21 00:42:02 vpnhub2 racoon: INFO: x.x.x.x[4500] used for NAT-T
Nov 21 00:42:02 vpnhub2 racoon: INFO: x.x.x.x[4500] used as isakmp port (fd=6)
Nov 21 00:42:02 vpnhub2 racoon: INFO: x.x.x.x[500] used for NAT-T
Nov 21 00:42:02 vpnhub2 racoon: INFO: x.x.x.x[500] used as isakmp port (fd=7)
Nov 21 00:42:02 vpnhub2 racoon: DEBUG: pk_recv: retry[0] recv() 
Nov 21 00:42:02 vpnhub2 racoon: DEBUG: got pfkey X_SPDDUMP message
Nov 21 00:42:02 vpnhub2 racoon: DEBUG: pfkey X_SPDDUMP failed: No such file or directory

Racoon crashes shortly after you start it. It does this whether I use my config or the default one installed with the package.

I have tried this on a rackspace cloud server and a vm on virtualbox, using the 32bit and 64bit versions - same result.

Am I doing something wrong, or is the current version of racoon not working?

share|improve this question
    
What do you mean by "Racoon crashes"? –  Robie Basak Dec 21 '12 at 18:01
    
the process terminates immediately after the "pfkey X_SPDDUMP failed" message appears in the syslog. –  simon Jan 8 '13 at 17:01
    
I'm confused, is this precise or lucid? –  Braiam Sep 15 '13 at 19:42
add comment

1 Answer 1

up vote 1 down vote accepted

Racoon missd the pf key file. Specify this in you'rconfiguration file and racoon should work again. If it still doesn't work post your config file to pastebin.cim and share the link here.

share|improve this answer
    
Ahhhh brilliant, I'll look into this and get back to you. –  simon Sep 19 '13 at 10:34
    
Thanks, you were right. I manaully specified this in my config on precise. I'm nnot sure why that worked in Lucid though. –  simon Sep 25 '13 at 7:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.