Hi colleagues,

according to
https://wiki.strongswan.org/projects/strongswan/wiki/IdentityParsing :

"If the string begins with @# the type is set to KEY_ID and the string
following that prefix is assumed to be the hex-encoded binary value of
the identity."

It seems, I understand incorrectly the statement above, because
configuration for the key-id 'aa' (where @#6161 stands for HEX codes of
twin 'a') -

ikev2-psk {
        [ ... ]
        remote {
                auth = psk
                id = @#6161
        }

do not work - StrongSwan do not consider this connection when choosing
between few.

What is the right way to describe id for PSK connection where remote
part uses key-id type, e.g. on Cisco it is "crypto isakmp identity
key-id aa"?

And which id need to be used in 'secrets' section to achieve the result?
Should it be

ike-cisco1 {
    id = aa
    secret = qwerty
}

or

ike-cisco1 {
    id = @#6161
    secret = qwerty
}

or something else done on the right way?

Thank you!


--
Volodymyr Litovka
  "Vision without Execution is Hallucination." -- Thomas Edison

Reply via email to