Discussion:
[strongSwan-dev] stack sends wrong response for retransmitted request
siddesh r
2018-07-11 06:50:32 UTC
Permalink
Hi,

Seeing the below behaviour in strognswan:
Strongswan code is used for ePDG model,UE is sending IKE_AUTH request to
ePDG, gateway receives it but even before sending out IKE_AUTH response for
this request, it is receiving one more IKE_AUTH(retrnsmitted) request from
UE and strongswan stack is sending out IKE_SA_INIT response to this request.

I feel, when Gateway receives retransmitted request before even reponse is
prepared for that request, it should drop it. If response is prepared then,
that should be sent out.

Please let me know whether it's bug or not.

Thanks,
Siddesh
siddesh r
2018-07-11 06:52:49 UTC
Permalink
Hi,

Seeing the below behaviour in strognswan:
Strongswan code is used for ePDG model,UE is sending IKE_AUTH request to
ePDG, gateway receives it but even before sending out IKE_AUTH response for
this request, it is receiving one more IKE_AUTH(retrnsmitted) request from
UE and strongswan stack is sending out IKE_SA_INIT response to this request.

I feel, when Gateway receives retransmitted request before even reponse is
prepared for that request, it should drop it. If response is prepared then,
that should be sent out.

Please let me know whether it's bug or not.

Thanks,
Siddesh
Tobias Brunner
2018-07-11 08:15:37 UTC
Permalink
Hi Siddesh,
Post by siddesh r
Strongswan code is used for ePDG model,UE is sending IKE_AUTH request to
ePDG, gateway receives it but even before sending out IKE_AUTH response
for this request, it is receiving one more IKE_AUTH(retrnsmitted)
request from UE and strongswan stack is sending out IKE_SA_INIT response
to this request.
That seems highly unlikely. If this actually happened, send more
information like strongSwan version, applied patches, log files, traffic
dumps etc.
Post by siddesh r
I feel, when Gateway receives retransmitted request before even reponse
is prepared for that request, it should drop it. If response is prepared
then, that should be sent out.
As long as the request is processed no other message for the same IKE_SA
can be processed (it's locked). And responding with a message with a
different message ID is also something that doesn't happen.

Regards,
Tobias

Loading...