Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public...

142

Transcript of Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public...

Page 1: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by
Page 2: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

Advanced AnyConnect Deployment and Troubleshooting with ASA

BRKSEC-3033

Håkan Nohre, CISSP, Consulting Systems Engineer

Page 3: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

What We Won't Cover

• Clientless SSL VPN via Web Portal

• AnyConnect with IOS and IPSEC/IKEv2 : see BRKSEC-2881

• AnyConnect Web Security : see BRKSEC-2902

• AnyConnect NAM: see BRKSEC-2088

• Roadmaps

• Licensing

4

but covered in other Cisco Live sessions

see BRKSEC-90666: Deploying Cisco Licensing (CCIE Licensing)

Page 4: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

The Scenario : Labrats

• Pharmaceutical Research Conglomeraterun by Rats and Cats

5

Conglomerate two or more corporations engaged in

entirely different businesses that fall under

one corporate group

Wikipedia definition

**

*

*

Legal Disclaimer Any similarities between Labrats and any

other organization is (most likely) a

coincidence

Page 5: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

The Scenario : Labrats

• Using Corporate Devices

– Windows, MACs, iPADs

• Embracing BYOD

• Key Requirements :

– Security

– Easy to Use

– IPv6

6

*

*

Page 6: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

OTP Server

The Scenario : Labrats

• Network Design and Versions Used

7

IPv4

InternetIPv4/IPv6

Intranet

IPv6

Internet

ASA 5500-X

(active-standby)ASA 9.3(2)

ASDM 7.3(2)

AnyConnectWindows 4.0.00051

MAC 4.0.00051

iOS 3.0.12169

Active Directory

CA ServerWindows 2008 R2

I

S

E

Cisco ISE

1.3

Page 7: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Posture CheckingDynamic Access

Policies (DAP)

Securing the ClientASA On the Rocks

- adding ISE

Some Theory

SSL and IPSEC AnyConnect

Fundamentals

AAA Deep Dive

Client Certificates

AAA Deep Dive

RADIUS & LDAP

Customizing the User

Experience

Agenda

14

Provisioning Client

Certificates

Page 8: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect - Installation

• Installation Options

– use Desktop Management System

– download from ASA (requires admin privileges)

– download from ISE (requires admin privileges)

– Appstore, Google Play ... ( mobile devices)

• Optional modules to install

– DART

– Posture

– ISE Posture

– Start-Before-Login

– Web security, Network Access Manager

– Feedback Module

15

Page 9: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

At least one pkg file needed• At least one pkg file must be uploaded to ASA, even if AnyConnect pre-

deployed on clients (MSI, Appstore…)

• pkg file contains binaries… and more

• To check out, rename pkg file to zip and decompress

16

Anyconnectxxx.pkg

Page 10: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

On the Client: AnyConnect Configuration Files• AnyConnect Configuration Files are stored on the client in the following directories:

19

Windows 7 and Windows

VISTAC:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client

Windows XP C:\Documents and Settings\All Users\Application

Data\Cisco\Cisco AnyConnect VPN Client

MAC OS X and Linux /opt/cisco/anyconnect/

Windows 7 and Windows

VISTAC:\Users\username\AppData\Local\Cisco\

Cisco AnyConnect VPN Client\preferences.xml

Windows XP C:\Documents and Settings\username\Local

Settings\ApplicationData\

Cisco\Cisco AnyConnect VPN Client\preferences.xml

MAC OS X and Linux /Users/username/.anyconnect

Page 11: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

On the Client: AnyConnect Configuration Files• Apply to all Users logged onto the machine

20

AnyConnect Client Profiles

(described later)

AnyConnect Local Policy

Security Settings

Default User, Default Hosts etc.

Page 12: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect Local Policy File

• Not downloaded from ASA (use your favorite desktop management system)

• XML file defining important aspects of AnyConnect behavior– allowing user to accept untrusted ASA certificates

– allowing client software updates from ASA (and from which ASAs)

– allowing client profile updates from ASA (and from which ASAs)

– certificate stores, credentials caching etc.

21

AnyConnect Local Policy

<StrictCertificateTrust>false</StrictCertificateTrust>

<UpdatePolicy>

<AllowSoftwareUpdatesFromAnyServer>false</AllowSoftwareUpdatesFromAnyServer>

<AllowVPNProfileUpdatesFromAnyServer>false</AllowVPNProfileUpdatesFromAnyServer>

<AuthorizedServerList>

<ServerName>itchy.labrats.se</ServerName>

<ServerName>roddy.labrats.se</ServerName>

</AuthorizedServerList>

</UpdatePolicy>

Standalone Profile

Editor

Page 13: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Local Policy File Example : • If the server certificate is not trusted, do you

want the user to be able to accept the certificate?

• .... or do you want AnyConnect to refuse to connect?

22

<StrictCertificateTrust>

false

</StrictCertificateTrust>

AnyConnect Local Policy

<StrictCertificateTrust>

true

</StrictCertificateTrust>

Page 14: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect Troubleshooting Toolbox (Windows)

23

MMC console with snap-ins:

Event Viewer

Certificate (Current User)

Certificate (Local Computer)

Page 15: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect Troubleshooting Toolbox (MAC)

24

Utilities/Console

Utilities/Keychain Access

Page 16: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

DART Tool (Windows and MAC)

25

DART Tool can be installed along with the Client

Similar to "show tech" on the client

Gathering of OS Data, App Data and logfiles into a single ZIP File

GOT DART?

Page 17: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect Troubleshooting Toolbox (iOS, Android)

26

One click email of logs

Possible to view

Profiles and

Certificates

Page 18: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect Fundamentals : ASA Server Certificate

• ASA certificate should be trusted by clients

– Public (well-known) Certificate Authority (e.g. Verisign, Thawte)

– Enterprise Certificate Authority, e.g. Microsoft Active Directory

– Self-Signed (need to import certificate to all clients)

– AnyConnect no longer (from 3.1) checks CRL of ASA cert

• FQDN in Subject Name : roddy.labrats.se

27

Enterprise CA

Internet Intranet

Public

CA

Warning

ASA

Page 19: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Ensure Clients Trust the ASA Certificate

• AnyConnect uses OS to validate certificate

– Microsoft Windows: MS CAPI

– MAC OS: Keychain

– Linux: Varies with distribution

• Tip: Examine warnings with browser

