Project

General

Profile

Frequently Asked Questions (FAQ) » History » Version 3

Martin Willi, 11.03.2009 23:37

1 1 Martin Willi
= Frequently Asked Questions =
2 1 Martin Willi
3 1 Martin Willi
'''Q:''' ''I'm trying to set up a VPN tunnel with a ZyXELL/Linksys/X router but the other side keeps on telling me "no proposal chosen" when strongSwan initiates the connection.''
4 1 Martin Willi
5 1 Martin Willi
'''A:''' Make sure that the peer supports all the algorithms (including the key lengths) which strongSwan proposes for IKE and ESP. In terms of IKE, the proposal consists of the following parts: Encryption algorithm, hash algorithm (PRF) and DH group. In terms of ESP the proposal includes the following: Encryption algorithm, hash algorithm, pfs group (DH group) and '''compression algorithm'''. There are lots of IPSec implementations out there that do '''not''' support compression or have implemented it erronously. So the first thing to try in this situation is to switch compression off on the peer. strongSwan's default setting is
6 1 Martin Willi
{{{
7 1 Martin Willi
compress=no
8 1 Martin Willi
}}} 
9 1 Martin Willi
See also Chapter [http://www.strongswan.org/docs/readme4.htm#section_14.1 14.1 Authentication and encryption algorithms] of the strongSwan documentation. It has good information about the relevant parameters.
10 2 Martin Willi
11 2 Martin Willi
'''Q:''' ''I'm getting the error message "no RSA public key known for '....' ". What am I doing wrong? ''
12 2 Martin Willi
13 2 Martin Willi
'''A:''' If you are using RSA based signatures for authentication strongSwan needs to have the peer's RSA public key in order to verify its authentication. This public key can be provided either by using the {{{rightrsasigkey}}} directive in the configuration file which was popular with FreeS/WAN or it can be extracted from the peer's X.509 certificate. This certificate can in turn be preloaded via the {{{rightcert}}} directive if it is available locally or it can be requested from the remote end by a ''certificate request''. Now if the certificate is missing one reason might be that the remote end refused to send it. Another reason could be that strongSwan did not send a ''certificate request''. This happens if you set the {{{nocrsend}}} option to {{{yes}}}. The Astaro Security Gateway which uses strongSwan behind the scene is known to do that. In order to make the IPSec connection work in that scenario you need to set {{{leftsendcert}}} to {{{yes}}} on the other end. With {{{leftsendcert=yes}}} strongSwan sends its certificate across even if no ''certificate request'' was received. This helps to interoperate with some misconfigured peers.
14 3 Martin Willi
15 3 Martin Willi
'''Q:''' ''I want to set up strongSwan to interoperate with Microsoft Windows using L2TP/IPsec. I'm getting the error message "NAT-Traversal: Transport mode disabled due to security concerns" which results in strongSwan sending an encrypted notification BAD_PROPOSAL_SYNTAX''
16 3 Martin Willi
17 3 Martin Willi
'''A:''' Here is a quote from strongSwan lead developer Andres Steffen on how to deal with this problem:
18 3 Martin Willi
19 3 Martin Willi
NAT-Traversal with IPsec transport mode has some inherent security risks.
20 3 Martin Willi
Since Microsoft doesn't care about this please compile strongSwan with the option
21 3 Martin Willi
{{{
22 3 Martin Willi
./configure  --enable-nat-transport
23 3 Martin Willi
}}}
24 3 Martin Willi
end of quote
25 3 Martin Willi
26 3 Martin Willi
'''Q:''' ''Does strongSwan support IKEv1 Aggressive Mode?''
27 3 Martin Willi
28 3 Martin Willi
'''A:''' Quote from Andreas Steffen: "No, strongSwan does '''not''' support IKEv1 Aggressive Mode and '''never''' will. Otherwise we would have called the project "weakSwan". "