Tuesday, February 5, 2008

021 no connection named [OpenSWAN]

Since it had been over a year since I had last used OpenSWAN I couldn't remember why this error occurred. Searching Google for 021 no connection named "blah" was not producing a fix. Finally, and I admit this a little embarrassed I read the manual and found that I had forgot to do after configured the /etc/ipsec.conf file.

user@machine ~> sudo ipsec auto --add myconnection


So if you see the following in the future don't forget to add the connection.

user@machine ~> sudo ipsec whack --name myconnection --initiate
021 no connection named "myconnection"

5 comments:

MotoCiclante said...

thank you very much. Your easy tip solved my problem.
Thanks again.
Davide Giordano

Joseph said...

Glad we could help.

mac said...

thanks, solved my problem quickly...

Cohabo said...

Thanks Joseph, you're still saving the day.

Chris

Deciimal said...

Thank you.. and a double Thank you...
Owe you abeer / Coffee..
Collections :) Where I am.. :)