– Untrusted CA chain

– Mismatch domain name

– Validity time (GOT NTP?)

28

Page 20: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect Fundamentals : IPv4 and IPv6

• AnyConnect 3.1 now supports IPv6 tunneled inside IPv4 or IPv6

– management/control servers (CA, AD, RADIUS) IPv4 only

30

DNS

IPv4

Internet

web

fileshare

IPv4/IPv6

Intranet

CA, AD, RADIUS

Virtual Adapter

IPv6

InternetVirtual Adapter

IPv4

IPv6

Dual Stack

IPv4/IPv6

ASA

Page 21: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Posture CheckingDynamic Access

Policies (DAP)

Securing the ClientASA On the Rocks

- adding ISE

Some Theory

SSL and IPSECAnyConnect

Fundamentals

AAA Deep Dive

Client CertificatesAAA Deep Dive

RADIUS & LDAP

Customizing the User

Experience

Agenda

34

Provisioning Client

Certificates

Page 22: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Client

Profile

Connection

Profile

(tunnel-group)

AAA in ASA : Some Important Concepts

35

Proving Who you are

Static Passwords (local to ASA, Active Directory, LDAP)

OTP (One-Time-Passwords), typically RADIUS

Certificates

Group Policy

Determining What You are and What You can do

ACL, Split Tunnelling

Proxy settings, Timeouts

etc..

AnyConnect behaviour...

- Which ASA and Connection Profile to connect to

- "Always On"

- which certificate to use, etc...

Page 23: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Labrats Requirements

• Strong Authentication– Corporate devices (laptops, iPADs) use certs

– BYOD use OTP sent as text to mobile

• Granular Authorization– Depending on Active Directory group and

device (corporate vs. BYOD)

– Access Rights differ with regards to

ACL (Filter)

IP address pool

Split Tunneling

Client Profile

Restrict to VLAN

...

36

Cats

from BYODRats

from BYOD

Cats

from Corp

Device

Rats

from Corp

Device.

AD Groups

Cats

Rats

GroupPolicy

CatsCorpGroupPolicy

RatsCorpGroup Policy

CatsBYOD

Group Policy

RatsBYOD

Connection

Profile Certs

Connection

Profile SMS

ASA

Page 24: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Possible Integration with Multi VRFs

• Users mapped to VLAN (sub-interface) on the ASA per the group-policy.

• Routes tied to interfaces

route VlanCatsCorp 10.0.0.0 255.0.0.0 10.0.151.1 2

route VlanRatsCorp 10.0.0.0 255.0.0.0 10.0.152.1 3

• Overlapping IP addresses concerns:

– AAA server

– ASA interfaces

– IP Pools37

Group Policy

RatsCorp

Connection

Profile Certs

Connection

Profile SMS

Group Policy

CatsCorp

Cats

from Corp

Device10.1.1.1

AD Groups

Cats

Rats

vlan 152vlan 151

Rats

from Corp

Device 10.1.1.1same ip

possible

ASA

Page 25: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Authentication and Authorization by RADIUS

• User can be authenticated and authorized by RADIUS.

• RADIUS attribute IETF 25 (Class) is used to assign the group policy.

38

Connection Profile

"SMS"

Default

Group

Policy

Group Policy

RatsBYODGroup Policy

CatsBYOD

AAA Server Group

RADIUS

Client Profile

"BYOD"

Page 26: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Authentication by RADIUS Authorization by LDAP• User authenticated by RADIUS (typically strong authentication, OTP)

• Username used for LDAP lookup

• LDAP attributes are mapped to a Group Policy

39

Default

Group

Policy

Group Policy

RatsBYODGroup Policy

CatsBYOD

Connection Profile

"SMS"

Client Profile

BYOD

AAA Server Group

LDAP

AAA Server Group

RADIUS

LDAP

map

Page 27: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Connection Profile : How to Authenticate

40

AAA server group

AAA, Cert or Both?

Group-Policy used

unless overwritten by

Authorization Server

AAA Server Group

RADIUS

Connection

Profile

Page 28: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Connection Profile : How to Authorize

• Possible to define different AAA server group for authorization (if not specified, the same group is used for authentication and authorization).

41

AAA Server Group

AD_SamAccount (LDAP)

Connection

Profile

AAA server group

used for Authorization

Page 29: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Connection Profile: Where Send Accounting

• Possible to define AAA Server Group for RADIUS Accounting

42

Connection

Profile

AAA server group

used for Authorization

AAA Server Group

RADIUS

Page 30: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

In the AnyConnect Client Profile : Server List

• Specify servers in the server list

• Do not specify Host Address

– May cause cert warnings

• Don’t have the user choose connection profile

– Save mouse clicks

46

...using the Connection Profile

specified with this Group URL

Client

ProfileConnect to host roddy.labrats.se

Blank

Connection

Profile

Page 31: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AAA Server Groups

• Using the same authentication protocol and characteristics

Several Servers in

a Group for

redundancy

Same Protocol but

different Groups if

different characteristics

AAA Server Group

LDAP

AAA Server Group

RADIUS

Page 32: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

RADIUS Server Definition

48

Double check port

numbers on RADIUS

server

Shared Secret must

match with RADIUS

server

Page 33: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

LDAP Server Definition (Active Directory)

50

LDAP over SSL

ASA Credentials

Domain is labrats.se

Map LDAP attributes to ASA

attributes (to be covered)

Attribute for user lookup

Page 34: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

A Good LDAP Browser is Useful• To learn LDAP structure, and for troubleshooting : http://www.softerra.com

51

memberOfCN=ITsupport,CN=Users,DC=labrats,DC=se

CN=Cats,CN=Users,DC=labrats,DC=se

sAMAccountName=scratchy

Page 35: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Using Active Directory “memberOf”

• A user in Active Directory can be a member of many groups

– But can only belong one Group Policy in ASA

• A group may be a member of another group in AD

– ASA will not do recursive lookup

52

Rats ITsupportCats

Mammals

RATCAT

Page 36: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Mapping “memberOf” to Group Policy• Map “memberOf” to ASA Group Policy with an LDAP attribute map

• Beware: First match will apply (many memberOf one Group Policy)

• Beware: No support for lookup of nested groups (“group in group”)

• Using Cisco ISE (covered later) allows for better flexibility in assigning Group Policy

