Top Banner
v2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist May 2015
46

V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

Dec 21, 2015

Download

Documents

Ethan Bates
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

v2 March © 2015 Citrix

NetScaler Gateway with Citrix Desktops & AppsThe Ultimate How-To Guide for Successful Deployments

Lucas Araujo

Readiness Specialist

May 2015

Page 2: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Agenda

• Traffic flow for NetScaler Gateway deployment scenarios

• How policies and Smart Access filters operate as well as the configuration consideration for StoreFront

• Troubleshooting tips to identify common issues in NetScaler Gateway deployments

Page 3: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Tweet about this session with hashtag

#SYN404 and #citrixsynergy

Page 4: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix | Confidential

Traffic flow for NetScaler deployments

Page 5: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Physical Deployment ModesOne-Arm

Public Private1. User Request 2. User Request

3. Response4. Response

Page 6: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Physical Deployment ModesTwo-Arm

Public Private

1. User Request 2. User Request

3. Response4. Response

Page 7: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

STA XML

443 80/443

389/636

Published Application Enumeration Workflow

NetScaler StoreFront

XenAppXenDesktop

LDAP

External DMZ Internal

Page 8: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Published Application Launch Workflow

STA XML

NetScaler

StoreFront

XenAppXenDesktop

STA / XML

80/443

1494/2598

80/443

External DMZ Internal

443

Page 9: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix | Confidential

Policies & ConfigurationHow Policies and Smart Access Filters operate & configuration considerations

Page 10: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

How To Access the Wizard?

Page 11: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

What is your deployment?

Page 12: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Create the Gateway

Page 13: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Bind SSL Certificate

Page 14: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Select the Authentication Settings

Page 15: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Configure StoreFront Settings

Page 16: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Enable Pass-through from NetScaler GatewayStep 1

Page 17: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Add the GatewayStep 2

Page 18: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Add the GatewayStep 2

Page 19: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Enable Remote AccessStep 3

Page 20: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Authentication PolicyWhat’s Gets Created?

Page 21: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Session Policy

Receiver Session Policy

Receiver for Web Session Policy

What’s Gets Created?

Page 22: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Smart Access

Page 23: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix | Confidential

Troubleshooting

Page 24: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Troubleshooting: Potential Issue Areas

VIP

Authentication

Authorization

App Enumeration

1- SF/WI Site Settings2- SF/.WI Trace3- Event Log

1- ProfileSettings2- NetScaler Trace3. Certifcate

1- XML Settings 2- STA Logging3- CDF Tracing

nssslvpn.txt

ICA file - ID

App Launch

LDAP /LDAPS (TCP) - 389/636

nssslvpn.txt

STA path on SF/WI

1- NS Trace2- STA Monitor (newnslog)3 - Licensing

1- Auth Svr Settings2- NS Trace3- aaad.debug

1- Auth Settings2- NS.log

Ports and IP rules

Security Event Log on DC (LDAP or IAS)

Problem Types:

Ports and IP rules

Ports and IP rules

External DMZ Internal

NetScalerStoreFront

XenAppXenDesktop

LDAP

SNIP or MIP

NSIP

CDF Tracing

Page 25: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Troubleshooting: Potential Issue Areas

VIP

LDAP /LDAPS (TCP) - 389/636

1- Auth Svr Settings2- NS Trace3- aaad.debug

Security Event Log on DC

(LDAP or IAS)

External DMZ Internal

NetScalerStoreFront

XenAppXenDesktop

LDAP

SNIP or MIP

NSIPAuthentication

Problem Types:

Page 26: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Failed to Authenticate

Page 27: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

root@ns# cat /tmp/aaad.debugWed Aug 6 16:07:47 2008

/home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/naaad.c[359]: process_kernel_socket call to authenticate user :ica, vsid :716Wed Aug 6 16:07:47 2008

/home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/ldap_drv.c[40]: start_ldap_auth attempting to auth ica @ 172.16.1.27Wed Aug 6 16:07:47 2008

/home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/ldap_drv.c[291]: receive_ldap_bind_event receive ldap bind eventWed Aug 6 16:07:47 2008

/home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/ldap_drv.c[551]: receive_ldap_user_search_event built group string for ica of: notepadWed Aug 6 16:07:47 2008

/home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/naaad.c[1142]: send_accept sending accept to kernel for : ica

Aaad.debug

Page 28: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

root@ns# cat /tmp/aaad.debugWed Aug 6 16:03:49 2008

/home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/naaad.c[359]: process_kernel_socket call to authenticate user :ica, vsid :716Wed Aug 6 16:03:49 2008 /home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/ldap_drv.c[40]: start_ldap_auth attempting to auth ica @ 172.16.1.27Wed Aug 6 16:03:49 2008

/home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/ldap_drv.c[291]: receive_ldap_bind_event receive ldap bind eventWed Aug 6 16:03:49 2008 /home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/ldap_drv.c[551]: receive_ldap_user_search_event built group string for ica of: notepadWed Aug 6 16:03:49 2008/home/build/rs_81_58_1/usr.src/usr.bin/nsaaad/../../netscaler/aaad/naaad.c[1198]: send_reject sending reject to kernel for : ica

Aaad.debug

Page 29: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Troubleshooting: Potential Issue Areas

VIP

Authorization

nssslvpn.txt

1- Auth Settings2- NS.log

Ports and IP rules

