cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1856
Views
0
Helpful
4
Replies

AnyConnect VPN Connection failed with 2G/3G/4G and OK with WiFi

ssambourg
Level 1
Level 1

Hello,

 

My AnyConnect VPN Connection can't pass the exchange authent phase 1 when I'm trying via 3G/4G.

 

The connection on same device is OK via WiFi.

 

I'm using Android 7.0 and AnyConnect 4.0.09039.

 

I've capture some debug IKEv2 outputs following :

 

058991: Sep 15 17:32:09.226 CET: IKEv2:(SESSION ID = 226,SA ID = 1):Auth exchange failed

058992: Sep 15 17:32:09.227 CET: IKEv2-ERROR:(SESSION ID = 226,SA ID = 1):: Auth exchange failed

058993: Sep 15 17:32:09.227 CET: IKEv2:(SESSION ID = 226,SA ID = 1):Abort exchange

058994: Sep 15 17:32:09.227 CET: IKEv2:(SESSION ID = 226,SA ID = 1):Deleting SA

058995: Sep 15 17:32:09.227 CET: IKEv2:(SA ID = 1):[IKEv2 -> PKI] Close PKI Session

058996: Sep 15 17:32:09.227 CET: IKEv2:(SA ID = 1):[PKI -> IKEv2] Closing of PKI Session PASSED

058997: Sep 15 17:33:19.190 CET: IKEv2-ERROR:(SESSION ID = 227,SA ID = 2):: Failed to receive the AUTH msg before the timer expired

058998: Sep 15 17:33:19.190 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Verification of peer's authentication data FAILED

058999: Sep 15 17:33:19.190 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Sending authentication failure notify

059000: Sep 15 17:33:19.191 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Building packet for encryption.

Payload contents:

NOTIFY(AUTHENTICATION_FAILED)  Next payload: NONE, reserved: 0x0, length: 8

    Security protocol id: Unknown - 0, spi size: 0, type: AUTHENTICATION_FAILED

 

058966: Sep 15 17:31:34.845 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Starting timer (90 sec) to wait for auth message

058967: Sep 15 17:31:36.860 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Retransmitting packet

 

058968: Sep 15 17:31:36.860 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Sending Packet [To 77.136.X.X:55359/From 46.218.X.X:4500/VRF i0:f0]

Initiator SPI : 26E3506ABFD3C60D - Responder SPI : DBB53F6DC3BBD980 Message id: 1

IKEv2 IKE_AUTH Exchange RESPONSE

058969: Sep 15 17:31:36.860 CET: IKEv2-PAK:(SESSION ID = 227,SA ID = 2):Next payload: ENCR, version: 2.0 Exchange type: IKE_AUTH, flags: RESPONDER MSG-RESPONSE Message id: 1, length: 1756

Payload contents:

ENCR  Next payload: VID, reserved: 0x0, length: 1728

 

I see packet retransmission error causing timeout :

 

058970: Sep 15 17:31:36.860 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Restarting timer for 90 seconds to wait for auth message

058971: Sep 15 17:31:36.863 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Packet is a retransmission

058972: Sep 15 17:31:36.864 CET: IKEv2-ERROR:: Packet is a retransmission

058973: Sep 15 17:31:40.851 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Retransmitting packet

 

058974: Sep 15 17:31:40.851 CET: IKEv2:(SESSION ID = 227,SA ID = 2):Sending Packet [To 77.136.X.X:55359/From 46.218.X.X:4500/VRF i0:f0]

Initiator SPI : 26E3506ABFD3C60D - Responder SPI : DBB53F6DC3BBD980 Message id: 1

IKEv2 IKE_AUTH Exchange RESPONSE

058975: Sep 15 17:31:40.851 CET: IKEv2-PAK:(SESSION ID = 227,SA ID = 2):Next payload: ENCR, version: 2.0 Exchange type: IKE_AUTH, flags: RESPONDER MSG-RESPONSE Message id: 1, length: 1756

Payload contents:

ENCR  Next payload: VID, reserved: 0x0, length: 1728

 

I try with :

  • forced 2G/3G connection
  • 4G connection
  • 3 Mobile ISP

and I've got the same results.

 

I've also tested it on iOS and get the same behaviour.

 

Someone already experience this issue ?

 

 

1 Accepted Solution

Accepted Solutions

Hi,

 

With an incredible delay (sorry !)... the service provider filter IPSec.

 

Change to ASA-V with SSL VPN since IKEv2 SSL VPN was not supported on ISR4K.

 

HTH

View solution in original post

4 Replies 4

Are you using ASA or IOS for AnyConnect server? I know in some countries especially in middle east, they block VPN ports over 3g/4g networks

I'm using IOS VPN.

 

What's the better way for you to highlight VPN port blocking on 3G/4G ?

Since your are using ikev2 anyconnect look for SAs. Turn on debugs on ios and see if you get hits for SAs. Another method depending on what ios version you are running but starting from ios 15.4 you can perform packet capture on ios. Get your public ip before starting the connection  (by browsing whatsmyip.com) then calture traffic from this source ip on the router and see if you get hits.

Hi,

 

With an incredible delay (sorry !)... the service provider filter IPSec.

 

Change to ASA-V with SSL VPN since IKEv2 SSL VPN was not supported on ISR4K.

 

HTH

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: