Benches iPhone

14

How to configure Cisco ASA 5500 to work w…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

We have Cisco ASA 5510 (latest firmware version), and apparently, according to Cisco website it is compatible with new iPhone 3G's IPSec client:

http://www.cisco.com/en/US/docs/security/vpnclient/cisco_vpnclient/iPhone/2.0/connectivity/guide/iphone.html

We've setup our first iPhone properly. It connects fine to the network, shows VPN connection as active. Gets a private IP address. But does not let any traffic go to the internal network. We thought it might be DNS problem, but it cannot connect to Exchange server even when using IP address instead of DNS. No luck either.

After checking ASA logs, we found that iPhone goes through Phase 1 authentication correctly. But then gives some kind of error, mentioning "Attribute 5".

Has anybody been successful configuring ASA5500 series (in particular 5510) to be used with iPhone?

I noticed that many people are having these problems.

Please do not post to this topic if you have ANY OTHER Cisco device.

Cisco specifies that iPhone is compatible only with Cisco ASA 5500 Security Appliances and PIX Firewalls. Neither Cisco IOS VPN routers nor the VPN 3000 Series Concentrators support the iPhone VPN capabilities.

Let's keep this topic only for users of ASA 5500 series and PIX Firewalls.

It would be extremely helpful for a large number of users if somebody posted a list of settings for ASA5500 or PIX firewall that DO work with iPhone 2.0

Thank you!

Oleg R

14 replies

Sign in or join Beachball Help to reply.

  1. 0

    kwsoftop

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I have an ASA 5520 at work and I have been using my iphone 3G to connect via vpn and then onto a few web interfaces. I could not get exchange connectivity when I tried but I believe this may be due to the ports I have open on the ASA.

  2. 0

    Rogik

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I'm having problem with the VPN - can't seem to get through it at all. How do you know you can get to other resources except Exchange?

    Did you do any special configuration changes to accommodate iPhone?

  3. 0

    djfade

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I have successfully connected the iPhone to our ASA 5520. The iPhone sync' with Exchange correctly, however once we connect another iPhone while the other still has a connection then the traffic will only flow in one direction (from the iphone to the ASA). If I disconnect the first iphone then the traffic will start to flow correctly and any iphone I connect afterward will only communicate in one direction.

  4. 0

    Rogik

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Could you please describe/paste your ASA configuration (related to iPhone)?

    Thanks!

  5. 0

    kwsoftop

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I did not make any changes to existing configuration on my ASA to work with iphone. I am using the same group profile as I do with my laptop. If you are running into issues, try tunneling all traffic over vpn instead of a specific IP range. This is changed on the ASA.

  6. 0

    Rogik

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Is there any way you can export your IKE policy or list all the settings for comparison?

    Thanks

  7. 0

    faselS

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi,

    I have exactly the same problem as "djfade". We have also successfully connected the iPhone to our ASA 5520. The iPhone can access to differents services correctly, however once we connect another IPSec client (PC with windows, or a mac or an another OS) while the IPhone still has a connection then the traffic will only flow in one direction. When the IPhone is disconnected then the traffic will start to flow correctly.

    Someone have an idea?

    Thank you

  8. 0

    Craig Vinet

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Can someone please post Cisco ASA configurations for iphones to work over VPN.

    Has anyone got the iphone to build a VPN connection to a Cisco ASA using digital certificates not preshared keys?

  9. 0

    faselS

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Dear djfade,

    I have found the solution for our problem....

    Apparently, there is a bug with the mask of the address pool.

    I used a mask 255.255.255.0 and it didn't work.

    You must create a address pool with a mask 255.255.255.255 and after all VPN client can connect correctly (IPSEC traffic in both directions).

  10. 0

    Rogik

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Dear FaselS,

    Could you please post your VPN/IKE policy settings? That would greatly help the rest!

    Thanks,

    Oleg

  11. 0

    faselS

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    my IKE Policies:

    *crypto isakmp enable Outside*

    *crypto isakmp policy 5*

    authentication pre-share

    encryption 3des

    hash md5

    group 2

    lifetime 86400

    *crypto isakmp policy 6*

    authentication pre-share

    encryption 3des

    hash sha

    group 2

    lifetime 86400

    *crypto isakmp policy 10*

    authentication pre-share

    encryption des

    hash sha

    group 2

    lifetime 86400

  12. 0

    Rogik

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    And for pre-shared as well

  13. 0

    Rogik

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I will be trying this out with our IT in the next couple days.

    Has anybody gotten this setting-set to solve the problem?

    Please let us know if these settings solved anyone's iPhone VPN Cisco ASA 55xx problems.

  14. 0

    Rogik

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    We found the solution and a bug in Cisco firmware (seems to be a bug).

    First of all, thanks to our Chief Systems Architect Seb, here is a config that worked for us on a Cisco 5520 (latest firmware).

    access-list iphone_splitTunnelAcl standard permit <insert ip> <insert mask>

    access-list iphone_splitTunnelAcl standard permit <insert ip> <insert mask>

    crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac

    crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac

    crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac

    crypto ipsec transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac

    crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac

    crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac

    crypto ipsec transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac

    crypto ipsec transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac

    crypto ipsec transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac

    crypto ipsec transform-set iphone esp-3des esp-sha-hmac

    crypto ipsec transform-set iphone mode transport

    crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac

    crypto dynamic-map SYSTEM
    DEFAULT_CRYPTOMAP 65535 set pfs

    crypto dynamic-map SYSTEM
    DEFAULT_CRYPTOMAP 65535 set transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5 iphone

    crypto map outside_map 10 match address vpn

    crypto map outside_map 10 set transform-set ESP-AES-256-SHA

    crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM
    DEFAULT_CRYPTOMAP

    crypto map outside_map interface outside

    crypto isakmp enable outside

    crypto isakmp policy 10

    authentication pre-share

    encryption 3des

    hash sha

    group 2

    lifetime 86400

    crypto isakmp policy 20

    authentication pre-share

    encryption aes-256

    hash sha

    group 5

    lifetime 86400

    crypto isakmp nat-traversal 20

    group-policy iphone internal

    group-policy iphone attributes

    wins-server value <insert ip> <insert ip>

    dns-server value <insert ip> <insert ip>

    vpn-tunnel-protocol IPSec

    ipsec-udp enable

    ipsec-udp-port 10000

    split-tunnel-policy tunnelspecified

    split-tunnel-network-list value iphone_splitTunnelAcl

    default-domain value <insert domain name>

    tunnel-group iphone type remote-access

    tunnel-group iphone general-attributes

    address-pool VPN-Pool

    authentication-server-group ActiveDirectory2

    default-group-policy iphone

    tunnel-group iphone ipsec-attributes

    pre-shared-key <insert pre-shared key>

    For iPhone you have to be using IPSec tab for configuration.

    We tried to set up this config using the wizards, but it would not work.

    Later it turned out that wizards by default set this setting:

    "crypto isakmp nat-traversal 20"

    equal to zero and there is no way to change it from the GUI.

    Only after we changed it (increased the value from 0 to 20) through the command line the connection started working perfectly.

    Please let me know how it works out for you.

    Message was edited by: Rogik

    Message was edited by: Rogik