Problem Types:

External DMZ Internal

NetScalerStoreFront

XenAppXenDesktop

LDAP

SNIP or MIP

Page 30: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Grep ns.log

• # grep sac /var/log/ns.log

• Aug 1 16:00:37 <local0.alert> 10.217.140.160 08/01/2008:23:00:37 GMT ns 1958 : SSLVPN HTTP_RESOURCEACCESS_DENIED : Context [email protected] - User sac - Total_bytes_send 642 - Remote_host www.slashdot.org - Denied_url GET / - Denied_by_policy "SAC" - Group(s) "N/A"

• Aug 1 16:01:33 <local0.alert> 10.217.140.160 08/01/2008:23:01:33 GMT ns 2018 : SSLVPN HTTP_RESOURCEACCESS_DENIED : Context [email protected] - User sac - Total_bytes_send 484 - Remote_host 172.16.1.28 - Denied_url GET /cvpn/hHBFHmhttp://172.16.1.28/citrix/NSG - Denied_by_policy "SAC" - Group(s) "N/A"

• Aug 1 16:01:34 <local0.alert> 10.217.145.160 08/01/2008:23:01:34 GMT ns 2019 : SSLVPN NONHTTP_RESOURCEACCESS_DENIED : Context [email protected] - User sac - Client_ip 10.216.106.63 - Nat_ip "Mapped Ip" - Vserver 10.217.140.162:443 - Source 10.216.106.63:1888 - Destination 172.16.1.27:139 - Total_bytes_send 293 - Total_bytes_recv 0 - Denied_by_policy "SAC" - Group(s) "N/A"

• Aug 1 16:07:07 <local0.alert> 10.217.140.160 08/01/2008:23:07:07 GMT ns 2077 : SSLVPN HTTP_RESOURCEACCESS_DENIED : Context [email protected] - User sac - Total_bytes_send 484 - Remote_host 172.16.1.28 - Denied_url GET /cvpn/9nVti7http://172.16.1.28/citrix/NSG - Denied_by_policy "SAC" - Group(s) "N/A"

Page 31: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Troubleshooting: Potential Issue Areas

VIP

App Enumeration 1- SF/WI Site Settings2- SF/.WI Trace3- Event Log

1- ProfileSettings2- NetScaler Trace3- Certificate

1- XML Settings2- STA Logging3- CDF Tracing

nssslvpn.txt

Problem Types:

Ports and IP rules

External DMZ Internal

NetScalerStoreFront

XenAppXenDesktop

LDAP

SNIP or MIP

Page 32: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

openssl x509 -noout -modulus -in certificate.crt openssl rsa -noout -modulus -in privateKey.key

openssl req -noout -modulus -in CSR.csr

Verify private key

Page 33: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Verify the Certificate Chainhttp://digicert.com/help

Page 34: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Priority of Policies

Priority Order

User (highest priority)

Group

Virtual Server

Global (lowest priority)

The numerical priority takes precedence regardless of where the policy is bound. 

Priority Number

Page 35: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

How To See Policy Hitshttp://support.citrix.com/article/CTX138840

1 7001 30 1 0 pol_hits Policy(LDAP)

3 0 28 1 0 pol_hits Policy(PL_WB_10.25.223.119)

Page 36: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Troubleshooting: Potential Issue Areas

VIP

ICA file - ID

App Launch STA path on SF/WI

1- NS Trace2- STA Monitor (newnslog)3- Licensing

Problem Types:

Ports and IP rules

External DMZ Internal

NetScalerStoreFront

XenAppXenDesktop

LDAP

SNIP or MIP

CDF Tracing

Page 37: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

1:47:12 (CITRIX) SERVER line says HOSTNAME=cag, hostid is HOSTNAME=ns 1:47:12 (CITRIX) Invalid hostid on SERVER line Users of CAG_SSLVPN_CCU: (Error: 2 licenses, unsupported by licensed serv

License.log

Page 38: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Wireshark

Page 39: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

STA Ticket Response

STA ID

STA Ticket

Page 40: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Analyze the Default.ica Values

40 = Port 259810 = Port 1494 STA ID STA Ticket

Page 41: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

NetScaler Gateway and STA

STA ID

UP State

Page 42: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Citrix Insight Services

Page 43: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Resources

• How To Configure NetScaler Gateway with StoreFront – Deployment Guide

• How To Troubleshoot Authentication on NetScaler - CTX114999

• How To Troubleshoot License Issues – CTX11644

• How To Verify Policy Hits on NetScaler - CTX138840

• How To Enable STA Logging on XenApp - CTX120589

• How To Capture nstrace from NetScaler CLI - CTX120941

• NetScaler + Wireshark – Citrix Blog

Page 44: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Questions?

Page 45: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

© 2015 Citrix

Before you leave…

• Conference Surveys are available online at www.citrixsynergy.com starting Thursday, May 14 at 9:00 a.m.– Those who provide feedback by 6pm, Friday, May 15th will receive:

– $20 Amazon e-gift card– Name entered in a drawing for a free Trip to Synergy 2016 (5 chances)

Download presentations starting Monday May, 18th from the My Event Planning tool

Page 46: V2 March © 2015 Citrix NetScaler Gateway with Citrix Desktops & Apps The Ultimate How-To Guide for Successful Deployments Lucas Araujo Readiness Specialist.

Work better. Live better.Work better. Live better.