Page 1 of 1

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

Posted: Tue Apr 11, 2006 4:31 pm
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.