• DAP (covered later) allows for more flexibility in handling "many memberOf"

53

LDAP

map

Warning

CN=Rats,CN=Users,DC=labrats,DC=se : RatsBYOD

CN=Cats,CN=Users,DC=labrats,DC=se : CatsBYOD

Page 37: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting AAA server

• Test that AAA server works

54

Page 38: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting AAA

• Checking that the right Group Policy has been assigned

55

Page 39: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting RADIUS : debug radius (1)

56

Access-Request

from ASA to RADIUS

Server

roddy(config)# sh debu

debug radius session

debug radius decode

roddy(config)# radius mkreq: 0xa1......

got user 'scratchy' got password

add_req 0xade2da48 session 0xa1 id 80

RADIUS_REQUEST

radius.c: rad_mkpkt

rad_mkpkt: ip:source-ip=192.168.254.4

RADIUS packet decode (authentication request)

--------------------------------------

Raw packet data (length = 172).....

01 50 00 ac 10 09 0e 2f 3c c5 1a 4b 28 41 e6 27 | .P...../<..K(A.'

d4 7d 72 c3 01 0a 73 63 72 61 74 63 68 79 02 12 | .}r...scratchy..

67 58 f2 72 53 db 00 ee 29 1a 49 b4 f1 c7 1a c7 | gX.rS...).I.....

05 06 00 04 b0 00 1e 0f 31 39 32 2e 31 36 38 2e | ........192.168.

31 31 30 2e 31 1f 0f 31 39 32 2e 31 36 38 2e 32 | 110.1..192.168.2

35 34 2e 34 3d 06 00 00 00 05 42 0f 31 39 32 2e | 54.4=.....B.192.

31 36 38 2e 32 35 34 2e 34 04 06 0a 01 29 6e 1a | 168.254.4....)n.

22 00 00 00 09 01 1c 69 70 3a 73 6f 75 72 63 65 | "......ip:source

2d 69 70 3d 31 39 32 2e 31 36 38 2e 32 35 34 2e | -ip=192.168.254.

34 1a 0f 00 00 0c 04 92 09 53 4d 53 2d 4f 54 50 | 4........SMS-OTP

1a 0c 00 00 0c 04 96 06 00 00 00 02 | ............

Page 40: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting RADIUS : debug radius (2)

57

ASA also sends Connection Profile

(Tunnel-Group) and Client-Type

(AnyConnect) to RADIUS Server in

ACCESS-REQUEST

Parsed packet data.....

.........

..........

Radius: Type = 26 (0x1A) Vendor-Specific

Radius: Length = 15 (0x0F)

Radius: Vendor ID = 3076 (0x00000C04)

Radius: Type = 146 (0x92) Tunnel-Group-NameRadius: Length = 9 (0x09)

Radius: Value (String) =

53 4d 53 2d 4f 54 50 | SMS-OTPRadius: Type = 26 (0x1A) Vendor-Specific

Radius: Length = 12 (0x0C)

Radius: Vendor ID = 3076 (0x00000C04)

Radius: Type = 150 (0x96) Client-TypeRadius: Length = 6 (0x06)

Radius: Value (Integer) = 2 (0x0002)

send pkt 10.1.41.51/1645

Page 41: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting RADIUS : debug radius (3)

58

RADIUS server may assign

Group Policy with the Class

attribute

RADIUS packet decode (response)

--------------------------------------

Raw packet data (length = 142).....

02 51 00 8e 13 94 12 5d 9c 56 84 ab bc 99 85 0d | .Q.....].V......

6a 71 7b 18 01 0a 73 63 72 61 74 63 68 79 18 28 | jq{...scratchy.(

52 65 61 75 74 68 53 65 73 73 69 6f 6e 3a 30 61 | ReauthSession:0a

30 31 32 39 33 33 30 30 30 30 33 35 31 45 35 30 | 0129330000351E50

44 42 33 31 35 42 19 0e 52 65 73 65 61 72 63 68 | DB315B..Research

42 59 4f 44 19 34 43 41 43 53 3a 30 61 30 31 32 | BYOD.4CACS:0a012

39 33 33 30 30 30 30 33 35 31 45 35 30 44 42 33 | 9330000351E50DB3

31 35 42 3a 69 73 65 31 2f 31 34 31 35 38 39 31 | 15B:ise1/1415891

37 31 2f 32 32 34 33 31 1d 06 00 00 00 01 | 71/22431......

Parsed packet data.....

.........

Radius: Type = 25 (0x19) ClassRadius: Length = 14 (0x0E)

Radius: Value (String) =

43 61 74 73 42 59 4f 44 | CatsBYOD.......

Radius: Type = 29 (0x1D) Termination-Action

Radius: Length = 6 (0x06)

Radius: Value (Hex) = 0x1

rad_procpkt: ACCEPT

RADIUS_ACCESS_ACCEPT: normal termination

Page 42: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting RADIUS

59

Authentication logs from

Cisco ISE

Page 43: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting LDAP• debug ldap

60

Connect

(layer 4)

Bind

(authentication)

LDAP search

roddy(config)# debug ldap 100

debug ldap enabled at level 100

roddy(config)#

[42] Session Start

[42] New request Session, context 0xaddbaacc, reqType = Other

[42] Fiber started

[42] Creating LDAP context with uri=ldaps://10.1.41.10:636

[42] Connect to LDAP server: ldaps://10.1.41.10:636, status = Successful

[42] supportedLDAPVersion: value = 3

[42] supportedLDAPVersion: value = 2

[42] Binding as [email protected]

[42] Performing Simple authentication for [email protected] to 10.1.41.10

[42] LDAP Search: Base DN = [dc=labrats,dc=se] Filter =

[sAMAccountName=scratchy] Scope = [SUBTREE]

[42] User DN = [CN=Scratchy Cat,CN=Users,DC=labrats,DC=se]

Page 44: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting LDAP (2)• debug LDAP (2)

61

Received Attributes and

Group-Policy mapping

[42] Talking to Active Directory server 10.1.41.10

[42] Reading password policy for scratchy, dn:CN=Scratchy Cat,CN=Users,DC=labrats,DC=se

[42] Read bad password count 0

[42] LDAP Search: Base DN = [dc=labrats,dc=se] Filter = [sAMAccountName=scratchy]

Scope = [SUBTREE]

[42] Retrieved User Attributes:

……………

[42] displayName: value = Scratchy Cat

[42] uSNCreated: value = 386330

[42] memberOf: value = CN=Cats,CN=Users,DC=labrats,DC=se

[42] mapped to Group-Policy: value = CatsBYOD

[42] mapped to LDAP-Class: value = CatsBYOD

[42] uSNChanged: value = 387490

[42] department: value = Cats

[42] name: value = Scratchy Cat

………….

Page 45: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Posture CheckingDynamic Access

Policies (DAP)

Securing the ClientASA On the Rocks

- adding ISE

Some Theory

SSL and IPSECAnyConnect

FundamentalsAAA Deep Dive

Client Certificates

AAA Deep Dive

RADIUS & LDAP

Customizing the User

Experience

Agenda

62

Provisioning Client

Certificates

Page 46: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Authentication with Client Certificates

• Considered stronger authentication than passwords

• No need to manage passwords (password complexity, resetting passwords, expiring passwords...)

• Need to manage a PKI (Public Key Infrastructure) to enroll and revoke certificates

• Client Certificates may be tied to machine or user

• User certificates may be soft or hard (smart cards)

• We can make it difficult to move a certificate from one machine to another: Using client certificates allows us to distinguish corporate devices from other devices (employee iPADs etc)

64

Page 47: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

ASA must trust the Issuer of Client Certificates

• Install Issuer CA Certificate

– from file

– paste PEM file

– SCEP

• Issuer of client certificates may be different to the issuer of the ASA certificate

65

Install

From File

Install from

SCEP

Paste PEM

65

Page 48: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Be Careful with Whom You Trust

66

• You may have more than one Trustpoint, but maybe you only trust one for client authentication

• Example:

– Clients get certs from internal CA

– ASA gets cert from public PKI

Warning

Careful if CA chain with root

cert is imported when installing

ASA public cert…

Page 49: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Checking for lost/stolen certificates• CRL (Certificate Revocation List) downloads a list of revoked certificates (can be

cached)

• OCSP (Online Certificate Status Protocol) checks status of individual certificates

67

Do we trust certificate if

we cannot retrieve CRL?

Page 50: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AAA Server Group

LDAP

Authentication with Client CertificatesAuthorization with LDAP• User authenticated with client certificate

• Username (some field) of certificate used for LDAP lookup

• LDAP attributes are mapped to a Group Policy

68

Default

Group

Policy

Group Policy

CatsCorpGroup Policy

RatsCorp

Connection Profile

"cert"

Client Profile

"HighSec"

LDAP

map

Page 51: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Authentication with Client Certificates

• Defined in Connection Profile

• Choosing "both" means that user first has to authenticate with certificate, then with username/password– Use case : Checking that user uses a corporate machine (with a soft certificate)

69

Certificate OR

Certificate + AAA

Page 52: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Authorization with Client Certificates• Work out which fields in cert to use and how to map to LDAP

70

Client Certificate : SAN

(Principal Name)[email protected]

LDAP : [email protected]

Page 53: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Authorization with Client Certificates

71

Client Certificate LDAP Database

Connection Profile :

User mapping from Cert=

UPN (Users' Principal Name)

AAA Server :

Naming Attribute=

userPrincipalName

Page 54: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

A smart card is just another client certificate

• Same principles and configuration as for soft client certificates

• …with the option of having AnyConnect disconnecting VPN when smart card is removed (configured under Group Policy/General)

• ASA/AnyConnect currently do not support “double” cert authentication

– First with computer certificate, then with user certificate/smart card

– Workaround : Use Posture checks to verify that it is corporate machine

72

Optionally disconnect if

Smartcard is removed

Page 55: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Client Profile Options to select the right certificate

73

Certificate Store : User, Machine or All

Certificate Store Override :

Check if non administrator needs

access to machine certificate

Uncheck for Automatic certificate

Selection

Client

Profile

Client

Profile

Page 56: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Certificate Matching (for automatic cert selection)

74

If client (or smartcard) contains many

certificates, we can specify which one

should be selected (used with

automatic certificate selection)

Client

Profile

Page 57: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Posture CheckingDynamic Access

Policies (DAP)

Securing the ClientASA On the Rocks

- adding ISE

Some Theory

SSL and IPSECAnyConnect

FundamentalsAAA Deep Dive

Client Certificates

AAA Deep Dive

RADIUS & LDAP

Customizing the User

Experience

Agenda

75

Provisioning Client

Certificates

Page 58: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Certificate Enrolment : Active Directory• Microsoft Active Directory supports automatic certificate enrolment for user and

machine certificates

• User and machine are members of Active Directory Domain: Their certificates can be pushed by GPOs (Group Policy Objects)

76

http://technet.microsoft.com/en-

us/library/cc770546.aspx

See BRKSEC-2053

Page 59: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Certificate Enrolment : Active Directory (2)• Microsoft CA also supports web enrolment

• Can be used by non-domain members, e.g. MACs

77

Page 60: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Simple Certificate Enrolment Protocol (SCEP)

• http://tools.ietf.org/id/draft-nourse-scep-21.txt

• Protocol for enrolling certificates over HTTP (basically encapsulating PKCS#10, PKCS#7 over HTTP)

• Originally developed by Verisign for Cisco

• Widely supported by network devices (including ASA and AnyConnect), clients and most Certificate Authorities (including Microsoft CA)

78

CA

SCEP

Page 61: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect SCEP Proxy Support

• ASA can be an SCEP proxy, enabling AnyConnect on the outside to enroll to a CA on the inside of ASA without poking holes in Firewall

• Not to be confused with Legacy SCEP, where AnyConnect speaks directly to the CA over the VPN tunnel.

• SCEP proxy requires AnyConnect 3.0 or later :

79

CA

SCEP SCEPASA

Page 62: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Case Study : Secure Enrolment of Certificates to Mobile Devices• Mobile users (Windows, MAC, Phone, Android) logon from anywhere (over

internet) to enroll

• Secure authentication via OTP sent by SMS to mobile

• Certificate automatically enrolled with correct subject name

• Note : to mitigate risk of stolen phones, use certs + AAA for authentication

– is phone PIN code protection of certificate enough?

80

OTP

CASCEP

VPN

ASA

Page 63: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

1. User Connects to ASA

81

OTPCA AD

ASA

Page 64: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

2. User Gets SMS with OTP

82

OTPCA AD

ASA

Page 65: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

3. User logs on with OTP

83

OTPCA AD

ASA

Page 66: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

ASA

4. AnyConnect Gets Certificate from ASA (proxy to CA)

84

Cert can also be used for 802.1X*

OTPCA AD

Client Profile

"scepproxy"

SCEP

SCEP

Page 67: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

What to Configure on ASA

• Configuration example on

http://www.cisco.com/en/US/docs/security/vpn_client/anyconnect/anyconnect31/administration/guide/ac03vpn.html#wp1591160

85

Connection Profile

"SCEPProxyEnroll"

AAA Server Group SMS

(RADIUS)

AAA Server Group

AD (LDAP)

Group Policy

"SCEPProxyEnroll"

Client Profile

"scepproxy"

Page 68: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Client Profile For Certificate Enrollment

86

subject-name

can use

%USER%

%MACHINEID%

EA can be used

instead of SAN

Default of 512 will not

work with Windows CA

default

Client Profile

"scepproxy"

Page 69: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Group Policy for Certificate Enrollment

87

URL for Microsoft CA

http://.../certsrv/mscep/msc

ep.dll

Client Profile

"scepproxy"

Group Policy

"SCEPProxyEnroll"

Page 70: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Connection Profile for Certificate Enrollment

88

Enable SCEP on

Connection Profile

Authentication set to

“Both” for SCEP

Proxy

Connection Profile

"SCEPProxyEnroll"

Page 71: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Configuration on Windows 2008 R2 Server (1)

89

SCEP RA

(Registration Authority)

By default Microsoft requires user to enter

challenge password to get certificate

Careful when changing this!!

MUST limit access to SCEP CA/RA

Security

Risk

Page 72: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Configuration on Windows 2008 R2 Server (2)• Good Microsoft document on

– http://www.microsoft.com/download/en/details.aspx?id=1607

90

Microsoft registry setting to change

default Certificate Template used by

SCEP

Hint : the default template does not

work for SSL VPN

Page 73: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting Tips• Pay attention to the certificate templates used by Microsoft CA

– certificate usage

– security permissions

– minimum key length

• Logs from Microsoft Server may be helpful

– Event Viewer : Server Roles

– IIS access logs

91

Page 74: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Alternative Certificate Provisioning for AnyConnect• ISE allows for certificate and supplicant provisioning through My Devices Portal

– works for provisioning devices over local LAN (Cisco switch or WLC)

– user can also use portal to blacklist device

• Certificates provisioned via ISE can also be used by AnyConnect

92

ISE MyDevices Portal

Page 75: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Dynamic Access

Policies (DAP)

Securing the ClientASA On the Rocks

- adding ISE

Some Theory

SSL and IPSECAnyConnect

FundamentalsAAA Deep Dive

Client Certificates

AAA Deep Dive

RADIUS & LDAP

Customizing the User

Experience

Agenda

93

Provisioning Client

CertificatesPosture Checking

Page 76: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect Posture : Do the Clients meet Requirements?• Possible to check that client meets Posture Requirements : OS, Anti-Virus,

Personal Firewall, Registry Keys, Open Ports etc

• Used in combination with Dynamic Access Policies (DAP) to grant access to clients depending on their posture status

94

Internet

VPN Connection

Microsoft Firewall ON,

but No Antivirus...

and he is a RAT!!!!!

ASA

Page 77: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Specifying Host Scan Image

Choose standalone Host

Scan or AnyConnect

Standalone Host Scan

location on CCO

Page 78: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Host Scan loads

Prelogin Checks based on OS, ip, cert

, file, registry

"Corp

Windows""MAC" Other

Endpoint Assessment

Get info on FW, AV, AS, Registry,

Processes, Files...

Advanced Endpoint

Assessment:

Remediation/Fix

FW, AV, AS

DAP

The Host Scan Process

97

Both in

ParallelPolicy

Page 79: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Configuring Host Scan

98

Endpoint Assessment must be checked to

retrieve info on AV, AS, Firewall settings

that can be enforced by DAP

Possible to create checks for

Process, File and Registry

keys that can be enforced by

DAP

Page 80: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Prelogin Policy

• Typical use case is to differentiate corporate devices

• Check client ip address, OS, that file exists, registry keys/values and certificate

– client ip is the ip of network adapter (before any NAT…)

– note : certificate check only checks if certificate exist, it does not cryptographically verify that the private key is there

• Possible to deny login immediately, or pass Policy Name to DAP for enforcement

99

Policy Classification can be

used by DAP

Page 81: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Dynamic Access

Policies (DAP)

Securing the ClientASA On the Rocks

- adding ISE

Some Theory

SSL and IPSECAnyConnect

FundamentalsAAA Deep Dive

Client Certificates

AAA Deep Dive

RADIUS & LDAP

Customizing the User

Experience

Agenda

100

Provisioning Client

CertificatesPosture Checking

Page 82: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Dynamic Access Policies (DAP) • DAP allows granular access control to resources based on authentication

method, AAA parameters and Posture

• Very flexible, allowing policies set by Data Owners access to Data :

– "to access my data you must be member of AD groups Cats and ProjectX, you must be logged in with strong authentication and you must have Antivirus on a corporate machine"

101

Internet

Microsoft Firewall ON, Antivirus

ON,

memberOf Cats AND projectX

DENY

PERMITASA

Page 83: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AAA Server Group SMS

(RADIUS)

How DAP relates to AAA

102

AAA Server Group

AD (LDAP)

Default

Group

Policy

Group Policy

CatsBYOD

Group

Policy

RatsBYOD

Connection

Profile SMS

Dynamic Access Policies

override certain attributes from Group Policy

depending on AAA, Posture, Connection Profile...

DAP-1 DAP-2 DAP-N+memberOf

ProjectX

Posture: .....

memberOf

Cats

LDAP

map

Page 84: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Configuring DAP

103

and Policy is

Corporate Windows

Registry Key is…

Antivirus Updated...

Authorization

IPv4/IPv6 ACL

don't mix permit and

deny in ACL

If member of Cats and

ProjectX

logged on with

certificate...

Page 85: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Default DAP (DfltAccessPolicy)

104

ITSupport w clean PC RDP to everything

Cats+ProjectX w clean PC ProjectX

Rats Rats WebSite

Condition ACL

DfltAccessPolicy

If no DAP

matches then

DfltAccessPolicy

Applies

Action= Terminate

Page 86: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

DAP Grows On You! (DAP accumulates)

105

Matching

Several conditions

Accumulates

Access Rights

ITSupport w clean PC RDP to everything

Cats+Project X w clean PC ProjectX

Rats Rats WebSite

Condition ACL

RDP to everything

Rats Website

Page 87: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

The Power of DAP• Very flexible mapping to multiple "memberOf"

– Example : 4 groups in Directory

– A user may be a member of 0 to 4 groups : 16 combinations (2 )

A B C D

A B C D A B A C A D DBB C

DCA B CA B DA DCDCBDCBA

• Quiz : How many DAP policies do you need to cover the 16 combinations?

Condition (memberOf) ACL

A

B

C

D

ACL-A

ACL-B

ACL-C

ACL-D

n

Page 88: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

DAP with Quarantine• Possible to create a DAP (with ACL) that gives a user limited access to the

network to remediate posture, after which he can "reconnect".

• Used together with "Advanced Endpoint Assessment"

• Remember that DAP accumulates ACL privileges (if other DAPs are matched user may still get full access to the network).

107

DAP Config : QuarantineQuarantine User

Experience

Page 89: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

DAP with LUA

109

LUA (www.lua.org) – scripting language

that allows for advanced checks, e.g.

- check for any AV

- check for any AV, AS, Firewall

- regexp matching of hotfixes, DN etc

Page 90: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

LUA examples

110

assert(function()

function check(antix)

if (type(antix) == "table") then

for k,v in pairs(antix) do

if (EVAL(v.exists, "EQ", "true", "string")) then

return true

end

end

end

return false

end

return (check(endpoint.av) or check(endpoint.fw) or check(endpoint.as))

end)()

Check for Any Antivirus, Firewall or

AntiSpyWare

Page 91: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

DAP_TRACE: DAP_open: B09086B0

DAP_TRACE: DAP_add_CSD: csd_token = [2441266B55C307BA5BEB70E5]

.....

DAP_TRACE: Username: [email protected], aaa.ldap.logonCount = 15

DAP_TRACE: Username: [email protected], aaa.ldap.sAMAccountName = scratchy

.....

DAP_TRACE:

dap_install_endpoint_data_to_lua:endpoint.as["MicrosoftAS"].description="Windows Defender"

DAP_TRACE: name = endpoint.as["MicrosoftAS"].description, value = "Windows Defender"

DAP_TRACE:dap_install_endpoint_data_to_lua:endpoint.as["MicrosoftAS"].version="6.1.7600.16385"

DAP_TRACE: name = endpoint.as["MicrosoftAS"].version, value = "6.1.7600.16385"

.....

DAP_TRACE: name = endpoint.os.hotfix["KB2654428"], value = "true"

DAP_TRACE: dap_install_endpoint_data_to_lua:endpoint.os.hotfix["KB2656373"]="true"

DAP_TRACE: name = endpoint.os.hotfix["KB2656373"], value = "true"

Troubleshooting DAP : debug dap trace

112

LDAP info

Posture

(Subset)

Page 92: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting DAP : Monitoring

113

Monitoring/

Session Details/ACL

Page 93: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting DAP : Syslog

• Debug DAP trace not always practical in production

– too much info

– no filtering on username

• Syslog Message with good DAP info : username and selected DAP records

114

%ASA-6-734001: DAP: User [email protected], Addr 192.168.254.4,

Connection AnyConnect: The following DAP records were selected for this

connection: ITsupport Access

Page 94: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Troubleshooting Hostscan Component• Enable Debugging level at ASDM, then rerun test on problematic client

115

GOT DART?

Check Host Scan log files on problematic client

- libcsd.log

- cscan.log, detailed posture attributes

These are located at

- Windows %LOCALAPPDATA%\Cisco\Cisco HostScan\log

- MAC/Linux : ~/.cisco/hostscan/log/

Examine Windows Event logs

Page 95: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

So Did We Secure the Access?

• We secured the access of VPN, but....

• ...not access via wired/wireless campus...

• In September 2014, scratchy leveraged Bash Shellshock vulnerability to break take over Itchy’sMAC using a malicious DHCP message.

116

VPNInternal Resources

ASA Wired/

Wireless

Page 96: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Dynamic Access

Policies (DAP)

Securing the ClientASA On the Rocks

- adding ISE

Some Theory

SSL and IPSECAnyConnect

FundamentalsAAA Deep Dive

Client Certificates

AAA Deep Dive

RADIUS & LDAP

Customizing the User

Experience

Agenda

117

Provisioning Client

CertificatesPosture Checking

Page 97: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

3rd Party Mobile Device

Management

Secure Unified Access with ISE

Wired/

WirelessVPN

Internal Resources

ASA

ISE

3rd Party Information SharingProfiling & Device

Inventory

Desktop Posture

Checking and

Remediation

Flexible Directory Integration

Unified Control of all Access

Page 98: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Secure Unified Access : 2 minutes ASA Configuration

119

AAA Server Group

RADIUS

I

S

E

Connection Profile

“Certs"

Connection Profile

“SMS-OTP"

We no longer need to care about

AD, LDAP or LDAP maps.. or

OTP server

Page 99: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Secure Unified Access : Workload Distribution

120

ASA Administrators We no longer need to care about AD,

LDAP or LDAP maps.. or OTP server

ISE Administrators Send your colleagues to BRKSEC-

3697, BRKSEC-3699

Page 100: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

ASA configuration of ISE AAA Server Group

121

Interim Accounting

Authorization-Only

Dynamic Authorization

(CoA, Change of Authorization)

Page 101: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

RADIUS Deep Dive: Client Certificate Authentication

• Authentication is between AnyConnect and ASA, ISE never sees or validates cert

• ASA does a authorize-only lookup (RFC 5176) with no password

122

I

S

E

ACCESS REQUEST- [email protected]

- service-type= authorize-only

Logon

ASA

ISE

ACCESS ACCEPTclass="CatsCorp"

ISE

Page 102: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

RADIUS Deep Dive: Connection Profile Name to ISE

• ASA sends info about Connection Profile and Client Type to RADIUS server

• Can be used by RADIUS Server Policy

123

I

S

E

ACCESS REQUEST- [email protected]

- service-type= authorize-only

- "connection-profile" = certs

ISE

ACCESS ACCEPTclass="CatsCorp"

Logon

ASA

Certs used,

set class =

CatsCorp

ISE

Page 103: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

RADIUS Deep-Dive: AnyConnect Identity Extensions

• AnyConnect Identity Extensions (ACIDEX) forwarded via ASA to ISE

• Contains info on OS, Version, MAC Addresses, AnyConnect version....

• Can be used for ISE profiling and policy decisions

125

I

S

E

ACCESS REQUEST- [email protected]

- device-os=win

- device-mac=000C2908CA2F

- device-platform= 6.1 SP1

- device-anyconnect = 4.0.0051

- device-uid=1398FB9.......

ISE

Logon

ASA

Update

profiling DB

for this

MACISE

Page 104: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect Identity Extensions from Mobile Devices• AnyConnect Mobile (iOS, Android) do not send MAC address

– not available through OS API

• Currently ISE uses MAC address as key for Profiling, MDM lookup

• Future versions of ISE may leverage device UID for these lookups

126

I

S

E

ISE

Page 105: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

RADIUS: Keeping track of IP addresses

• Client physical ip address in RADIUS Calling-Station-ID

• Client virtual ip address in RADIUS Accounting Framed-IP-Address

– turn on RADIUS accounting for visibility

128

I

S

E

ACCOUNTING START- [email protected]

- Framed-IP-Address=10.99.19.1

ISE

ASA

Update

Session

Directory

for this IP

ACCESS REQUEST- [email protected]

- Calling-Station-ID=85.12.17.22

10.99.19.1

85.12.17.22

ISE

Page 106: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

ASA Authorization Options

• IETF Class Attribute

– map to Group Policy where Filter (ACL), VLAN restriction etc. defined

• IETF Filter ID Attribute:

– map to ACL pre-defined on ASA

• DAP (Dynamic Access Policy) specifying ACL

• Downloadable ACL (dACL)

– ACL defined on ISE and downloaded with RADIUS to ASA

• Security Group TAG (SGT)

132

ASA

ACCESS ACCEPTIETF Class

IETF Filter-ID

Downloadable ACL

SGT

ISE

Page 107: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

A Note on other (not The Firewall Rule table) ACLs • Other ACL options: Group Policy, DAP, Filter-ID, dACL

– applied from different places in GUI, separate from main Firewall Ruleset

– applied from RADIUS (Filter-ID)

133

ACL=

catsCorp

DAP

CatsCorp

ISE

Filter-ID

GroupPolicy

CatsCorp

Page 108: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Consolidated Stateful Access Policy

134

Unselect, to let VPN traffic go

through Global/interface ACLs

Mix and Match

ACEs with and

without SGTs

Unified Control of all Access

Page 109: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Authorization with Security Group Tags

• ISE assigns SGTs to client session

• SGT used by ASA terminating Remote Access for policy enforcement

• ...and/or enforced by downstream device (e.g. ASA or Nexus in DC)

– SGT info propagated by SXP or native SGT tagging (ASA 9.3.2)

136

ASA

ASA

Access-AcceptSGT=CorpCats

Source Source SGT Destination Service Action

Internal

FW

ISE

Unified Control of all Access

Page 110: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

This is Obviously Cool, but any Benefits?

• De-coupling ip addressing from security

• Adding context (corporate device, AD group, posture status) to Firewall Rules

• Easy to configure same policy for VPN, Wired, Wireless

• ASA RA config: Consolidated, Statefull Security Policy.

137

ASA

ASA

Access-AcceptSGT=CorpCats

Source Source SGT Destination Service Action

Internal

FW

ISE

Unified Control of all Access

Page 111: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect ISE Posture Module

• Windows and MAC

• Checks and Remediates Posture

– Works on campus (wired, wireless 802.1X)

– Works with AnyConnect VPN

• Software and XML config file provisioned from

– ASA

– ISE or

– via Desktop Management System

• Requires Compliance Module provisioned from

– ISE or

– via Desktop Management System

138

Desktop Posture

Checking and

Remediation

Page 112: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Windows

AnyConnect / NAC Agent

MAC OSX

AnyConnect / NAC Agent

Client Provisioned by ISE

Posture Assessment

Microsoft Updates

Not ApplicableService Packs

Hotfixes

OS / Browser Versions

AntiVirus

Installation / Signatures

AntiSpyware

Installation / Signatures

File Data

Not AvailableServices

Application / Processes

Registry Keys

Posture Remediation

Passive Re-Assessment (PRA)

Desktop Posture Assessment

139

Agent Listing

Page 113: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect ISE Posture Flow

140

ACCESS REQUEST

ACCESS ACCEPT

- url-redirect-ACL=Quarantine

- url-redirect=https://ise...

- SGT = Quarantine

Logon

Discovers ISE

Posture Req

Posture Report

(Compliant)

CoA REQUEST

- SGT = CleanCat

- DACL

CoA ACK

ASA ISE

Page 114: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

What to Configure on ASA for ISE Posture

• Configure a standalone ACL

– permit means redirect traffic to ISE (default)

– deny means do not redirect : this is traffic to ISE itself, traffic to remediation servers...

– name of ACL must match RADIUS attribute "url-redirect-acl" signaled by ISE

141

Permit means

"Redirect to ISE"

Deny means

"Do not Redirect"

Page 115: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Information Sharing

• ISE knows identity, device, posture status, authentication method for everything

• ISE shares info via pxGrid

143

p

x

G

r

i

d

ISE

3rd Party Information Sharing

FirePOWER

3rd Party

WSA

Page 116: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Dynamic Access

Policies (DAP)

Securing the Client

ASA On the Rocks

- adding ISE

Some Theory

SSL and IPSECAnyConnect

FundamentalsAAA Deep Dive

Client Certificates

AAA Deep Dive

RADIUS & LDAP

Customizing the User

Experience

Agenda

145

Provisioning Client

CertificatesPosture Checking

Page 117: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

(No) Split Tunnelling Policy

• Defined in Group Policy : whether to allow traffic outside of the tunnel

146

DENIED

Internet

Split DNS

Split IPv4

Split IPv6

ASA

Page 118: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Note on Split Tunnelling Policy for mobile devices

• Even with no Split Tunneling (Tunnel All Networks), certain traffic from mobile devices (e.g. iTunes) goes outside the tunnel

147

DENIED

ASA

Yusuf Islam

Page 119: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Split Tunneling Example (IPv4 and IPv6)

148

Extended ACL

(extended ACLs are

unified v4 v6)

Add IPv4 and IPv6

networks in the

Source

Page 120: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

No Split Tunneling but Allow Local LAN Access

150

DENIED

Exclude Network List

0.0.0.0/32

::/128

Must also be

allowed per client

profile

Group Policy

ASA

Page 121: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Per App VPN

• Available for iOS 7.0+, Samsung Knox, Generic Android 5.0+

• Allows for tunneling specified subset of apps through one AnyConnect tunnel

– save resources : don’t Netflix over VPN tunnel

– security: don’t allow non enterprise apps on enterprise network

• Configured via DAP

• Works with or without an Enterprise MDM

153

ASA

Page 122: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Seamless Security with Always-On

• Force (some) users to always be connected over VPN when off-premises

– works on Windows, MAC

• Objective #1: Increased Security if surfing out via Enterprise Proxy

– WCCP or Explicitly Proxy (centrally configured at ASA)

• Objective #2 : Seamless, simple user experience

– Automatic Connection, "I am always at work"

154

fileshare

Internet

webASA

Page 123: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

AnyConnect Client Profile with Always-On• Define conditions for

Trusted Network Detection (DNS Servers and Domain)

• Define Always-On (don't forget Server List)

• Connection Failure Policy : Open or Closed

– Balance Security Requirements vs. Risk of No Network...

– If Closed, specify if traffic will be allowed for X minutes if Captive Portal is detected

– "Last VPN Local Resource Rules" : Last Client Firewall Rules

155

Always On

Blocks traffic until tunnel

is established, except if

Captive Portal is

detected

Trusted Network

Detection automatically

establishes tunnel if not on

enterprise network

(can work w/o Always On)

AnyConnect

Client Profile

Page 124: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Disabling Always-On with DAP

• Always-On can be disabled by DAP

• AnyConnect will remember this setting when disconnected

156

Page 125: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Always On does not work for Mobile Devices

• Forcing Always-On not possible due to lack of OS APIs

– ... vendor considerations for battery life, security

• Trusted Network Detection (TND) for Android

• On Demand VPN for iOS

160

Page 126: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

On Demand VPN for iOS - Configuration

• VPN automatically connected when traffic directed to predefined domain

• Requires client certificate

• Configured in Client Profile/Server List/Additional Mobile Only Settings

161

Always connect

when going to

.labrats.se

AnyConnect

Client Profile

Page 127: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

On Demand VPN for iOS – User Experience

162

VPN

Page 128: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Dynamic Access

Policies (DAP)

Securing the ClientASA On the Rocks

- adding ISE

Some Theory

SSL and IPSECAnyConnect

FundamentalsAAA Deep Dive

Client Certificates

AAA Deep Dive

RADIUS & LDAP

Customizing the User

Experience

Agenda

164

Provisioning Client

CertificatesPosture Checking

Page 129: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Seamless Office Experience by Start-Before-Logon

• Allows (some) Windows users to connect VPN before logging into computer

• Why? Allow domain-logon, GPOs, logon-scripts, change passwords, etc...

• Can be used with or without Always-On

165

fileshareInternet

AD1. VPN Connection

2. Domain Logon

ASA

Page 130: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Configuring SBL in Client Profile

• May make it user controllable

166

Note : Client certificates in User Store typically not accessible before logon

(no knowledge of who the user is).

Client certificates on Smart Cards will work!

AnyConnect

Client Profile

Page 131: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

SBL User Experience

167

Mouse Click

Needed!

Page 132: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

SBL User Experience with Smart Cards (2)

168

Page 133: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

SBL User Experience with Smartcards (3)

169

Smartcard can also be

leveraged for Domain logon,

creating an “SSO Experience”

Page 134: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Running Scripts after Connect and Disconnect• Runs a predefined script when (some) users connect to (or disconnect from

VPN)

• Any native script language understood by client ( *.vbs, *.sh etc)

• Script can be downloaded from ASA, or distributed by some other means

• Why?

– Allow mapping of drives, GPO-update when SBL is not possible (e.g. behind a captive portal).

– Also works on non domain members, including MAC, Linux

170

fileshareInternet

ADVPN Connection

net use

q:.....

net use

q: ...

ASA

Page 135: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Configuring Scripting

• Enable Scripting in AnyConnect Client Profile

• Optionally : Import script to ASA for download to allclients

• Alternatively, use other means of putting the script in the script directory for desired clients

171

Page 136: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

On the Client : The Scripts Folder

172

AnyConnect executes the script in the folder that starts with

"OnConnect"/"OnDisconnect" after VPN connection/disconnection

Only one script is executed, but that script can launch other scripts

Troubleshooting : Check that script exists in folder and that AnyConnect Profile allows scripting.

Check that script executes ok when invoked from local machine (permissions etc).

Page 137: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Conclusion

176

Secure Client with a Seamless User Experience

Strong authentication and Granular Access Control with AAA and DAP

Consider using ISE for Unified Access (VPN, Wired, Wireless)

Find Balance between Requirements and Complexity (testing, maintenance)

Good security and networking skills are essential, but also knowledge of adjacent technologies such as Active Directory, LDAP and PKI, ISE… as well as different client platforms

Page 138: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Important Information

• No animals were harmed during the making of this session

177

Page 139: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Call to Action

• Visit the World of Solutions for

– Cisco Campus

– Walk in Labs

– Technical Solution Clinics

• Meet the Engineer

• Lunch time Table Topics

• DevNet zone related labs and sessions

• Recommended Reading: for reading material and further resources for this session, please visit www.pearson-books.com/CLMilan 2015

178

Page 140: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by

© 2015 Cisco and/or its affiliates. All rights reserved.BRKSEC-3033 Cisco Public

Complete Your Online Session Evaluation

• Please complete your online sessionevaluations after each session.Complete 4 session evaluations& the Overall Conference Evaluation(available from Thursday)to receive your Cisco Live T-shirt.

• All surveys can be completed viathe Cisco Live Mobile App or theCommunication Stations

179

Page 141: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by
Page 142: Advanced AnyConnect Deployment and Troubleshooting with ASA · 2016-08-15 · Cisco Public AnyConnect Fundamentals : ASA Server Certificate • ASA certificate should be trusted by