13

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?

3
  • What do you mean by "Racoon crashes"? Dec 21, 2012 at 18:01
  • the process terminates immediately after the "pfkey X_SPDDUMP failed" message appears in the syslog.
    – simon
    Jan 8, 2013 at 17:01
  • I'm confused, is this precise or lucid?
    – Braiam
    Sep 15, 2013 at 19:42

1 Answer 1

1

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.

2
  • Ahhhh brilliant, I'll look into this and get back to you.
    – simon
    Sep 19, 2013 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, 2013 at 7:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .