IPSec: "no preshared key found for..."

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

IPSec: "no preshared key found for..."

Post by ^rooker »

[PROBLEM]
OpenSwan 1.0.8 (Linux):

Trying to open a VPN connection by executing: "ipsec auto --up myconn" complains:
Can't authenticate: no preshared key found for `x.x.x.x' and `y.y.y.y'.
although there's a PSK line in "ipsec.secrets":

Code: Select all

x.x.x.x y.y.y.y: PSK "mysecret"

[SOLUTION]
Ipsec's pluto wasn't started correctly. In our case (using devil-linux), we simply had to run the "/etc/init.d/ipsec" startup script which initialized the whole thing.

Running "ipsec autio --up myconn" afterwards seemed to work then.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply