hands-on lab exercise guide -...

99
Netscaler NewHire Training Lab Hands-on Lab Exercise Guide Modified by Paul Walker 11/3/2014

Upload: others

Post on 06-Apr-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

Netscaler NewHire Training Lab

Hands-on Lab Exercise Guide

Modified by Paul Walker 11/3/2014

Page 2: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 1 |

Contents Contents .................................................................................................................................... 1

Overview .................................................................................................................................... 3

Scenario..................................................................................................................................... 7

Module 1- Exercises for Getting Started ..................................................................................... 8

Exercise 1-1: Performing an Initial Configuration ........................................................................ 8

Exercise 1- 2 .............................................................................................................................11

Exercise 1-2: Installing a NetScaler License- ............................................................................11

Exercise 1-3 ..............................................................................................................................13

Exercise 1-4 ..............................................................................................................................18

Module 2-1 Exercises for Basic Networking ..............................................................................20

Module 3- Exercises for High Availability ...................................................................................23

Module 4- Exercises for Securing Netscaler ..............................................................................27

Enabling External Authentication ..............................................................................................27

Module 5-1 Exercises for Basic Load Balancing ........................................................................34

Exercise 5-2 ..............................................................................................................................39

Exercise 1-1: Configuring a Load-Balancing .............................................................................39

HTTP-ECV Monitor ...................................................................................................................39

Overview ...................................................................................................................................39

Testing the Load Balancing HTTP-ECV Monitor .......................................................................40

Exercise 5-4- Configuring Radius Load Balancing ....................................................................42

Exercise 5-4: Configuring Radius Load Balancing .....................................................................42

Exercise 5-4- Creating Radius Load Balancing Virtual Servers .................................................43

Exercise 5-4- Testing Radius Persistency .................................................................................44

Module 6 – Exercise for SSL Offload ........................................................................................45

Exercise 5-4: Configuring Radius Load Balancing .....................................................................45

Module 7 – Exercise for Global Server Load Balancing .............................................................50

Exercise 5-4: Configuring GSLB ...............................................................................................50

Module 7 – Exercise for Global Server Load Balancing .............................................................54

Exercise 7-2: Configuring GSLB ...............................................................................................54

Module 7 – Exercise for Global Server Load Balancing .............................................................56

Exercise 7-3: Configuring DNS to Test a GSLB Configuration ..................................................56

Module 8 – Exercise for AppExpert Classic Policy Engine ........................................................62

Exercise 8-1: Configuring Content Filtering Using Classic Policies ............................................62

Module 9 – Exercise for Rewrite,Responder, And URL Transform ............................................65

Exercise 9-1: Configuring Rewrite, Responder, and URL Transform .........................................65

Module 9 – Exercise for Rewrite,Responder, And URL Transform ............................................68

Exercise 9-2: Removing HTTP Headers....................................................................................68

Page 3: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 2 |

Module 9 – Exercise for Rewrite,Responder, And URL Transform ............................................71

Exercise 9-3: Inserting HTTP Headers ......................................................................................71

Module 9 – Exercise for Rewrite,Responder, And URL Transform ............................................74

Exercise 9-4: Configuring Responder to Redirect to HTTPS .....................................................74

Module 9 – Exercise for Rewrite,Responder, And URL Transform ............................................76

Exercise 9-5: Configuring Responder to Redirect Using String Maps ........................................76

Module 9 – Exercise for Rewrite,Responder, And URL Transform ............................................79

Exercise 9-6: Adding a Custom Response ................................................................................79

Module 9 – Exercise for Rewrite,Responder, And URL Transform ............................................81

Exercise 9-7: Adding URL Transformations ..............................................................................81

Module 10 – Exercise for Content Switching .............................................................................84

Exercise 10-1: Configuring Content Switching...........................................................................84

Module 11 – Exercise for Optimizing Traffic ..............................................................................89

Exercise 11-1: Configuring Compression ..................................................................................89

Module 12 – Exercise for Monitoring and Management .............................................................92

Exercise 12-1: Auditing and Logging .........................................................................................92

Module 12 – Exercise for Monitoring and Management .............................................................95

Exercise 12-2: Monitoring .........................................................................................................95

Page 4: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 3 |

Overview

Hands-on Training Module

Objective

This lab is to provide hands on training for engineers that are new to Netscaler.

Prerequisites

Basic Networking Knowledge and Familiarity with Windows

Audience

Technical Support

Lab Environment Details

Describe the lab environment. The system diagram of the lab is shown below:

The Student Desktop is accessed remotely using Citrix Receiver running on your laptop. All

windows applications such as XenCenter, (the XenServer GUI management tool), are accessed

from the Student Desktop.

Page 5: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 4 |

Lab Guide Conventions

This symbol indicates particular attention must be paid to this step

Special note to offer advice or background information

reboot Text the student enters or an item they select is printed like this

VMDemo Filename mentioned in text or lines added to files during editing

Start Bold text indicates reference to a button or object

Focuses attention on a particular part of the screen (R:255 G:20 B:147)

Shows where to click or select an item on a screen shot (R:255 G:102 B:0)

List of Virtual Machines Used

VM Name IP Address Description / OS

Site1.AD.training.lab 192.168.10.11

Site1.sqlserver 192.168.10.12

Site1.WebBlue 192.168.10.20

Site1.WebGreen 192.168.10.21

Site1.WebRed 192.168.10.22

Site1-Win7Client 192.168.10.23

Site1-SharePoint 192.168.10.24

Site1-Exchange 192.168.10.27

Site1-NS_VPX_0 192.168.10.50

Site1-NS_VPX_1 192.168.10.60

Site2-

AD2.remote.lab 192.168.20.11

Site2-WebBlue2 192.168.20.20

Site2-NS_VPX2 192.168.20.70

Required Lab Credentials

The credentials required to connect to the environment and complete the lab exercises.

VM Name IP Address Password Description

Site1-Win7Client 192.168.10.23 Citrix123 Username:Training\administrator

Site1-NS_VPX_x Nsroot\ns

root

AD2.remote.lab 192.168.20.20 Citrix123

4 Username:Remote\administrator

Page 6: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 5 |

Page 7: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 6 |

How to Log into the Lab Environment

Follow the directions below to access the lab environment.

STEP 1

Launch your web browser and go to the training portal URL address provided by your instructor (eg:

http://ILT.CitrixVirtualClassroom.com)

STEP 2

On the website, enter:

Session Code The Session code provided by your instructor

Business Email Address Your email address

Click Get Started.

STEP 3

You will see a welcome screen with XenServer credentials.

You will use the credentials from your welcome screen to attach XenCenter to your XenServer host.

Click Start Lab to launch your lab session.

Wait for the application to launch and you will see your student desktop used to launch the various

applications needed during the lab.

Example

Page 8: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 7 |

Scenario Your company has just purchase a Netscaler device. You have been task with integrating the

Netcaler into your company’s existing infrastruture to protect windows Webserver.

Page 9: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 8 |

Module 1- Exercises for Getting Started Exercise 1-1: Performing an Initial Configuration

Overview

http://www.citrix.com/tv/#videos/504

This exercise will demonstrate how to complete an initial configuration on a NetScaler system, including how to set the date and time using a network time protocol server.

Before You Begin To begin this lab, ensure that the following virtual machines are started:

• Site1-AD.training.lab • Site1-NS_VPX_0 • Site1- Win7Client

Estimated time to complete this exercise: 5 minutes

Step by step guidance

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Log on to the Win7Client virtual machine using the training\administrator credentials.

a. Open XenCenter from the hosted desktop.

b. Select the Win7Client virtual machine, click the Console tab, and log on using the

training\administrator credentials.

2. 2. Log on to the NetScaler configuration utility in the Chrome web browser using the

nsroot/nsroot credentials.

a. Launch a Chrome browser window from the Win7Client desktop.

b. Type http://192.168.10.50 in the address bar and press Enter.

c. Type nsroot in the User Name field, and type nsroot in the Password field, then click

Login.

Page 10: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 9 |

3. Configure the NetScaler to your local time zone. a.

Expand the System node and select Settings.

b. Click Change time zone in the Settings pane.

The Time Zone Selector window appears.

c. Deselect Use UTC Time Zone, choose the correct time zone from the drop-down

menu,

and click OK.

d. Click Save in the upper-right corner of the configuration utility window to save the

NetScaler configuration, click Yes to confirm saving the running configuration, and then

click OK when the save has finished.

4. Add a network time protocol (NTP) server to the NetScaler using 192.168.10.11 as the

server address.

a. Expand the System node and select NTP Servers.

b. Click Add in the NTP Servers pane.

The Create NTP Server window appears.

c. Type 192.168.10.11 in the NTP server field, select Set as preferred NTP server,

click

Create, and then click Close.

The Create NTP Server window closes.

d. Click NTP Synchronization in the NTP Servers pane.

e. Select ENABLED in the Configure NTP Synchronization pane and click OK.

f. Click Save in the upper-right corner of the configuration utility window to save the

NetScaler configuration, then click Yes to confirm saving the running configuration, and

then click OK when the save has finished.

5.

6.

7.

8.

9.

Exercise Summary

Page 11: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 10 |

<<Summarize what the student accomplished in the exercise>>

The following are sample warning and info boxes.

This is a sample warning

of an important step.

Your physical XenServer name will be different.

Page 12: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 11 |

Exercise 1- 2

Exercise 1-2: Installing a NetScaler License-

Overview

http://www.youtube.com/watch?v=U-q_jdm3Tmw

This exercise demonstrates how to install a license on a NetScaler.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• Site1-AD.training.lab

• Site1-NS_VPX_0

• Site1-Win7Client

Estimated time to complete this lab: 10 minutes

Step by step guidance- Installing a License

Step Action

1. Installing a License

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility

logged on as the nsroot user for this task.

1. Examine the list of unlicensed features on the NetScaler appliance.

a. Navigate to System > Licenses in the configuration utility.

b. Examine the available features listed.

Page 13: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 12 |

2. Install a license on the NetScaler using the license provided on the Win7Client desktop.

You can run thru this process but we will SKIP this section since the machines are

license

a. Click Manage Licenses in the Licenses pane.

The Manage Licenses window opens.

b. Click Add, browse to the Win7Client desktop, open the NetScaler License folder, and

select the NetScaler_VPX1_PLT_Citrix_Education_Expires_20180109.lic file.

c. Click OK, select Do a warm reboot and Save configuration, and then click Yes.

d. Close the Chrome browser window.

3. Verify that the NetScaler license has been installed.

a. Open a new Chrome browser window.

b. Browse to http://192.168.10.50.

c. Log on to the NetScaler using the nsroot credentials.

d. Navigate to System > Licenses in the configuration utility.

e. Examine the available features listed.

Almost all of the licensed features are now available.

4.

5.

6.

7.

8.

9.

Exercise Summary

<<Summarize what the student accomplished in the exercise>>

Page 14: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 13 |

Exercise 1-3

Performing Basic Administration

Overview

This exercise will demonstrate how to complete basic administration tasks, such as enabling and disabling features,

adding NetScaler administration accounts, compare the running and saved configurations, and perform a backup of the

NetScaler system.

Before You Begin To begin this lab, ensure that the following virtual machines are started: • Site1-AD.training.lab

• Site1-NS_VPX_0

• Site1-Win7Client

Estimated time to complete this lab: 25 mins.

Step by step guidance- Enabling and Disabling Features

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Enable the SSL Offloading, HTTP Compression, Load Balancing, Content

Switching, Content Filter, and Rewrite features.

a. Expand the System node and select Settings.

b. Click Configure basic features in the Settings node.

The Configure Basic Features dialog box opens.

c. Select the following features:

• SSL Offloading

• HTTP Compression

• Load Balancing

Content Switching

• Content Filter

• Rewrite

d. Click OK.

Page 15: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 14 |

2. Enable the Responder feature.

a. Expand the System node and select Settings.

b. Click Configure advanced features in the Settings pane.

The Configure Advanced Features dialog box opens.

c. Select the following feature:

• Responder

d. Click OK.

3. Save the NetScaler configuration.

a. Click Save on the top right of the configuration utility.

b. Click Yes to confirm.

c. Click OK after the configuration has been saved.

4.

5.

6.

7.

8.

9.

10.

11.

Step by step guidance- Viewing the Running and Saved Configurations- http://blogs.citrix.com/2012/01/19/how-easy-it-is-to-diagnosetroubleshoot-netscaler

Step Action

Page 16: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 15 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Review the current saved NetScaler configuration.

a. Expand the System node and select Diagnostics.

b. Click Saved configuration in the Diagnostics pane.

The Saved Configuration dialog box is displayed. c. Review the configuration data and

click Close.

The Saved Configuration dialog box closes.

2. Review the current running NetScaler configuration.

a. Click Running configuration in the Diagnostics pane and review the configuration

data in the Running Configuration dialog box.

The Running Configuration dialog box is displayed.

b. Click Close.

The Running Configuration dialog box closes.

c. Click Saved v/s running in the Diagnostics pane.

The Information dialog box is displayed.

This dialog box shows that the settings between the saved configuration and the running

configuration are identical.

d. Click OK.

Step by step guidance- Identifying the Netscaler Product Type- http://support.citrix.com/proddocs/topic/netscaler-vpx-10/ns-vpx-supported-hypervisor-versions-ref.html

Step Action

Page 17: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 16 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Identify the NetScaler product type.

a. Click the System node.

b. Note the Platform information in the Hardware Information section.

In this example, the NetScaler Platform is NetScaler Virtual Appliance 450000.

Step by step guidance- Performing a Configuration Backup http://blogs.citrix.com/2013/08/09/backup-and-restore-huge-value-for-netscaler-admins/

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Access the NetScaler shell from the command-line interface.

a. Expand the System node and select Diagnostics.

b. Click Command line interface in the Utilities section.

The Command Line Interface box opens.

c. Type the following command in the Command field then click Go to access the

NetScaler shell:

shell

2. Create an archive file of the NetScaler configuration.

a. Type the following command in the command field then click Go to create a backup

file of the NetScaler configuration:

tar cvzf /var/tmp/backup.tgz /flash/nsconfig

An archive of the nsconfig directory named backup.tgz is created in the /var/tmp

directory. This archive will serve as a backup for the NetScaler configuration.

b. Click Close.

Page 18: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 17 |

3. Copy the newly created backup of the NetScaler configuration to your desktop using

WinSCP.

a. Launch WinSCP on your Win7Client desktop.

b. Double-click the NS_VPX_0 in the saved sessions pane.

c. Type nsroot in the User name field and click OK. Type nsroot in the password field

and click OK.

d. In the right pane, double-click the folder icon at the top to navigate up one level from

/root.

Navigate to var > tmp and drag the backup.tgz file from the right pane to the left pane.

The Copy dialog box opens.

f. Click Copy. Close the WinSCP application then click OK to confirm.

4.

Exercise Summary

<<Summarize what the student accomplished in the exercise>>

Page 19: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 18 |

Exercise 1-4 Upgrading a NetScaler System

Overview

This exercise demonstrates how to upgrade a NetScaler system.-

http://support.citrix.com/article/CTX113357

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• Site1-AD.training.lab

• Site1-NS_VPX_0

• Site1-Win7Client

Estimated time to complete this lab: 10 minutes.

Step by step guidance

Step Action

1. Upgrading the NetScaler System

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Note the version of the NetScaler system shown on the toolbar. The version shows

NS 10.1 Build 123.9nc

2. Launch the NetScaler system upgrade wizard tool.

a. Select the System node and click Save.

b. In the System pane, select Upgrade Wizard.

The Upgrade Wizard window appears.

3. Upgrade the NetScaler to build version 123.11 using the upgrade files in the

/var/nsinstall/build_10_1_123.9 directory.

a. Click Next on the Introduction screen, and then select Appliance next to File

Location.

b. In the File/Path field, browse to / var/ nsinstall > build_10_1_129_11 directory,

select NS10.1 Build 129.11.nc click Select, and then click Next.

c. Click Next on the Manage Licenses screen

Page 20: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 19 |

4. Finish the NetScaler upgrade process.

a. On the Clean-up/Reboot screen, click Next, and then click Finish.

You will restart the NetScaler system in the next step.

b. When the Reboot NOW message appears, select No, and then click Go.

c. Click Close in the Upgrading window.

5. Restart the NetScaler system.

a. Click Reboot in the System Information pane.

b. Deselect the Save configuration option and click OK.

6. Verifying the NetScaler Upgrade

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Verify that the NetScaler has been upgraded to build version 129.11

a. After the NetScaler has been completely restarted, log on to the Configuration

Utility using the nsroot credentials.

Verify that NS10.1: Build 129.11nc. is displayed above the toolbar.

7.

8.

9.

Exercise Summary

<<Summarize what the student accomplished in the exercise>>

Page 21: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 20 |

Module 2-1 Exercises for Basic Networking

Overview- Configuring Basic Networking

This exercise will demonstrate how to enable an internal network interface, add a subnet IP address, add a VLAN, and a static route to a NetScaler system.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_0

• S i t e 1 - WebBlue

• S i t e 1 - WebGreen

• S i t e 1 - WebRed

• S i t e 1 - Win7Client

Estimated time to complete this lab: 5 minutes.

Step by step guidance 2-1- Adding a Subnet IP to the Netscaler

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task. Click SKIP if the welcome

screen appears.

1. Add the IP address 192.168.10.51 to the NetScaler as a Subnet IP using a netmask of

255.255.255.0 with Management Access enabled.

a. Navigate to Network > IPs and click Add.

b. Type 192.168.10.51 in the IP Address field.

c. Type 255.255.255.0 in the Netmask field.

d. Verify that Subnet IP is selected for the IP Type and Enable Management Access

control to support the below listed applications is selected.

e. Click Create and click Close.

Page 22: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 21 |

2. Adding a VLAN (For Knowledge Purpose Only)

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Add a VLAN to the NetScaler using 2 as the ID and bind it to 10.30.0.90.

a. Navigate to Network > VLANs and click Add.

b. Type 2 in the VLAN ID field.

c. Select the 1/2 interface in the Interface Bindings tab.

d. Click the IP Bindings tab and select the 10.30.0.90 IP address.

e. e. Click Create then click Close.

3. Adding a Static Route (For Knowledge Purpose Only)

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Add a static route to the NetScaler using 10.29.0.0 as the Network, 255.255.255.0 as the

Netmask, and 10.30.0.254 as the Gateway.

a. Navigate to Network > Routes and click Add.

b. Type 10.29.0.0 in the Network field. c. Type 255.255.255.0 in the Netmask field.

d. Type 10.30.0.254 in the Gateway field.

e. Click Create then click Close.

4. Validating Task Configurations (For Knowledge Purpose Only)

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Ping the Gateway IP address, 10.30.0.254.

a. Expand the System node and select Diagnostics.

b. Select Ping under Utilities. c. The Ping window will appear.

d. Type 10.30.0.254 in the Host Name field, type 4 in the Count field, and then click

e. Run. f. Valid results will look similar to the following output:

g. Click Close when the ping is complete.

Page 23: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 22 |

5. Ping the WebBlue, WebGreen, and WebRed servers to verify that the NetScaler

system has connectivity to the backend servers.

a. Select Ping under Utilities. The Ping window will appear.

b. Type 10.29.0.205 in the Host Name field, type 4 in the Count field, and then click

c. Run.

d. Valid results will look similar to the following output:

e. Repeat the previous step for the IP addresses 10.29.0.210 and 10.29.0.215.

f. Click Close when the ping is complete.

g. View the routes that have been set on the NetScaler, and their current state.

a. Expand the Network node and select Routes.

h. All listed routes should be UP.

i. Save the configuration if the pings are successful.

j. Click Save in the upper-right corner of the configuration utility window, the click

Yes to confirm saving the configuration.

a. Click OK when the save is complete.

k. If the pings do not work, check your configuration settings within the configuration

utility and the command-line interface.

6.

7.

8.

9.

Exercise Summary

<<Summarize what the student accomplished in the exercise>>

Page 24: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 23 |

Module 3- Exercises for High Availability Overview- Configuring High Availability http://support.citrix.com/article/CTX125913

This exercise will demonstrate how to create a high-availability pair, how to test the pair for Redundancy, and how to properly break a high-availability pair.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_1

• S i t e 1 - NS_VPX_2

• S i t e 1 - Win7Client

Estimated time to complete this lab: 15 minutes.

Step by step guidance 3-1 – Configuring Site1_NS_VPX_0 and Site1_NS_VPX_1

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 and

NS_VPX_1 configuration utilities logged on as the nsroot user for this task.

1. Start NS_VPX_0 and NS_VPX_1 in XenCenter.

a. In XenCenter, click the NS_VPX_0 virtual machine and click Start at the top of

the window.

b. Click the NS_VPX_1 virtual machine and click Start at the top of the window.

c. In XenCenter, click the Win7Client virtual machine and select the Console tab.

d. Open the configuration utility for both NetScalers in the Chrome browser.

Page 25: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 24 |

2. a. Open two new Chrome browser windows. In the first window, browse to

http://192.168.10.50 (this will be designated as NS_VPX_0). In the second window,

browse to http://192.168.10.60 (this will be designated as NS_VPX_1).

b. Log on to both NetScalers using the nsroot credentials.

4. Verify that high availability monitoring is active on NS_VPX_0 and NS_VPX_1

interfaces.

a. NS_VPX_0 and NS_VPX_1: Expand the Network node and click Interfaces.

b. NS_VPX_0 and NS_VPX_1: In the interfaces pane, scroll to the right to verify that

high availability monitoring is enabled on interfaces 1/1.

3. Configuring High Availability on NS_VPX_0 and NS_VPX_1

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 and

NS_VPX_1 configuration utilities logged on as the nsroot user for this task.

1. Configure NS_VPX_0 and NS_VPX_1 to function as a high availability pair. Set

NS_VPX_1 as the remote node on NS_VPX_0 and specify both nodes to use the nsroot

logon credentials.

a. NS_VPX_0: Expand the System node and click High Availability in the

System pane.

b. NS_VPX_0: Click Add in the high availability pane.

The High Availability Setup dialog box opens.

c. NS_VPX_0: Type 192.168.10.60 in the Remote Node IP Address field, verify

that Configure remote system to participate in High Availability setup and Turn off

HA Monitor on interfaces/channels that are down are both selected.

d. NS_VPX_0: Select Login credentials for remote system are different from self

node, enter the nsroot credentials, click OK, and then click OK when the box

appears stating that the HA pair has been set up.

2. Refresh the NetScaler system configurations and verify that NS_VPX_1 is setup as

the Secondary node on NS_VPX_0.

a. NS_VPX_0 and NS_VPX_1: Expand the System node and click High

Availability in the System pane.

b. NS_VPX_0 and NS_VPX_1: Click the Refresh button in the upper right

corner of the Configuration Utility window.

c. NS_VPX_0 and NS_VPX_1: Verify that 192.168 .10.50 appears as the

Primary and 192. 168. 10. 60 appears as the Secondary.

Page 26: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 25 |

4. Testing the High-Availability Configuration

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 and

NS_VPX_1 configuration utilities logged on as the nsroot user for this task.

a. Verify the current state of the high availability pair.

b. In this exercise, the system that is configured first is the primary system. a. NS_VPX_0 and NS_VPX_1: Expand the Network node and select IPs.

c. NS_VPX_0 and NS_VPX_1: Compare the system-owned IP addresses on both NS_VPX_0 and 1. Notice which system retained its original SNIP address and which system configuration is overwritten by the high-availability configuration.

d. The system that is configured first will have the primary state (NS_VPX_0). e. Test the high-availability configuration by forcing a failover on NS_VPX_0.

a. NS_VPX_0 and NS_VPX_1: Expand the System node and select High Availability.

f. NS_VPX_0: Right-click Node ID 1 and click Force Failover. Click Yes to confirm the force failover then click OK.

g. NS_VPX_0 and NS_VPX_1: Click the Refresh button in the upper-right corner of the configuration utility.

a. NS_VPX_0 and NS_VPX_1: Verify the master state of both nodes. i. The master state of NS_VPX_0 is now secondary. ii. The master state of NS_VPX_1 is now primary.

h. Test the high-availability configuration by forcing a failover on NS_VPX_1. i. NS_VPX_1: Right-click Node ID 1 and click Force Failover. Click Yes to confirm

the force failover then click OK twice. j. NS_VPX_0 and NS_VPX_1: Click the Refresh button in the upper-right corner of

the configuration utility. a. NS_VPX_0 and NS_VPX_1: Verify the master state of both nodes.

i. The master state of NS_VPX_0 is primary again.

k. The master state of NS_VPX_1 is secondary again.

Page 27: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 26 |

5. Removing High Availability from NS_VPX_0 and NS_VPX_1

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 and NS_VPX_1 configuration utilities logged on as the nsroot user for this task.

1. Verify the current high-availability status on NS_VPX_0.

a. NS_VPX_0: Expand the System node and select High Availability.

b. Verify that the Node 0 master state is Primary, and the node state for both

nodes is UP.

If NS_VPX_0 is not listed as the primary node, use the force high-availability failover

command to promote NS_VPX_0 as the primary node.

2. Remove the secondary node from the high-availability configuration on NS_VPX_0.

a. Select Node 1 from the high-availability pane and click Remove.

b. Click Yes to confirm the removal of the node.

3. Remove high availability node 1 from NS_VPX_1.

a. Expand the System node and select High Availability.

b. Select Node 1 from the high-availability pane and click Remove.

c. Click Yes to confirm the removal of the node.

4. Shut down NS_VPX_1 virtual machines.

a. Click NS_VPX_1 and then click Shut Down in the top toolbar.

6.

7.

8.

9.

Exercise Summary

<<Summarize what the student accomplished in the exercise>>

Page 28: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 27 |

Module 4- Exercises for Securing Netscaler

Enabling External Authentication

Overview – Enabling External Authentication

This exercise will demonstrate how to configure the NetScaler system to use an LDAP server to authenticate system users.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_0

• S i t e 1 - Win7Client

To complete this exercise, you need to have the following information: Active Directory architecture

Active Directory Value

AD Controller 192.168.10.11

AD Domain Name: Base DN DC=training,DC=lab

BindDN [email protected]

BindDN Password Password1

Server LoginName Attribute samAccountName

Estimated time to complete this lab: 15 minutes.

Step by step guidance- Creating a New Administrator Account

Step Action

Page 29: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 28 |

1. Creating a New Administrator Account

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Create a new administrator account called "testuser" with read-only permissions.

a. Expand the System node and select Users.

b. Click Add in the System Users pane.

The Create System User dialog box opens.

c. Type testuser in the User Name field, then type Password1 in the Password

field and re-type Password1 in the Confirm Password field.

d. Select read-only in the Command Policies pane under Active. Click Create and

then click Close.

The Create System User dialog box closes.

e. Click Save, click Yes, and then click OK to save the current configuration. Click

Logout to log off from of the current session.

Test the new administrator account by attempting to enable a feature.

a. Log on to the configuration utility with the testuser/Password1 credentials.

b. Expand the System node and select Settings.

c. Click Configure basic features in the Settings node.

The Configure Basic Features dialog box opens.

d. Select a feature to enable and click OK.

e. Verify that the chosen feature cannot be enabled with read-only access, click

OK, and then click Close.

f. Click Logout to log off from the current session.

Page 30: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 29 |

2. Examining Command Policies

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Open Chrome and browse to the configuration utility for NS_VPX_0 and log on

using the nsroot credentials.

Examine the expression for the superuser policy.

a. Navigate to System > Command Policies.

b. Expand the superuser policy in the Policies section.

Note the policy allows any command to be permitted using the ".*" expression.

Create a new policy called show_only that only allows the "show" command using the string (^show\s+.*) as the command.

a. Click Add in the Policies section.

b. Type show_only in the Policy Name field.

c. Select Allow from the drop-down list for the Action.

d. Click in the Command Spec field and clear any existing text, then type (^show\s+.*).

e. Click Create and then click Close.

Examine the expression for the superuser policy.

a. Navigate to System > Command Policies.

b. Expand the superuser policy in the Policies section.

Note the policy allows any command to be permitted using the ".*" expression.

Create a new policy called show_only that only allows the "show" command using

the string (^show\s+.*) as the command.

a. Click Add in the Policies section.

b. Type show_only in the Policy Name field.

c. Select Allow from the drop-down list for the Action.

d. Click in the Command Spec field and clear any existing text, then type

(^show\s+.*).

e. Click Create and then click Close.

3.

Page 31: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 30 |

4. Enabling LDAP Authentication

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Grant superuser access to the Domain Admins Active Directory group.

a. Navigate to System > Groups.

b. Click Add.

c. Type Domain Admins in the Group Name field.

Group names must correspond to the group in the directory service and are case

sensitive.

d. Select superuser in the Command Policies field to make it active and bind the

group to the command policy.

Note that the Details pane lists the commands allowed by the selected command

policies.

e. Click Create and then click Close.

2. Grant show-only access to the Remote Users Active Directory group.

a. Click Add.

b. Type Remote Users in the Group Name field.

Group names must correspond to the group in the directory service and are case

sensitive.

c. Select show_only in the Command Policies field.

d. Click Create and then click Close.

3. Create an "auth_ldap_srv" entry for the LDAP server with 192.168.10.11 as the IP

address and 389 as the port.

a. Navigate to System > Authentication > LDAP.

b. Select the Servers tab and then click Add.

c. Complete the Create Authentication Server form as follows:

• Name: auth_ldap_srv

• IP Address: 192.168.10.11

• Port: 389

• Base DN: DC=Training,DC=LAB

• Administrator Bind DN: [email protected]

• Administrator Password: Password1

• Confirm Administrator Password: Password1

• Server Logon Name Attribute: samAccountName

Page 32: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 31 |

d. Click Create, and then click Close.

Page 33: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 32 |

5. Create an "auth_ldap_policy" authentication policy for the LDAP server with an

expression of True.

a. Select the Policies tab and click Add.

b. Type auth_ldap_policy in the Name field and verify that auth_ldap_srv is

specified in the Server field.

c. Select True value from the drop-down menu to the left of the Add Expression

button and then click Add Expression.

The Expression field should contain the expression ns_true.

a. Click Create then click Close to close the Create Authentication policy field.

b. Bind the auth_ldap_policy globally.

c. Right-click the auth_ldap_policy and then click Global Bindings.

d. Click Insert Policy, select auth_ldap_policy, and then click OK to bind the policy

to System Global.

e. Click Save to save the NetScaler configuration, click Yes in the Save

Configuration dialog box, and then click OK to confirm the save is complete.

Click Logout to log off from the configuration utility. Verify that the CitrixAdmin is

able to log on to the NetScaler.

a. Type citrixadmin in the User name field.

b. Type Password1 in the Password field.

c. Click Login.

d. The CitrixAdmin user is logged on to the configuration utility.

Add a load balancing virtual server called testsrv with an IP address of

192.168.10.52 to verify that an Active Directory Domain Admin user has superuser

access.

a. Navigate to Load Balancing > Servers and click Add.

b. Type testsrv in the Server Name field.

c. Type 192.168.10.52 in the IP Address field.

d. Click Create then click Close.

e. The CitrixAdmin user was allowed to add the server.

f. Click Save in the upper-right corner of the configuration utility, click Yes to

confirm saving the configuration, and then click OK after the save is

complete.

g. Click Logout.

Verify that an Active Directory Remote User is able to log on to the NetScaler.

a. Type user1 in the User name field.

Page 34: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 33 |

a. Type Password1 in the Password field.

b. Click Login.

c. The user1 user is logged on to the configuration utility.

Verify that an Active Directory Remote User is able to view settings but is not

allowed to make changes by attempting to remove the load balancing virtual

server called testsrv.

a. Navigate to Load Balancing > Servers.

You are able to view the server created by the CitrixAdmin user.

b. Select the testsrv server and click Remove.

c. Click Yes to confirm.

An error appears that you are not authorized to execute the command.

d. Click Logout.

6.

7.

8.

9.

Exercise Summary

<<Summarize what the student accomplished in the exercise>>

Page 35: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 34 |

Module 5-1 Exercises for Basic Load Balancing

Overview- Configuring Load Balancing

http://www.youtube.com/watch?v=U2HkyxJy1ZM

This exercise will demonstrate how to add servers, services, and a load balancing virtual server to a NetScaler, then configure all of those items to work together for load balancing.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_0

• S i t e 1 - WebBlue

• S i t e 1 - WebGreen

• S i t e 1 - WebRed

• S i t e 1 - Win7Client

Estimated time to complete this lab: 20 minutes.

Step by step guidance 5-1 – Creating Servers

Step Action

1. Creating Servers

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Log in to the NS_VPX_0 configuration utility with the nsroot credentials.

Page 36: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 35 |

2. 2. Create the "srv_red" server with 192.168.10.22 for the IP address. a. Expand the Traf

f i c Management >Load Balancing node and select Servers.

b. Click Add in the Servers pane.

The Create Server dialog box opens.

c. Type srv_red in the Server Name field and then type 192.168.10.22 in the IP

Address/Domain Name field.

d. Click Create.

3. Create the "srv_green" server with 192.168.10.21 for the IP address.

a. Type srv_green in the Server Name field and then type 192.168.10.21 in the

IP Address field.

b. Click Create

4. Create the "srv_blue" server with 192.168.10.20 for the IP address.

a. Type srv_blue in the Server Name field and then type 192.168.10.20 in the IP

Address field.

b. Click Create and then click Close.

The servers appear in the Servers list.

5. Creating Services

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility

logged on as the nsroot user for this task.

1. Create an HTTP service called "svc_red" that will be associated with the WebRed

web server.

a. Expand the Load Balancing node and click Services.

b. Click Add in the Services pane.

The Create Service dialog box opens.

c.Type svc_red in the Service Name field.

d. Select srv_red from the Server list. Verify that HTTP is selected from the

Protocol list and 80 is entered in the Port field.

e. Click Create.

Page 37: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 36 |

6. Create an HTTP service called "svc_blue" that will be associated with the WebBlue web

server.

a. Type svc_blue in the Service Name field.

b. Select srv_blue from the Server list. Verify that HTTP is selected from the

Protocol list and 80 is entered in the Port field.

c. Click Create.

7. Create an HTTP service called "svc_green" that will be associated with the WebGreen

webserver.

a. Type svc_green in the Service Name field.

b. Select srv_green from the Server list. Verify that HTTP is selected from the

Protocol list and 80 is entered in the Port field.

c. Click Create, then click Close. The Create Service dialog box closes.

8. Verify that all services display the state listed as UP in the Services pane.

9. Creating a Load-Balancing Virtual Server

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Begin the configuration of a "lb_vsrv_rbg" load-balancing virtual server that will be

associated with the red, blue, and green services.

a. Expand the Load Balancing node and click Virtual Servers.

b. Click Add in the Load Balancing Virtual Servers pane.

c. Type lb_vsrv_rbg in the Name field and then type 192.168.10.30 in the IP

Address field.

d. Verify that HTTP is selected from the Protocol drop-down list and that 80 is

entered in the Port field.

e. Select the Active box for the following services on the Services tab:

• svc_red

• svc_blue

• svc_green

This action binds the selected services to the LB virtual server.

Page 38: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 37 |

10. 2. Complete the configuration of the "lb_vsrv_rbg" load-balancing virtual server by

setting a round robin method for load-balancing.

a. Click the Method and Persistence tab and select Round Robin from the LB

Method drop-down list.

b. Click Create and then click Close.

c. Verify that the load-balancing virtual server lb_vsrv_rbg state is displayed as

UP.

11. Save the running configuration.

a. Click Save and click Yes to confirm saving the running configuration.

b. Click OK once the configuration has successfully saved.

12. Testing Load Balancing

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Test the load-balancing configuration.

a. Open a Firefox browser window and browse to http://192.168.10.30/home.php.

b. Refresh the browser several times to verify load-balancing activity.

With the round-robin method specified, the page should refresh and rotate

through the Red, Blue, and Green home pages.

13. Change the persistence of the load-balancing virtual server to COOKIEINSERT.

a. Switch back to the NetScaler configuration utility and expand the Load

Balancing node and select Virtual Servers.

b. Double-click the lb_vsrv_rbg virtual server to open its configuration window.

c. Click the Method and Persistence tab and change the Persistence from

NONE to COOKIEINSERT.

d. Click OK.

14. Test the updated load balancing configuration.

a. Switch back to the Firefox window and refresh the browser several times to

verify the effects of load balancing with persistence.

With cookie persistence enabled, you are directed to the same page each

time until the cookie expires; the page does not load balance to each

available server.

Page 39: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 38 |

15. Resetting Persistence to None

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Reset the lb_vsrv_rbg load-balancing virtual server persistence to none.

a. Expand the Load Balancing node and select Virtual Servers.

b. Double-click the lb_vsrv_rbg virtual server to open its configuration window.

c. Select the Method and Persistence tab, and select NONE from the

Persistence drop-down list.

d. Time-out and version settings are left as the default values.

e. Click OK.

16. Save the running configuration.

a. Click Save and Click Yes to confirm saving the running configuration.

b. Click OK once the configuration has successfully saved.

17.

18.

19.

Exercise Summary

<<Summarize what the student accomplished in the exercise>>

Page 40: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 39 |

Exercise 5-2 Exercise 1-1: Configuring a Load-Balancing

HTTP-ECV Monitor

Overview

Overview

This exercise will demonstrate how to monitor the status of a specific HTTP service bound to a loadbalancing

virtual server.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_0

• Site1-Win7Client

• S i t e 1 - WebBlue

• S i t e 1 - WebGreen

• S i t e 1 - WebRed

Estimated time to complete this exercise: 20 minutes

Step by step guidance

Step Action

1. Creating a Load-Balancing HTTP-ECV Monitor

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Switch to the NS_VPX_0 configuration utility on the Win7Client virtual machine.

Page 41: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 40 |

2. Create a load-balancing HTTP-ECV monitor named "mon_RBG_HTTPECV." Configure the monitor to use a send string of "GET /home.php" and a receive string of "serverinfo".

a. Navigate to Traffi c Management >Load Balancing > Monitors.

b. Click Add.

c. Type the following information in the Configure Monitor window and leave other values in their default state.

• Name: mon_RBG_HTTPECV

• Type: HTTP-ECV

• Interval: 5 Seconds

• Down Time: 5 Seconds

d. Click the Special Parameters tab and type the following values in the

specified fields:

• Send String: GET /home.php

• Receive String: serverinfo

e. Click Create and then click Close.

The Receive String parameter is a string value and should be set to a string or

phrase which appears on the web site in the first 24 KB of the response. For this

exercise, you specify “serverinfo". Other valid strings include "Viewing this page"

and "this page indicates."

String matches are case sensitive.

3. Bind the load-balancing HTTP-ECV monitor to the service svc_red.

a. Navigate to Load Balancing > Services.

b. Select the svc_red service and click Open.

c. Select the mon_RBG_HTTPECV monitor from the Available list and click Add.

d. Click OK.

Testing the Load Balancing HTTP-ECV Monitor Step by step guidance

Step Action

Page 42: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 41 |

1. Use the Win7Client virtual machine logged on as the training\administrator user for this task.

1. Open a Firefox window and browse to http://192.168.10.30/home.php. Refresh the page several times.

The page load balances between the RED, BLUE, and GREEN servers while the monitor status shows as UP.

2. Ensure that the red service for the mon_RBG_HTTPECV monitor is successfully responding.

a. Switch to the configuration utility for NS_VPX_0.

b. Navigate to Load Balancing > Services.

c. Select the svc_red service and click Open.

d. Note the information for the configured monitor.

The monitor details display the response status "Success - Pattern found in response."

e. Click Close.

3. Change the monitor string to use the invalid string "bad string".

a. Navigate to Load Balancing > Monitors.

b. Select the mon_RBG_HTTPECV monitor and click Open.

c. Click the Special Parameters tab.

d. Change the Receive String field to bad string.

For this step, set the Receive string (-recv) to a string not found on the page; this creates a failed status. Any string not found on the page could be used.

e. Click OK.

4. Clear the cache before the next test to avoid issues with the browser caching the server

response. Close additional instances if more than one browser window is open.

a. Switch to the Firefox browser, click Tools > Clear Recent History.

b. Click Clear Now in the popup window.

5. In the Firefox browser, browse to http://192.168.10.30/home.php. Refresh the

page several times.

The red server home.php page will not load while the monitor reports the service as

DOWN. Load balancing may, or may not, function with the ECV monitor failing.

6. Ensure that the monitor status for the mon_RBG_HTTPECV monitor is green.

a. Switch to the configuration utility for NS_VPX_0.

b. Navigate to Load Balancing > Monitors.

c. Verify that the mon_RBG_HTTPECV monitor status is green.

Page 43: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 42 |

7. Ensure that the red service for the mon_RBG_HTTPECV monitor is no longer responding.

a. Navigate to Load Balancing > Services.

b. Select the svc_red service and click Open.

c. Note the information for the configured monitor.

The service state shows as DOWN and the monitor response shows "Failure - Pattern not found in response."

8. Remove the mon_RBG_HTTPECV monitor from the load balancing virtual server.

a. Select the mon_RBG_HTTPECV monitor from the Configured list and click Remove.

b. Click OK.

c. Click Refresh.

The svc_red service State should now show as UP.

Exercise 5-4- Configuring Radius Load Balancing Exercise 5-4: Configuring Radius Load Balancing

Overview

This lab demonstrates the process for creating servers, services, and a load-balancing virtual server for RADIUS Protocol. The steps for configuring load balancing using the configuration utility and the command-line interface are provided.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• Site1-AD.training.lab

• Site1-NS_VPX_0

• Site1-WebBlue

• Site1-WebGreen

• Site1-WebRed

• Site1-Win7Client

Estimated time to complete this exercise: 25 minutes

Step by step guidance- Creating Radius Service Groups

Step Action

Page 44: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 43 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Create a load balancing service group called radius_rbg_auth with a protocol set to RADIUS.

a. Expand the Tr af fi c Management >Load Balancing node and select Service Groups.

b. Click Add.

The Create Service Group dialog box opens.

c. Type radius_rbg_auth in the Service Group Name field and select RADIUS from the

Protocol drop-down list.

2. Configure WebRed, WebBlue, and WebGreen as specified members and add a ping monitor to

the new RADIUS service group.

a. Select Server Based and type 1812 in the Port field.

b. Select srv_blue and click Add, select srv_green and click Add, and then select srv_red and click Add.

c. Select the Monitors tab, click ping, and then click Add.

d. Click Create and then click Close.

3. Create a RADIUS service group called radius_rbg_acct.

a. Click Add.

The Create Service Group dialog box opens.

b. Type radius_rbg_acct in the Service Group Name field and select RADIUS from the

Protocol drop-down list.

c. Select Server Based and type 1813 in the Port field.

d. Select srv_blue and click Add, select srv_green and click Add, and then select srv_red and click Add.

e. Select the Monitors tab, click ping, and then click Add.

f. Click Create and then click Close.

4. Verify that both service groups are ENABLED and UP.

Exercise 5-4- Creating Radius Load Balancing Virtual Servers Step by step guidance

Step Action

Page 45: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 44 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Create a RADIUS load balancing virtual server called lb_vsrv_radius_auth with an IP address

of 10.0.0.80 and a port of 1812.

a. Expand the Load Balancing node and select Virtual Servers.

b. Click Add.

The Create Virtual Server (Load Balancing) dialog box opens.

c. Type lb_vsrv_radius_auth in the Name field and then type 192.168.10.30 in

the IP Address field.

d. Select RADIUS from the Protocol drop-down list and type 1812 in the Port field.

2. Bind the radius_rbg_auth service group to the new virtual server using Token for the load-

balancing method and CLIENT.UDP.RADIUS.USERNAME for the rule.

a. Select the Service Groups tab and select Active next to the radius_rbg_auth service group to bind it to the virtual server.

b. Click the Method and Persistence tab, select Token from the LB Method drop-down list,and type CLIENT.UDP.RADIUS.USERNAME in the Rule window.

c. Set the Persistence drop-down list to Rule and verify that

CLIENT.UDP.RADIUS.USERNAME appears in the Rule window.

d. Click Create.

3. Create a RADIUS load balancing virtual server called lb_vsrv_radius_acct with an IP address of

192.168.10.30 and a port of

1813.

a. Type lb_vsrv_radius_acct in the Name field.

b. Type 1813 in the Port field.

c. Select the Service Groups tab and select Active next to the radius_rbg_acct service group to bind it to the virtual server.

d. Deselect the radius_rbg_auth service group.

e. Click Create and then click Close.

4. Verify that the Radius authentication and accounting virtual servers are UP.

Exercise 5-4- Testing Radius Persistency Step by step guidance

Step Action

Page 46: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 45 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Launch the RADIUS test client and log on to the client.

a. Launch the RADIUS test client (Web page) from the Win7Client desktop: Start > All

Programs > RadiusNT > Radius test client.

This action launches a web browser: http://localhost:8020

b. Log on with the following credentials:

• Username: student

• Password: Password1

2. Add a new RADIUS server using 192.168.10.30 as the server address.

a. Click Add next to RADIUS Servers to add a new RADIUS Server.

b. Type 192.168.10.30 in the Server Address field and type Password1 in the Shared

secret field.

c. Type 1812 in the Auth Port field and 1813 in the Acct port field.

d. Click Continue.

3. Set up the RADIUS server authentication settings.

a. Click Radlogin and select 192.168.10.30 in the RADIUS Server drop-down

menu.

b. Select Authentication from the Profile drop-down list.

c. Type student in the Login field and type Password1 in the Password field.

d. Click CONTINUE to initiate a radius authentication request to the virtual server.

The response should indicate GOOD. Click CONTINUE multiple times to submit

additional requests.

4. View the RADIUS persistence sessions that were created with the RADIUS authentication

requests. Open the NetScaler Configuration Utility, select the Load Balancing node, and select Virtual Server persistence sessions in the right pane.

Persistence sessions from the RADIUS authentication requests is displayed.

Module 6 – Exercise for SSL Offload Exercise 5-4: Configuring Radius Load Balancing

Overview

http://www.bing.com/videos/search?q=creating+and+signing+certificate+and+netscaler+vid

eo&FORM=VIRE2#view=detail&mid=CA3715AB35596C3F00F0CA3715AB35596C3F00

F0

Page 47: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 46 |

This exercise demonstrates the use of SSL Certificates with a NetScaler system and how to configure SSL Offload.- You can following the Steps to create the certificate but there is certificate that is already created and will be use in the lab exercise. Before You Begin To begin this lab, ensure that the following virtual machines are started: • Site1-AD.training.lab • Site1-NS_VPX_0 • Site1-WebBlue • Site1-WebGreen • Site1-WebRed • Site1-Win7Client

Estimated time to complete this exercise: 20 minutes

Step by step guidance

Step Action

1. Creating an RSA Key File ( For Knowledge Only. We will use an existing cert in the lab)

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Use the NetScaler certificate tools to create an RSA key file called TestKey.pem with a key size of 2048 and DES3 as the encoding algorithm.

a. Navigate to the SSL node and click Create RSA Key in the SSL pane.

The Create RSA Key dialog box opens.

b. Type TestKey.pem in the Key Filename field and then type 2048 in the Key Size field.

c. Verify that F4 is selected as the public exponent value and that PEM is selected as the key format.

Select DES3 as the PEM encoding algorithm and type Password1 in the PEM

Passphrase field. Then re-type Password1 in the Verify Passphrase field. In a

production environment, specify a secure passphrase.

e. Click Create then click Close.

The Create RSA Key dialog box closes.

2.

Step Action

Page 48: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 47 |

1. Creating a Certificate Request

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Use the NetScaler certificate tools to create a certificate request named TestCSR.csr using

TestKey.pem as the key file and the MillennialGadgets.com company information.

a. Navigate to the SSL node and select Create CSR (Certificate Signing Request) in the SSL pane.

The Create CSR (Certificate Signing Request) dialog box opens.

b. Type TestCSR.csr in the Request File Name field.

c. Click Browse next to the Key File Name field, and select TestKey.pem from the current directory, and click Select.

d. Type Password1 in the PEM Passphrase field.

e. Provide the following information under Distinguished Name Fields:

• Common Name: MillennialGadgets.com

• Organization Name: MillennialGadgets.com

• Country Name: UNITED STATES

• State or Province Name: California

f. Type Password1 in the Challenge Password field.

This password does not have to be same as the PEM passphrase. However, outside of the lab environment, it is recommended that you specify a secure passphrase.

g. Type MillennialGadgets.com in the Company Name field.

h. Click Create then click Close.

The Create Certificate Request dialog box closes.

Step by step guidance

Step Action

1. Creating a Certificate

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Use the NetScaler certificate tools to start creating a self-signed certificate named TestCert.cert with a validity period of 1825 days.

a. Navigate to the SSL node and click Create Certificate in the SSL pane.

b. Type TestCert.cert in the Certificate File Name field, verify that PEM is selected as

the certificate format, and then select Server as the certificate type.

c. Click Browse next to the Certificate Request File Name field and select TestCSR.csr in the displayed directory and click Select.

d. Type 1825 in the Validity Period field.

Page 49: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 48 |

2. Use the NetScaler certificate tools to continue creating a self-signed certificate named

TestCert.cert using ns-root.cert and ns-root.key as the CA certificate file and CA key file.

a. Click Browse next to the CA Certificate File Name field and select ns-root.cert in the

current directory and click Select.

b. Verify that PEM is selected as the CA certificate file format.

c. Click Browse next to the CA Key File Name field and select ns-root.key in the current

directory and click Select.

d. Verify that PEM is selected as the CA key file format.

e. Type Password1 in the PEM Passphrase field.

3. Use the NetScaler certificate tools to complete creating a self-signed certificate named

TestCert.cert using ns-root.srl as the CA serial number file.

a. Click Browse next to the CA Serial Number File field and select ns-root.srl in the

displayed directory and click Select.

b. Click Create then click Close.

The Create Certificate dialog box closes.

Step Action

1. Configuring a Certificate-Key Pair

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Create a certificate-key pair on the NetScaler system using the new certificate and key.

a. Navigate to SSL > Certificates and click Install.

The Install Certificate dialog box opens.

b. Type TestCertKey in the Certificate-Key Pair Name field.

c. Click Browse next to Certificate File Name field, select MCTWildcard.cer in the

displayed directory, and click Select.

d. Click Browse next to the Private Key File Name field and select

MyCitrixTraining.key in the displayed directory and click Select.

Then click Create

e. Click Close.

2. Verify that TestCertKey is displayed in the SSL Certificates pane and the status is shown as Valid.

Step Action

Page 50: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 49 |

1. Configuring an Intermediate Certificate

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utilitylogged on as the nsroot user for this task .- http://support.citrix.com/article/CTX114146

1. Installing the intermediate certificate and linking it.

2. Navigate to SSL > Certificates and click Install.

a. The Install Certificate dialog box opens.

b. Type IntermediateTestCertKey in the Certificate-Key Pair Name field.

c. Click Browse next to Certificate File Name field, select MCTIntermediate.cer in the displayed directory, and click Select.

d. Click Create. Note that intermediate certificates and root certificates don’t require a key file to be associated. Only a server certificate requires a key file to make the certificate valid.

e. Click Close.

f. Next we need to link the server certificate and the intermediate certificate.

g. Select the TestCertKey certificate. Then right click and select Link.

h. Select the correct intermediate certificate and click OK

i. To test if your certificates are linked correctly select the TestCertkey, then right click. Select Cert Links to view the certificate that is linked.

Step Action

1. Creating an SSL Offload Virtual Server

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Begin configuration of an "ssl_vsrv_rbg" SSL-offload virtual server with an IP address of

192.168.10.31 and ROUND ROBIN as the method.

a. Navigate to SSL Offload > Virtual Servers and click Add.

The Create Virtual Server (SSL Offload) dialog box opens.

b. Type ssl_vsrv_rbg in the Name field and type 192.168.10.31 in the IP Address

field.

c. Verify that SSL is selected as the protocol and that 443 is entered in the Port field.

d. Select the Active box for the following services on the Services tab:

• svc_red

• svc_blue

• svc_green

e. Click the Method and Persistence tab and select ROUND ROBIN for the Method.

Page 51: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 50 |

2. Complete the configuration of the ssl_vsrv_rbg SSL-offload virtual server by adding the TestCertKey to the virtual server. Create the virtual server.

a. Click the SSL Settings tab and select TestCertKey from the list of available certificates.

b. Click Add to move the certificate to the list of configured certificates.

c. Click Create then click Close.

The Create Virtual Server (SSL Offload) dialog box closes.

d. Verify the SSL virtual server (ssl_vsrv_rbg) displays the State as UP.

3. Click Save in the upper-right corner of the configuration utility to save the running

configuration.

Step Action

1. Testing SSL Offload

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Open a secure connection to the virtual server and test the SSL offload

configuration.

a. Open a Firefox window and browse to https://192.168.10.31/home.php. b. Click I Understand the Risks, click Add Exception, and then click Confirm

Security Exception to continue to the web site.

A certificate error will be displayed within Firefox because the test certificate was not

created by a trusted certificate authority and a root certificate was not installed. Disregard these errors for this lab exercise.

c. Refresh the web site multiple times.

The site is now secured with SSL. The web page load-balances between the Red, Blue, and

1. Green web servers based on the services bound to the SSL-offload virtual

server.

Module 7 – Exercise for Global Server Load Balancing Exercise 5-4: Configuring GSLB

Overview

Page 52: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 51 |

http://support.citrix.com/servlet/KbServlet/download/22506-102-671576/gslb-

primer_FINAL_1019.pdf- good GSLB document/

http://www.youtube.com/watch?v=tIyqY7xwORY

http://blogs.citrix.com/2012/03/08/global-server-load-balancing-basics-gslb/

This exercise will demonstrate how to configure two NetScaler systems located in different locations for global server load balancing (GSLB).

You must begin configuring the GSLB pair by setting up the first NetScaler at the Frankfurt site.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_1

• S i t e 1 - Web_Blue

• S i t e 1 - Web_Green

• S i t e 1 - Web_Red

• S i t e 1 - Win7Client

• Site2-AD2.remote.lab

• Site2-WebBlue2

• Site2-NS_VPX_2

Variable Frankfurt Tokyo

NSIP 192.168.10.50 192.168.20.70

SNIP 192.168.10.51 192.168.20.71

VIP1 192.168.10.30 192.168.20.73

VIP2 192.168.10.33 192.168.20.74

DNS Server 192.168.10.51

Estimated time to complete this exercise: 20 minutes

Step by step guidance

Step Action

Page 53: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 52 |

1. Enabling Global Server Load Balancing on the Frankfurt NetScaler

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Start NS_VPX_0 and NS_VPX_2 in XenCenter.

a. In XenCenter, click the NS_VPX_0 virtual machine and click Start at the top of the window if it isshutdown.

b. Click the NS_VPX_2 virtual machine and click Start at the top of the window.

2. Enable the GSLB feature on the NS_VPX_0 (Frankfurt) system.

a. Switch to the Win7Client virtual machine.

b. Open a browser connection to http://192.168.10.50 (Frankfurt).

c. Navigate to System > Settings.

d. Click Configure advanced features.

e. Select Global Server Load Balancing and click OK.

Step Action

1. Configuring the GSLB Sites on the Frankfurt NetScaler

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_1 configuration utility logged on as the nsroot user for this task.

1. Add a "site_FRK" (192.168.10.51) GSLB site to the Frankfurt NetScaler. a.

Navigate to GSLB > Sites and click Add.

b. Type site_FRK in the Name field and 192.168.10.51 in the Site IP Address field.

c. Click Create.

2. Add a "site_TOK" (192.168.20.71) GSLB site to the Frankfurt NetScaler.

The site_TOK Site Metric MEP Status will show as Down until the site_TOK is configured on a

remote GSLB site.

a. Type site_TOK in the Name field and 192.168.20.71 in the Site IP Address field.

b. Click Create and then click Close.

Step Action

Page 54: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 53 |

1. Configuring GSLB Services on the Frankfurt NetScaler

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_1 configuration utility logged on as the nsroot user for this task.

1. Create a "gslb_svc_FRK" GSLB service on the Frankfurt NetScaler. Configure the service to communicate over HTTP on port 80.

a. Navigate to GSLB > Services and click Add.

b. Type gslb_svc_FRK in the Service Name field, select site_FRK from the Site Name drop-down menu, and select lb_vsrv_rbg from the virtual Server Name drop-down menu.

You may get a warning that says site already exist just Click ok to proceed since we are using an exisiting Load Balanced Vserver.

c. Select HTTP as the Service Type and type 80 in the Port field.

d. Click Create.

2. Create a "gslb_svc_TOK" GSLB service on the Frankfurt NetScaler. Configure the service to

communicate over HTTP on port 80.

a. Type gslb_svc_TOK in the Service Name field, select site_TOK from the Site Name

drop-down menu, and select srv_TOK from the Server Name drop-down menu.

b. If the name does not appear Click New to open the Create Server window. In the Server Name field enter site_TOK

c. In the IP address field enter 192.16.20.73 and click Create

d. Select HTTP as the Service Type and type 80 in the Port field.

Click Create and then click Close.

3. Verify that the state for gslb_svc_FRK service shows as UP.

The gslb_svc_TOK service will show as DOWN until the remote GSLB service is

configured.

Step Action

1. Adding and Binding the GSLB Virtual Server to the Frankfurt NetScaler

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_1 configuration utility logged on as the nsroot user for this task.

1. Begin configuration of a "GSLB_vsrv_global" HTTP GSLB virtual server on the Frankfurt NetScaler. Bind the new virtual server to the gslb_svc_FRK and gslb_svc_TOK GSLB services.

a. Navigate to Traffi c Management >GSLB > Virtual Servers and click Add.

b. Type GSLB_vsrv_global in the Name field and verify that HTTP is selected for the Service Type.

c. Select both gslb_svc_FRK and gslb_svc_TOK services.

Page 55: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 54 |

2. Complete the configuration by setting the GSLB_vsrv_global virtual server for round-robin load balancing. Create the new GSLB virtual server.

a. Click the Method and Persistence tab and select Round Robin for the Method.

b. Click Create and then click Close.

Verify that the GSLB_vsrv_global virtual server shows as UP after creating it.

3. If the service shows as DOWN, check that the SNIP and its subnet mask are

entered correctly.

Module 7 – Exercise for Global Server Load Balancing Exercise 7-2: Configuring GSLB

Overview

http://support.citrix.com/servlet/KbServlet/download/22506-102-671576/gslb-

primer_FINAL_1019.pdf- good GSLB document/

http://www.youtube.com/watch?v=tIyqY7xwORY

http://blogs.citrix.com/2012/03/08/global-server-load-balancing-basics-gslb/

This exercise will demonstrate how to configure two NetScaler systems located in different locations for global server load balancing (GSLB).

You must begin configuring the GSLB pair by setting up the first NetScaler at the Frankfurt site.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_1

• S i t e 1 - Web_Blue

• S i t e 1 - Web_Green

• S i t e 1 - Web_Red

• S i t e 1 - Win7Client

• Site2-AD2.remote.lab

• Site2-WebBlue2

Page 56: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 55 |

• Site2-NS_VPX_2

Variable Frankfurt Tokyo

NSIP 192.168.10.50 192.168.20.70

SNIP 192.168.10.51 192.168.20.71

VIP1 192.168.10.30 192.168.20.73

VIP2 192.168.10.33 192.168.20.74

DNS Server 192.168.10.51

Estimated time to complete this lab: 50 minutes

Step by step guidance

Step Action

1. Enable Global Server Load Balancing on the Tokyo NetScaler

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_2 configuration utility

logged on as the nsroot user for this task.

1. Open a browser connection to http://192.168.20.70 (Tokyo).

2. Enable the GSLB feature on the NS_VPX_2 (Tokyo) system.

a. Navigate to System > Settings.

b. Click Configure advanced features.

c. Select Global Server Load Balancing and click OK.

Step by step guidance- Configuring the GSLB Sites on the Tokyo Netscaler

Step Action

1. Configuring the GSLB Sites on the Tokyo NetScaler

In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_2 configuration utility

logged on as the nsroot user for this task.

1. Add a "site_FRK" (192.168.10.51) GSLB site to the Frankfurt

NetScaler.

a. Navigate to GSLB > Sites and click Add.

b.Type site_FRK in the Name field and 192.168.10.51 in the Site IP Address

field.

c. Click Create.

Page 57: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 56 |

2. Add a "site_TOK" (192.168.20.71) GSLB site to the Frankfurt NetScaler.

You may need to refresh the view for the Site Metric MEP Status to show as Active.

a. Type site_TOK in the Name field and 192.168.20.71 in the Site IP Address

field.

b. Click Create and then click Close.

Step by step guidance- Synchronizing GSLB Settings- http://support.citrix.com/article/ctx132939

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_1 configuration utility logged on as the nsroot user for this task.

1. Synchronize the GSLB settings from the Frankfurt NetScaler to the Tokyo

NetScaler.

Switch to the Frankfurt NetScaler (NS_VPX_0).

b. Select the GSLB node and click Synchronize configuration on remote sites.

The Synchronize GSLB Configuration window appears.

c. Select Force Sync from the Synchronization Option drop-down menu, and

then select site_TOK from the GSLB Site Name drop-down menu.

d. Select Save Configuration.

e. Click Run at the bottom of the window then click Yes.

This process will sync the settings from site_FRK to site_TOK and save the

configuration when complete.

2. Click Close when the synchronize operation has finished.

Module 7 – Exercise for Global Server Load Balancing Exercise 7-3: Configuring DNS to Test a GSLB Configuration

Overview

http://support.citrix.com/servlet/KbServlet/download/22506-102-671576/gslb-primer_FINAL_1019.pdf- good GSLB document/

http://www.youtube.com/watch?v=tIyqY7xwORY

Page 58: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 57 |

http://blogs.citrix.com/2012/03/08/global-server-load-balancing-basics-gslb/

This exercise will demonstrate how to test the GSLB configuration using DNS.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_1

• S i t e 1 - Web_Blue

• S i t e 1 - Web_Green

• S i t e 1 - Web_Red

• S i t e 1 - Win7Client

• Site2-AD2.remote.lab

• Site2-WebBlue2

• Site2-NS_VPX_2

Variable Frankfurt Tokyo

NSIP 192.168.10.50 192.168.20.70

SNIP 192.168.10.51 192.168.20.71

VIP1 192.168.10.30 192.168.20.73

VIP2 192.168.10.33 192.168.20.74

DNS Server 192.168.10.51

Estimated time to complete this lab: 50 minutes

Step by step guidance

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

Configuring ADNS is only necessary on one NetScaler.

1. Switch to the Frankfurt NetScaler (192.168.10.50) configuration utility.

Page 59: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 58 |

2. Bind the "www.gslbdomain.com" domain alias to the GSLB_vsrv_global virtual server on the

Frankfurt NetScaler.

a. Navigate to Traffic Management >GSLB > Virtual Servers.

b. Select the GSLB_vsrv_global virtual server and click Open.

c. Click the Domains tab and click Add.

d. Type www.gslbdomain.com in the Domain Name field.

e. Click Create and then click OK.

3. Create an authoritative DNS service using the 192.168.10.51 IP address on the Frankfurt NetScaler.

a. Navigate to Traffi c Management >DNS > Name Servers and click Add.

b. Type 192.168.10.51 in the IP Address field and select

Local.

c. Click Create and then click Close.

4. Switch to the Frankfurt NetScaler command-line interface and ping the www.gslbdomain.com domain to verify the DNS setup.

a. Launch a PuTTY session and open the NS_VPX_0 saved session.

b. Log on to the NS_VPX_0 command-line interface using the nsroot credentials.

c. Ping the www.gslbdomain.com domain several times using the following command:

ping www.gslbdomain.com

Note the IP address, then press CTRL+C to stop the ping.

If GSLB is configured correctly on both systems, the ping response should alternate between the VIP addresses of the Frankfurt and Tokyo NetScaler systems during alternating tests. Be aware that pinging the address from multiple locations at once can hide the round-robin load-balancing behavior, since subsequent requests can be load balanced (correctly) back to the first server.

5. Enable Multiple IP Response (MIR) on the Frankfurt NetScaler.

a. Switch to the configuration utility for NS_VPX_0.

b. Navigate to GSLB > Virtual Servers.

c. Select GSLB_vsrv_global and click Open.

d. Click the Advanced tab.

e. Select Send all "active" service IP's in response (MIR) and click OK.

Step by step guidance- Configuring Local DNS Settings to Test GSLB configuration

Step Action

Page 60: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 59 |

1. Use the Win7Client virtual machine logged on as the training\administrator user for

this task.

1. Open the Local Area Network settings for the Win7Client virtual machine.

a. Click Start > Control Panel to open the Control Panel dialog box on the

hosted workstation.

b. Click Network and Sharing Center, and then click Local Area Connection.

c. Click Properties to open the Local Area Connection Properties dialog box.

2. Configure the local DNS settings to use the 192.168.10.51 GSLB virtual server.

a. Highlight Internet Protocol Version 4 (TCP/IPv4).

b. Click Properties to open the Internet Protocol (TCP/IP) Properties dialog

box.

c. Select Use the following DNS server addresses.

d. Set the Preferred DNS Server to 192.168.10.51.

It is recommended to use only one NetScaler system as a DNS.

3. Close the Local Area Network settings.

a. Click OK to save the settings.

b. Click Close and then click Close again.

c. Close the Network and Sharing Center window.

Step by step guidance- Testing the GSLB Configuration

Step Action

1. Use the Win7Client virtual machine logged on as the training\administrator user for

this task.

1. Ping the www.gslbdomain.com domain using a Windows command prompt.

a. Click Start, type cmd, and press Enter to open a command prompt. b. Ping the www.gslbdomain.com domain using the following command: c. ping www.gslbdomain.com

2. Repeat the ping 5 more times.

Expected result: The server IP address of the response changes with some of the

pings. If the responses do not alternate between Frankfurt and Tokyo, try flushing

the DNS with the command: ipconfig /flushdns.

3. Open the Google Chrome browser and browse to

http://www.gslbdomain.com/remote.php to view the global load-balancing server.

Either the Red Tokyo (remote.php) screen on NetScaler Tokyo or the Green Frankfurt

(remote.php) screen on NetScaler Frankfurt appears.

Page 61: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 60 |

4. Open Firefox and browse to http://www.gslbdomain.com/remote.php to view the global

load-balancing server.

The alternate remote.php screen will load in the new browser. If ping responses are

displaying alternating IP addresses as expected, but the content in the web browsers is

not reflecting load balancing between the Frankfurt and Tokyo NetScaler systems, close

all open web browsers. Repeat the test with only one web browser and close and open

the browser between each test.

5. Switch back to the command prompt on the Win7Client virtual machine and perform an

nslookup on the www.gslbdomain.com domain.

a. Switch to the Win7Client command prompt.

b. Perform an nslookup using the following command:

nslookup www.gslbdomain.com

The GSLB virtual server returns two IP addresses, 192.168.10.30 and 192.168.20.73

Step by step guidance- Return DNS Settings to Default

Step Action

1. Use the Win7Client virtual machine logged on as the training\administrator user for

this task.

1. Open the Local Area Network settings for the Win7Client virtual machine.

a. Click Start > Control Panel to open the Control Panel dialog box on the

hosted workstation.

b. Click Network and Internet, click Network and Sharing Center, and then click

Local Area Connection.

c. Click Properties to open the Local Area Connection Properties dialog box.

2. Configure the local DNS settings to use the 192.168.10.11 GSLB virtual server.

a. Highlight Internet Protocol Version 4 (TCP/IPv4).

b. Click Properties to open the Internet Protocol (TCP/IP) Properties dialog box.

c. Select Use the following DNS server addresses.

d. Set the Preferred DNS Server to 192.168.10.11.

It is recommended to use only one NetScaler system as a DNS.

3. Close the Local Area Network settings.

a. Click OK to save the settings.

b. Click Close and then click Close again.

c. Close the Network and Sharing Center window.

Page 62: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 61 |

4. Shut down NS_VPX_2 in XenCenter.

a. In XenCenter, click the NS_VPX_2 virtual machine and click Shut Down at the

top of the window.

b. Click the NS_VPX_2 virtual machine and click Shut Down at the top of the

window.

GSLB Troubleshooting Tips

Step Action

1. If the procedure for testing the GSLB configuration does not produce the

expected results, use the following tips to troubleshoot the lab configuration.

Unable to Resolve www.gslbdomain.com

• Ensure that you are pointing to the correct DNS server. For this lab, you should point

to one of the ADNS IP addresses on either the Frankfurt or Tokyo NetScaler systems.

• Ensure that that you set the DNS setting on the correct network connection, if multiple

networks are present. Consult with your instructor if required.

• Ensure that your web browser does not have a proxy server configured.

• Ensure that you are not connecting from a workstation behind a firewall that is

blocking UDP port 53 (DNS).

2. Load Balancing between NetScaler Systems Not Occurring

• If the issue is at the browser test, clear the cache between test runs. For best results,

close and re-open the browser between each test.

• If the issue is at the ping response from the workstation and only 1 IP address is being

returned, verify that the GSLB sites, services, and virtual servers appear as UP and that

MEP status shows as UP/Active.

• Multiple browser instances can also affect the results. Close all open browsers and

start from a fresh session. Close and open browsers between tests.

• Conduct tests from only one hosted workstation at a time.

• Ensure that the GSLB and load-balancing (LB) features are ENABLED on both

NetScaler systems.

• Verify on the NetScaler system that the resolution is alternating between GSLB

services.

Example: From the command-line interface on a given NetScaler system, ping

www.gslbdomain.com; stop and re-ping. Verify that you receive the two expected IP

addresses.

Page 63: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 62 |

3. Other Issues

• Verify that the correct IP addresses are used for the load-balancing virtual server,

GSLB

services, and GSLB virtual server. Confirm that sites, virtual servers, services, and

domains are

bound appropriately.

• Verify that MEP is functioning and that both sites and services show as UP on both

NetScaler

systems. Using the configuration utility instead of the command-line interface may be

easier to

quickly verify the configured settings.

Module 8 – Exercise for AppExpert Classic Policy Engine Exercise 8-1: Configuring Content Filtering Using Classic Policies

Overview

http://support.citrix.com/article/CTX125669 This exercise demonstrates the process for configuring a content-filtering policy. Content filtering allows you to prevent unwanted requests from reaching a protected server, by comparing the request against filters based on HTTP URLs or headers. Content filtering allows you to specify the action to take for requests matching the filter rules. The content filter can be configured to DROP or RESET the request or to return an error code in the response. You have control over which content to filter and how it is filtered. Before You Begin To begin this lab, ensure that the following virtual machines are started: • S i t e 1 - AD.training.lab • S i t e 1 - NS_VPX_0 • S i t e 1 - Web_Blue • S i t e 1 - Web_Green • S i t e 1 - Web_Red • S i t e 1 - Win7Client

Estimated time to complete this exercise: 15 minutes

Step by step guidance- Ex 8.1- Configuring a Policy Expression

Page 64: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 63 |

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Create the red_url expression for URL requests that contain "/red.php".

a. Navigate to AppExpert > Expressions > Classic Expressions and click

Add.

b. The Create Policy Expression dialog box opens.

c. Type red_url in the Expression Name field.

d. Click Add under the Expressions section.

The Add Expression dialog box opens.

2. Continue to create the expression.

a. Select General for the Expression Type.

b. Select REQ for the Flow Type.

c. Select HTTP for the Protocol.

d. Select URL for the Qualifier.

e. Select == for the Operator.

f. Type /red.php for the Value.

g. Click OK.

3. Complete the policy expression.

a. Verify that the Expression field contains the following expression:

REQ.HTTP.URL == /red.php

b. Type the following text in the Comments field:

Drop client request for red.php.

c. Click Create and then click Close.

Step by step guidance- Ex 8.1- Configuring Content Filters

Step Action

Page 65: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 64 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Create the cf_red_url content filter policy using the red_url policy expression.

a. Navigate to Protection Features > Filter and click Add.

The Create Filter Policy dialog box opens.

b. Type cf_red_url in the Filter Name field.

c. Verify that Request Action is selected and select Drop from the Request Action list.

d. Select Drop client request for red.php from the drop-down list to the left of the Add

Expression button.

e. Click Add Expression to add the selected expression.

The red_url policy is added to the Expression.

f. Click Create and then click Close.

2. Bind the cf_red_url policy globally.

a. Click Global Bindings. b. The Bind/Unbind Filter Policy(s) to Global dialog box opens. c. Click Insert Policy and select the cf_red_url policy. d. Click OK. e. The Bind/Unbind Filter Policy dialog box closes and a check mark

appears under the f. Globally Bound column for the cf_red_url policy. g. Verify that the Hits column shows 0 for the policy.

Step by step guidance- Ex 8.1- Testing Content Filtering

Step Action

1. Use the Win7Client virtual machine logged on as the t raining\administrator for this task.

1. Verify that the red.php page does not load.

a. Open a new Firefox window and browse to http://192.168.10.30/red.php.

The browser will display a message saying that the page was not loading.

2. Verify that the blue.php and green.php pages are loading.

a. Browse to http://192.168.10.30/blue.php.

The page should load normally.

b. Browse to http://192.168.10.30/green.php.

The page should load normally.

3. View the filter policy in the configuration utility.

a. Switch to the configuration utility for NS_VPX_0.

b. Navigate to Protection Features > Filter and click Refresh.

c. Note the number of hits for the cf_red_url policy.

The number of hits should have increased.

You can also switch the policy action from "Drop" to "Reset" to see the difference.

Page 66: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 65 |

Step by step guidance- Ex 8.1- Removing Content Filters

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

The policy needs to be unbound to prevent it from affecting subsequent exercises.

1. Unbind the cf_red_url content filter policy.

a. Navigate to Protection Features > Filter.

b. Click Global Bindings.

c. Select the cf_red_url policy and click Unbind Policy.

d. Click OK.

2. Remove the cf_red_url filter.

a. Select the cf_red_url filter and click Remove.

b. Click Yes to confirm removing the filter.

Module 9 – Exercise for Rewrite,Responder, And URL Transform Exercise 9-1: Configuring Rewrite, Responder, and URL Transform

Overview

http://www.youtube.com/watch?v=iWzMPXhswxI http://www.youtube.com/watch?v=ZAOmCvJBQqI This exercise will demonstrate how to create a rewrite rule that appends home.php to the URL when a request is sent to the web server. Before You Begin To begin this exercise, ensure that the following virtual machines are started: • S i t e 1 - AD.training.lab • S i t e 1 - NS_VPX_0 • S i t e 1 - Web_Blue • S i t e 1 - Web_Green • S i t e 1 - Web_Red • S i t e 1 - Win7Client

Estimated time to complete this exercise: 10 minutes

Page 67: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 66 |

Step by step guidance- Ex 9.1- Viewing the Default Web Page

Step Action

1. Use the Win7Client virtual machine and log on as the t raining\administrator user for this

task.

1. Launch Mozilla Firefox.

2. Browse to the RBG virtual server by navigating to http://192.168.10.30

Note that the index page is displayed for one of the RBG servers.

3. Browse to the RBG virtual server home page by navigating to

http://192.168.10.30/home.php

Note that the home page is displayed for one of the RBG servers

Step by step guidance- Ex 9.1- Using Rewrite to Modify a URL

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Switch to the configuration utility for NS_VPX_0 at http://192.168.10.50 and log on

using the nsroot credentials if necessary.

2. Add the rw_act_SendToHome rewrite action to replace an unspecified URL path with

"/home.php."

a. Navigate to AppExpert >Rewrite > Actions and click Add.

b. Click the Name field and type rw_act_SendToHome.

c. Select REPLACE from the Type drop-down menu and type

HTTP.REQ.URL.PATH in the Expression to choose target text reference field.

d. Click the String expression for replacement text and type "/home.php".

e. Click Create and then click Close.

Page 68: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 67 |

3. Add the req_pol_SendToHome rewrite policy using the rw_act_SendToHome action that

matches the forward slash (/) character.

a. Navigate to Rewrite > Policies and click Add.

b. Click the Name field and type req_pol_SendToHome.

c. Select rw_act_SendToHome in the Action field.

d. Click the Expression field and type HTTP.REQ.URL.PATH.EQ("/")

e. Click Create and click Close.

4. Globally bind the rewrite policy.

a. Click Policy Manager.

b. Select Override Global under Bind Points.

c. Click Insert Policy and select req_pol_SendToHome from the Policy Name

drop-down menu.

d. Select NEXT for the Goto Expression.

e. Click Apply Changes and then click Close.

5. Click Save to save the NetScaler configuration, then click Yes to confirm the save. Then

click OK when the save is complete.

6. Verify the rewrite policy works by browsing to http://192.168.10.30

The home.php page for one of the RGB servers is displayed without having to specify it

in the URL.

7. Unbind the req_pol_SendToHome policy for future exercises.

a. Navigate to Rewrite > Policies.

b. Click Policy Manager.

c. Select the req_pol_SendToHome policy and click Unbind Policy.

d. Click Apply Changes and click Close.

Page 69: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 68 |

Module 9 – Exercise for Rewrite,Responder, And URL Transform Exercise 9-2: Removing HTTP Headers

Overview

http://www.youtube.com/watch?v=iWzMPXhswxI http://www.youtube.com/watch?v=ZAOmCvJBQqI This exercise will demonstrate how to create a rewrite rule that appends home.php to the URL when a request is sent to the web server. Before You Begin To begin this exercise, ensure that the following virtual machines are started: • S i t e 1 - AD.training.lab • S i t e 1 - NS_VPX_0 • S i t e 1 - Web_Blue • S i t e 1 - Web_Green • S i t e 1 - Web_Red • S i t e 1 - Win7Client

Estimated time to complete this exercise: 15 minutes

Step by step guidance- Ex 9.2- Viewing the Default Header Information

Step Action

1. Use the Win7Client virtual machine logged on as the training\administrator user for this

task.

1. Open the HttpFox add-on in the Firefox browser.

a. Launch the Firefox browser.

b. Select Tools > Web Developer > HttpFox > Toggle HttpFox.

The HttpFox window appears at the bottom of the browser.

c. Click Start in the HttpFox window

Page 70: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 69 |

2. View the header information for the server that is hosting the RBG web page.

a. Browse to http://192.168.10.30

b. Select one of the items in the top box that does not say (cache) in the HttpFox

Result column.

View the header information in the Response header pane. Verify that the Server header

is displayed as Server: Microsoft-IIS/7.5.

3. Close the HttpFox window.

Step by step guidance- Using Rewrite to Remove Header Information

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Switch to the configuration utility for NS_VPX_0. Log on using the nsroot credentials if

necessary.

2. Add the rw_act_RemoveSrvID rewrite action to remove the Server ID from the header.

a. Navigate to Rewrite > Actions and click Add.

b. Click the Name field and type rw_act_RemoveSrvID.

c. Select DELETE_HTTP_HEADER from the Type drop-down menu.

d. Click the Header Name field and type Server.

e. Click Create and then click Close.

3. Add a "res_pol_RemoveSrvID" rewrite policy to remove the Server ID with an IS_VALID

http response.

a. Click the Policies node and click Add.

b. Click the Name field and type res_pol_RemoveSrvID.

c. Select rw_act_RemoveSrvID in the Action field.

d. Click the Expression field and type HTTP.RES.IS_VALID.

e. Click Create, and then click Close.

Page 71: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 70 |

4. Bind the res_pol_RemoveSrvID globally.

a. Click Policy Manager.

b. Click Response then click Override Global under Bind Points.

c. Click Insert Policy and select res_pol_RemoveSrvID for the Policy Name.

d. Select NEXT for the Goto Expression.

e. Click Apply Changes, and then click Close.

Step by step guidance- Verifying the Header Information

Step Action

1. Use the Win7Client virtual machine logged on as the training\administrator user for this

task.

Do not replace the server header with strings or phrases such as "Hack this" or

"Try to hack me now." Potential legal implications with such a statement may

exist because you could be granting permission to hackers to attempt to violate

your security. As always, consult the appropriate security experts within your

organization for guidelines and requirements for your environment.

1. Open the HttpFox add-on in the Firefox browser.

a. Launch the Firefox browser.

b. Select Tools > Web Developer > HttpFox > Toggle HttpFox.

The HttpFox window appears at the bottom of the browser.

c. Click Clear in the HttpFox window.

2. Verify that the Header information for the server is not displayed.

a. Browse to the RBG virtual server by navigating to

http://192.168.10.30

b. Select one of the items in the top box which does not say (cache) in the

HttpFox Result column.

c. View the Header information in the Response header pane. Verify

that the Server does not display.

3. Close the HttpFox window

Page 72: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 71 |

Module 9 – Exercise for Rewrite,Responder, And URL Transform Exercise 9-3: Inserting HTTP Headers

Overview

This exercise demonstrates how to add a rewrite policy to insert information into the HTTP headers. Before You Begin To begin this exercise, ensure the following virtual machines are started: • S i t e 1 - AD.training.lab • S i t e 1 - NS_VPX_0 • S i t e 1 - Web_Blue • S i t e 1 - Web_Green • S i t e 1 - Web_Red • S i t e 1 - Win7Client

Estimated time to complete this exercise: 15 minutes

Step by step guidance- Ex 9.3- Using Rewrite to Insert Header Information.

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0

configuration utility logged on as the nsroot user for this task.

1. Log on to the NetScaler system and add a rewrite action.

a. Switch to the configuration utility for NS_VPX_0 and log on using the nsroot

credentials if necessary.

b. Navigate to Rewrite > Actions and click Add.

2. Complete the rw_act_NewSrvID rewrite action to insert the string "Unspecified" for the

HTTP Server Header value.

a. Click the Name field and type rw_act_NewSrvID.

b. Select INSERT_HTTP_HEADER for the Type.

c. Click the Header Name field and type Server.

Click the String expression for Header value field and type "Unspecified".

e. Click Create, and then click Close.

Page 73: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 72 |

3. Add the res_pol_NewSrvID rewrite policy using the rw_act_NewSrvID action with an http

IS_VALID response.

a. Select the Policies node and click Add.

b. Click the Name field and type res_pol_NewSrvID.

c. Select rw_act_NewSrvID for the Action.

d. Click the Expression field and type HTTP.RES.IS_VALID.

e. Click Create, and then click Close.

4. Bind the rewrite policy res_pol_NewSrvID globally.

a. Click Policy Manager.

b. Click Response, and then click Override Global under Bind Points.

c. Click Insert Policy and select res_pol_NewSrvID for the Policy Name.

d. Select NEXT for the Goto Expression.

e. Click Apply Changes, and then click Close.

5. Add the rw_act_NoCache rewrite action to insert "no-cache" in the cache-control of the

HTTP Header.

a. Select the Actions node and click Add.

b. Click the Name field and type rw_act_NoCache.

c. Select INSERT_HTTP_HEADER for the Type.

d. Type Cache-Control in the Header Name field, then type "no-cache" in the

String expression for Header value field.

e. Click Create, and then click Close.

6. Add the res_pol_NoCache rewrite policy using the rw_act_NoCache action.

a. Click the Policies Node and click Add.

b. Type res_pol_NoCache in the Name field.

c. Select rw_act_NoCache for the Action.

d. Click the Expression field and type HTTP.RES.IS_VALID.

e. Click Create, and then click Close.

Page 74: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 73 |

7. Bind the res_pol_NoCache policy globally.

a. Click Policy Manager.

b. Click Response, and then click Override Global under Bind Points.

c. Click Insert Policy and select res_pol_NoCache for the Policy Name.

d. Select NEXT for the Goto Expression.

e. Click Apply Changes, and then click Close.

Step by step guidance- Ex 9.3- Verifying the Header Information

Step Action

1. Use the Win7Client virtual machine logged on as the training\administrator user for this

task.

Do not replace the server header with strings or phrases such as "Hack this" or "Try to

hack me now." Potential legal implications with such a statement may exist because you

could be granting permission to hackers to attempt to violate your security. As always,

consult the appropriate security experts within your organization for guidelines and

requirements for your environment.

1. Open the HttpFox add-on in the Firefox browser.

a. Launch the Firefox browser.

b. Select Tools > Web Developer > HttpFox > Toggle HttpFox.

The HttpFox window appears at the bottom of the browser.

c. Click Clear in the HttpFox window.

2. Browse to the RBG server and verify that the Server header shows "Unspecified" and

that the Cache-control header shows "no-cache".

a. Browse to the RBG virtual server at http://192.168.10.30.

b. Select one of the items in the top box of the HttpFox window that does not

say (cache) in the HttpFox Result column.

c. View the Header information in the Response header pane.

The Server header value displays "Unspecified" and the Cache-Control header value

displays "no-cache".

3. Close the HttpFox window.

Page 75: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 74 |

Module 9 – Exercise for Rewrite,Responder, And URL Transform Exercise 9-4: Configuring Responder to Redirect to HTTPS

Overview

This exercise will demonstrate how to create a responder policy that will redirect an HTTP request to an HTTPS request. Before You Begin To begin this exercise, ensure that the following virtual machines are started: • S i t e 1 - AD.training.lab • S i t e 1 - NS_VPX_0 • S i t e 1 - Web_Blue • S i t e 1 - Web_Green • S i t e 1 - Web_Red • S i t e 1 - Win7Client

Estimated time to complete this exercise: 10 minutes

Step by step guidance- Ex 9.4- Configuring Responder to Use SSL

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Create a load-balancing virtual server for the Red, Blue, and Green servers named

lb_vsrv_redirecttossl with the IP address 192.168.10.31 on the standard HTTP

port.

a. Navigate to Load Balancing > Virtual Servers and click Add.

b. Type lb_vsrv_redirecttossl in the Name field.

c. Type 192.168.10.31 in the IP Address field.

d. Verify that HTTP is selected for the Protocol and 80 as the value for the Port.

e. Select the Active check box for the following services:

• svc_red

• svc_blue

• svc_green

f. Click Create and then click Close.

The load-balancing virtual server is created and the status should be UP.

Page 76: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 75 |

2. Create a Responder action to redirect any URL, including path and query, from HTTP to

HTTPS.

a. Navigate to Responder > Actions and click Add.

b. Type rs_act_sendtossl in the Name field.

c. Select Redirect for the Type.

d. Type the following text in the Target field.

"https://" + HTTP.REQ.HOSTNAME + HTTP.REQ.URL.PATH_AND_QUERY

e. Click Create.

The following error appears: "Input expression is unsafe."

f. Click OK to close the error.

3. Enable Bypass Safety Check for the responder action.

a. Select Bypass Safety Check.

b. Click Create and then click Close.

The action is created without an error.

4. Modify the rs_act_sendtossl action convert unsafe URL characters to safe URL characters.

a. Select the rs_act_sendtossl action and click Open.

b. Modify the Target expression as follows:

"https://" + HTTP.REQ.HOSTNAME.HTTP_URL_SAFE +

HTTP.REQ.URL.PATH_AND_QUERY.HTTP_URL_SAFE

c. Deselect Bypass Safety Check.

d. Click OK.

5. Create a policy named rs_pol_sendtossl for for the rs_act_sendtossl action.

a. Navigate to Responder > Policies and click Add.

b. Type rs_pol_sendtossl in the Name field.

c. Select rs_act_sendtossl from the Action drop-down list.

d. Verify that -Global undefined-result action- is selected for the Undefined-Result Action.

e. Type the following in the Expression field.

!CLIENT.SSL.IS_SSL

f. Click Create and then click Close.

6. Bind the rs_pol_sendtossl policy to the lb_vsrv_redirecttossl virtual server.

a. Click Policy Manager.

b. Verify that HTTP is selected under Bind Points, then select LB Virtual Server to expand the list.

c. Double-click lb_vsrv_redirecttossl and click Insert Policy.

d. Select rs_pol_sendtossl for the Policy Name.

e. Click Apply Changes and then click Close.

Page 77: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 76 |

7. Save the NetScaler configuration.

a. Click Save.

b. Click Yes to confirm saving the configuration.

c. Click OK after the configuration has been saved successfully.

Step by step guidance- Ex 9.4- Testing the Redirect to SSL Policy

Step Action

1. Use the Win7Client virtual machine logged on as the training\administrator user for this task.

1. Open the HttpFox add-on in the Firefox browser.

a. Launch the Firefox browser.

b. Select Tools > Web Developer > HttpFox > Toggle HttpFox.

The HttpFox window appears at the bottom of the browser.

c. Click Start in the HttpFox window.

2. Browse to the lb_vsrv_redirecttossl virtual server and verify that the page is redirected to an SSL connection.

a. Browse to http://192.168.10.31/.

The page should be redirected to https://192.168.10.31.

b. Scroll to the top of the HttpFox pane to view the 302 Redirect and location header.

c. Browse to http://192.168.10.31/blue.php?demo=value1&demo2=value2.

The URL and query should be redirected to an HTTPS connection.

Module 9 – Exercise for Rewrite,Responder, And URL Transform Exercise 9-5: Configuring Responder to Redirect Using String Maps

Overview

This exercise demonstrates how to create a custom response to a URL request to a restricted page or directory.

Before You Begin

Page 78: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 77 |

To begin this exercise, ensure the following virtual machines are started: • S i t e 1 - AD.training.lab • S i t e 1 - NS_VPX_0 • S i t e 1 - Web_Blue • S i t e 1 - Web_Green • S i t e 1 - Web_Red • S i t e 1 - Win7Client

Estimated time to complete this exercise: 10 minutes

Step by step guidance- Ex 9.5- Configuring Responder to Redirect Using String Maps

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Create a string map named search_redirects.

a. Navigate to AppExpert > String Maps and click Add.

The Create String Map window appears.

b. Type search_redirects in the Name field.

2. Add a string map to redirect /google to http://www.google.com.

a. Click Add.

b. Type /google in the Key field.

Type http://www.google.com in the Value field.

d. Click Create.

3. Add a string map to redirect /yahoo to http://www.yahoo.com.

a. Click Add.

b. Type /yahoo in the Key field.

c. Type http://www.yahoo.com in the Value field.

d. Click Create.

4. Add a string map to redirect /bing to http://www.bing.com.

a. Click Add.

b. Type /bing in the Key field.

c. Type http://www.bing.com in the Value field.

d. Click Create

5. Click Create in the String Map window then click Close.

6. Add the search_stringmap_act responder action for the string map.

a. Navigate to Responder > Actions and click Add.

b. Type search_stringmap_act in the Name field.

c. Select Redirect for the Type.

d. Type the following string in the Target field:

HTTP.REQ.URL.MAP_STRING("search_redirects").HTTP_URL_SAFE

e. Click Create and then click Close.

Page 79: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 78 |

7. Add the search_stringmap_pol responder policy for the string map action.

a. Navigate to Responder > Policies and click Add.

b. Type search_stringmap_pol in the Name field.

c. Select search_stringmap_act as the Action.

d. Verify that Global undefined-result action is selected for the Undefined-Result Action.

e. Type the following string in the expression field:

HTTP.REQ.URL.IS_STRINGMAP_KEY("search_redirects")

f. Click Create and then click Close.

8. Bind the search_stringmap_pol policy to the lb_vsrv_rbg virtual server.

a. Click Policy Manager.

b. Select HTTP then expand LB Virtual Server under Bind Points.

c. Double-click lb_vsrv_rbg.

d. Click Insert Policy then select search_stringmap_pol.

e. Click Apply Changes and then click Close.

9. Save the NetScaler configuration.

a. Click Save.

b. Click Yes to confirm saving the changes.

c. Click OK when the save is complete.

Step by step guidance- Ex 9.5- Testing the String Map

Step Action

1. Use the Win7Client virtual machine logged on as the training\administrator user for this task.

1. Open the Firefox browser.

2. Open the Live HTTP headers tool.

a. Navigate to Tools > Live HTTP headers.

b. Click Clear to clear any existing entries.

3. Test the string map responder policy by browsing to the mapped strings.

a. Browse to http://192.168.10.30/google.

b. Verify that the page is redirected to http://www.google.com

c. Browse to http://192.168.10.30/yahoo.

d. Verify that the page is redirected to http://www.yahoo.com

e. Browse to http://192.168.10.30/bing.

f. Verify that the page is redirected to http://www.bing.com

4. View the header information in the Live HTTP headers window. Scroll up the page to view the 302 redirect and location header.

Page 80: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 79 |

5. Close the Live HTTP headers window.

Module 9 – Exercise for Rewrite,Responder, And URL Transform Exercise 9-6: Adding a Custom Response

Overview

This exercise demonstrates how to create a custom response to a URL request to a restricted page or directory.

Before You Begin To begin this exercise, ensure the following virtual machines are started: • S i t e 1 - AD.training.lab • S i t e 1 - NS_VPX_0 • S i t e 1 - Web_Blue • S i t e 1 - Web_Green • S i t e 1 - Web_Red • S i t e 1 - Win7Client

Estimated time to complete this exercise: 10 minutes

Step by step guidance- Ex 9.6- Using Responder to Display a Custom Response

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility

logged on as the nsroot user for this task.

1. Switch to the configuration utility for NS_VPX_0

Page 81: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 80 |

2. Add a "rs_act_RespondWithCustom" custom responder action.

a. Navigate to Responder > Actions and click Add.

b. Type rs_act_RespondWithCustom in the Name field.

c. Select Respond with as the Type.

d. Click the Target field and type the following text:

"http/1.1 200 OK\r\n\r\n" + "Client: " + CLIENT.IP.SRC + " is not authorized to access URL: "

+ HTTP.REQ.URL.HTTP_URL_SAFE

e. Click Create, and then click Close.

3. Add the rs_pol_RespondWithCustom responder policy using the rs_act_RespondWithCustom action for any URL that contains "private."

a. Click the Policies node and click Add.

b. Type rs_pol_RespondWithCustom in the Name field.

c. Select rs_act_RespondWithCustom as the Action.

d. Type HTTP.REQ.URL.PATH.CONTAINS("private") in the Expression field.

e. Click Create, and then click Close.

4. Bind the rs_pol_RespondWithCustom policy globally.

a. Click Policy Manager.

b. Select Default Global under Bind Points.

c. Click Insert Policy and select rs_pol_RespondWithCustom as the Policy Name.

d. Verify that END is selected as the Goto Expression.

e. Click Apply Changes and then click Close.

5. Save and confirm the configuration changes.

Step by step guidance- Ex 9.6- Testing the Responder Policy

Step Action

1. Use the Win7Client virtual machine logged on as the training\administraor user for this task.

1. Browse to http://192.168.10.30/private to test the responder policy.

a. In a new browser window, browse to http://192.168.10.30/private.

An attempt to browse to /private results in the NetScaler system returning the custom response text. The “not authorized” message configured appears in the policy action.

Page 82: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 81 |

2. Use the HttpFox add-on to verify that the proper response code was generated.

a. Select Tools > Web Developer > HttpFox > Toggle HttpFox.

b. Refresh the page and verify that the HTTP response code HTTP/1.x 200 OK was properly generated.

This responder value indicates a successful response to the client browser.

c. Browse to http://192.168.10.30/.

The page loads as expected. The previously configured responder policy allows redirection to home.php for a successful page load.

3. Close the HttpFox window.

Module 9 – Exercise for Rewrite,Responder, And URL Transform Exercise 9-7: Adding URL Transformations

Overview

http://support.citrix.com/article/CTX125682

This exercise demonstrates how to transfom URL requests to expired web pages into URLs of current pages.

Before You Begin

To begin this exercise, ensure the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_0

• S i t e 1 - Web_Blue

• S i t e 1 - Web_Green

• S i t e 1 - Web_Red

• S i t e 1 - Win7Client

Estimated time to complete this exercise: 15 minutes

Step by step guidance- Ex 9.7- Previewing Pages for URL Transformation

Step Action

Page 83: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 82 |

1. Use the Win7Client virtual machine logged on as the Training\administrator user for this task.

1. Open a Firefox browser and browse to http://192.168.10.30/dist_red.php.

Expected Result: The dist_red.php page should display normally (Japan). The dist_blue.php (US) and dist_green.php (Germany) pages may be tested as well.

2. Browse to http://192.168.10.30/international_red.php.

You will receive a Server Error 404 - File or directory not found.

Step by step guidance- Ex 9.7- Using Responder to Transform URLs

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

Switch to the configuration utility for NS_VPX_0 and log on using the nsroot credentials

if necessary.

2. Add the trns_remote_URL transform profile to transform requests for "/dist_page.php" into "/international_page.php".

a. Navigate to Rewrite > URL Transformation > Profiles.

b. Click Add.

c. Type trns_remote_URL in the Name field.

d. Type the following text in the Comments field.

"Transform /dist_page.php (actual) to /international_page.php (display)"

e. Click Create, and then click Close.

3. Add the act_trns_DistToInt transform action to the trns_remote_URL profile with a priority of 50.

a. Select the trns_remote_URL profile and click Open.

b. Click Add to add an action.

c. Click the Name field and type act_trns_DistToInt.

d. Verify that the priority is set to 50.

e. Select Enabled.

Page 84: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 83 |

4. Set the actions for the act_trns_DistToInt transform to change requests for "/dist*" into

"/international*".

a. Click the Request URL From field and type the following text:

http://192.168.10.30/international_(.*)

b. Click the Request URL Into field and type the following text:

http://192.168.10.30/dist_$1

c. Click the Response URL From field and type the following text:

http://192.168.10.30/dist_(.*)

d. Click the Response URL Into field and type the following text:

http://192.268.10.30/international_$1

e. Click Create, and then click Close.

5. Create a transform policy by entering the following command:

a. Navigate to Rewrite > URL Transformation > Policies and click Add. b. Click the Name field and type trns_pol_remote in the Name field. c. Select trns_remote_URL for the profile. d. Click the the Expression field and type TRUE. e. Click Create, and then click Close.

6. Bind the trns_pol_Remote policy globally.

a. Click Policy Manager.

b. Select Override Global under Bind Points.

c. Click Insert Policy and select trns_pol_remote for the Policy name.

d. Click Apply Changes, then click Close.

7. Save the NetScaler configuration.

a. Click Save in the upper-right corner of the configuration utility.

b. Click Yes to confirm saving the configuration.

c. Click OK when the save is complete.

Step by step guidance- Ex 9.7- Testing the URL Transform Policy

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

Switch to the configuration utility for NS_VPX_0 and log on using the nsroot credentials

if necessary.

2. Browse to http://192.168.10.30/international_red.php.

The same page loads as expected.

The URL displays "international_red.php," but the content that is loading is the "dist_red.php" page.

The server request is load-balanced and accesses the alternate pages international_blue.php and international_green.php, resulting in the dist_blue.php and dist_green.php content, respectively.

Page 85: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 84 |

Module 10 – Exercise for Content Switching Exercise 10-1: Configuring Content Switching

Overview

This exercise demonstrates how to configure content switching on a NetScaler system, including creating non-addressable virtual servers, content switching virtual servers, and using policies and expressions to switch content at the servers. http://www.youtube.com/watch?v=9nNvUpwYm_4/ Before You Begin To begin this lab, ensure that the following virtual machines are started: • Site1-AD.training.lab • Site1-NS_VPX_0 • Site1-Web_Blue • Site1-Web_Green • Site1-Web_Red • Site1-Win7Client

Estimated time to complete this exercise: 20 minutes

Step by step guidance- Ex 10.1- Verifying Content Switching Feature is enabled

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Verify the content-switching feature is enabled.

a. Switch configuration utility for NS_VPX_0 and log on using the nsroot credentials.

b. Expand the System node and select Settings.

c. Click Configure basic features in the Settings pane.

The Configure Basic Features dialog box opens. Verify that the Load Balancing and

Content Switching features are selected and click Close.

The Configure Basic Features dialog box closes.

Step by step guidance- Ex 10.1- Creating Non-Addressable Load Balanced Virtual Servers

Step Action

Page 86: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 85 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Create a non-addressable "lb_vsrv_red" load-balancing virtual server for the WebRed webserver.

a. Expand the Load Balancing node and select Virtual Servers.

b. Click Add in the Load Balancing Virtual Servers pane.

The Create Virtual Server (Load Balancing) dialog box opens.

c. Type lb_vsrv_red in the Name field, then verify that HTTP is selected in the Protocol drop-down list.

This virtual server is dedicated to iPhone users.

d. Deselect Directly Addressable and click Yes to confirm the change.

This action disables the IP address and Port fields. No VIP address is assigned to this load- balancing virtual server.

e. Check the Active field for svc_red on the Services tab and click Create.

This step binds the service to the virtual server.

2. Create a non-addressable "lb_vsrv_blue" load-balancing virtual server for the WebBlue webserver.

a. Type lb_vsrv_blue in the Name field, then verify that HTTP is selected in the

Protocol drop-down list.

This virtual server is dedicated for Internet Explorer 6 users.

b. Deselect the Active field for svc_red on the Services tab.

c. Select the Active field for svc_blue on the Services tab and click Create.

3. Create a non-addressable "lb_vsrv_green" load-balancing virtual server for the WebGreen webserver.

Type lb_vsrv_green in the Name field, then verify that HTTP is selected in the Protocol drop-down list.

a. This virtual server is dedicated to default users. b. Deselect the Active field for svc_blue on the Services tab. c. Select the Active field for svc_green on the Services tab and click Create. d. Click Close.

The Create Virtual Server (Load Balancing) dialog box closes.

Step by step guidance- Ex 10.1- Creating Policy Expressions

Step Action

Page 87: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 86 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Create a policy expression that will respond to requests from iPhone clients.

a. Navigate to AppExpert > Expressions > Advanced Expressions.

b. Click Add in the Advanced Expressions pane.

The Create Policy Expression dialog box opens.

c. Type iPhone in the Expression Name field and click Add under Expression.

The Add Expression dialog box opens.

d. Configure the policy expression using the following settings:

• HTTP as the protocol

• REQ as the flow type

• HEADER (String) as the qualifier

• Header name: User-Agent

• Contains (String) as the operator

• Pattern string: iPhone

e. Click OK, click Create, then click Close.

The iPhone expression is created and the Create Policy Expression dialog box closes

2. Create a policy expression that responds to requests from Internet Explorer 6 clients.

a. Click Add in the Expressions pane.

The Create Policy Expression dialog box opens.

b. Type IE6 in the Expression Name field and click Add under Expression.

The Add Expression dialog box opens.

c. Configure the policy expression using the following settings:

• HTTP as the protocol REQ as the flow type

• HEADER (String) as the qualifier

• Header name: User-Agent

• Contains (String) as the operator

• Pattern string: MSIE 6.0

d. Click OK, click Create, and then click Close.

The IE6 expression is created and the Create Policy Expression dialog box closes.

Step by step guidance- Ex 10.1- Creating Content Switching Policies

Step Action

Page 88: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 87 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Create a content-switching policy expression for iPhone clients.

a. Expand the Content Switching node and then select Policies.

b. Click Add in the Content Switching Policies pane.

The Create Content Switching Policy dialog box opens.

c. Type cs_pol_mobile in the Name field, then click Configure.

The Create Expression dialog box opens.

d. Click the arrow to the right of the Add button and select iPhone from the drop-down list.

e. Click Create, then click Create again.

This step creates the cs_pol_mobile policy.

f. Click Close.

The Create Content Switching Policy dialog box closes.

2. Create a content-switching policy expression for Internet Explorer 6 clients.

a. Click Add in the Content Switching Policies pane.

The Create Content Switching Policy dialog box opens.

b. Type cs_pol_legacy in the Name field, then click Configure.

The Create Expression dialog box opens.

c. Click the arrow to the right of the Add button and select IE6 from the drop-down list.

d. Click Create, then click Create again.

This step creates the cs_pol_legacy policy.

e. Click Close.

The Create Content Switching Policy dialog box closes.

3. Save the NetScaler configuration.

a. Click Save in the upper-right corner of the configuration utility window.

b. Click Yes to confirm saving then click OK.

Step by step guidance- Ex 10.1- Creating Content Switching Virtual Server

Step Action

Page 89: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 88 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Create a content-switching virtual server called cs_vsrv_rbg with an IP address of

192.168.10.32

a. Expand the Content Switching node and select Virtual Servers.

b. Click Add in the Content Switching Virtual Servers pane.

The Create Virtual Server (Content Switching) dialog box opens.

c. Type cs_vsrv_rbg in the Name field and then type 192.168.10.32 in the IP

Address field.

d. Verify the Protocol is set to HTTP and that the port is set to 80..

2. Bind the cs_pol_mobile policy to the content-switching virtual server.

a. Click Insert Policy and select cs_pol_mobile to bind the mobile policy to the content switching virtual server.

b. Click the Target cell for cs_pol_mobile and select lb_vsrv_red.

c. Click Yes in the Proceed window.

3. Bind the cs_pol_legacy policy to the content switching virtual server.

a. Click Insert Policy and select cs_pol_legacy to bind the legacy policy to the content- switching virtual server.

b. Click the Target cell for cs_pol_legacy and select lb_vsrv_blue.

c. Click Yes in the Proceed window.

4. Set up the default user policy and bind it to the content switching virtual server.

a. Click Insert Policy and select (Default) to bind the default policy to the content switching virtual server.

b. Click the Target cell for (Default) and select lb_vsrv_green.

5. Create the virtual server and save the NetScaler configuration.

a. Click Create and then click Close.

This creates the virtual server.

b. Click Save in the upper-right corner of the configuration utility window.

c. Click Yes to confirm saving then click OK.

Step by step guidance- Ex 10.1- Testing the Content-Switching Configuration

Step Action

Page 90: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 89 |

1. Use the Win7Client virtual machine logged on as the training\administrator user for this task.

1. Test the configuration and to observe content-switching behavior.

a. Open a new Firefox browser window and browse to http://192.168.10.32/home.php.

The Green server displays for all other users (Firefox, IE 7.0, or any other agent) as the default policy.

Change the browser user agent to iPhone by clicking Tools > Default User Agent

>iPhone 3.0 in Firefox, then click the Refresh button.

The Red server displays only to mobile users (iPhone).

c. Change the browser user agent to Internet Explorer 6 by clicking Tools >

iPhone 3.0 > Internet Explorer > Internet Explorer 6 in Firefox, then click the

Refresh button.

The Blue server displays only to legacy browser users (MSIE 6.0).

d. Change the browser user agent to the default by clicking Tools > Internet

Explorer 6 >Default User Agent.

2.

Module 11 – Exercise for Optimizing Traffic Exercise 11-1: Configuring Compression

Overview

This exercise demonstrates the basics of configuring compression policies on the NetScaler system. Compression policies are used to control which responses are compressed and which responses are not compressed.

http://support.citrix.com/article/CTX122718

http://support.citrix.com/article/CTX125668

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• Site1-AD.training.lab

• Site1-NS_VPX_0

• Site1-Web_Blue

• Site1-Web_Green

Page 91: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 90 |

• Site1-Web_Red

• Site1-Win7Client

Estimated time to complete this exercise: 20 minutes

Step by step guidance- Ex 11.1- Adding Compression Policies

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Disable server-side compression.

a. Navigate to the Optimization>HTTP Compression node.

b. Click Change compression settings.

c. Deselect Allow Server-side compression and click OK.

2. Create a compression policy called cmp_pol_javascript that will compress javascript content in

a. Navigate to HTTP Compression > Policies and click Add. b. The Create Compression Policy dialog box opens. c. Type cmp_pol_javascript in the Policy Name field. d. Select COMPRESS from the Response Action list.

Click Add to add an expression.

3. Complete the policy expression to compress javascript content.

a. Select HTTP for the Prefix.

b. Select RES from the Flow Type list.

c. Select HEADER(String)from the Qualifier list.

d. Type Content-Type in the Header Name field.

e. Select CONTAINS(String) from the Operator list.

f. Type javascript in the Pattern String field.

4. Complete the compression policy.

a. Click OK.

The expression should read HTTP.RES.HEADER("Content-Type").CONTAINS("javascript").

b. Click Create and then click Close.

The Add Expression dialog box closes.

5. Bind the policy to the lb_vsrv_rbg virtual server.

a. Click Policy Manager.

b. Click Response under Bind Points then click LB Virtual Server.

c. Double-click the lb_vsrv_rbg then click Insert Policy.

d. Select cmp_pol_javascript for the Policy Name.

e. Click Apply Changes then click Close.

Page 92: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 91 |

Step by step guidance- Ex 11.1- Verifying Compression for Services

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to NS_VPX_0 configuration utility logged on as the nsroot user.

1. Enable compression on the svc_red service.

a. Navigate to Load Balancing > Services.

b. Select svc_red in the Services pane and click Open.

c. Select the Advanced Tab.

d. Verify that Compression is selected under Settings in the Advanced tab.

e. Click OK.

2. Verify that compression is enabled on the svc_blue service.

a. Select svc_blue in the Services pane and click Open. b. Select the Advanced Tab. c. Verify that Compression is selected under Settings in the Advanced tab. d. d. Click OK.

3. Verify that compression is enabled on the svc_green service.

a. Select svc_green in the Services pane and click Open.

b. Select the Advanced Tab.

c. Verify that Compression is selected under Settings in the Advanced tab.

d. Click OK.

Step by step guidance- Ex 11.1- Testing Compression

Step Action

1. In the Win7Client virtual machine, use and HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Test the compression policy.

a. Navigate to Optimization>HTTP Compression > Policies.

b. View the statistics reported for the cmp_pol_javascript policy and note of the number of hits.

2. Open the jspage.php page on the lb_vsrv_rbg virtual server.

a. Launch the Internet Explorer browser.

b. Browse to http://192.168.10.30/jspage.php.

This opens a page with javascript content.

3. Return to the Policies node in the configuration utility and click Refresh. View the number of hits and compression ratio for the cmp_pol_javascript policy.

The hit count for cmp_pol_javascript policy should have increased.

If the hit count does not increment, the page may

Page 93: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 92 |

Module 12 – Exercise for Monitoring and Management Exercise 12-1: Auditing and Logging

Overview

This exercise demonstrates how to configure a syslog server and view syslog messages on the NetScaler.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_0

• S i t e 1 - Win7Client

Estimated time to complete this exercise: 20 minutes

Step by step guidance- Ex 12.1- Configuring the Kiwi Syslog Daemon

Step Action

1. Use the Win7Client virtual machine logged on as the t r ai ni ng\ admi ni st r at or user for this task.

1. Configure the Kiwi Syslog Daemon for UDP messages on port 514.

a. Navigate to Start > All Programs > Kiwi Enterprises > Kiwi Syslog Daemon > Kiwi Syslog Daemon. The Kiwi Syslog Service Manager opens.

b. Click File and select Setup.

c. Expand the Inputs node and click UDP.

d. Verify that Listen for UDP Syslog messages is selected and that the UDP Port is set to 514. Leave all other default settings.

e. Click OK.

Step by step guidance- Ex 12.1- Creating a Syslog Policy and Syslog Server

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

Switch to the configuration utility for NS_VPX_0 at http://192.168.10.50 and log on using

the nsroot credentials if necessary.

Page 94: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 93 |

2. Configure a syslog policy and syslog server using 192.168.10.23 for the IP address.

a. Navigate to System > Auditing > Syslog.

b. Click Add.

c. Type Ext_Kiwi in the Name field.

d. Click New.

e. Type Ext_Kiwi in the Name field and enter 192.168.10.23 in the IP Address field.

Leave the Port field blank as the NetScaler will default to UDP port 514.

f. Select All in the Log Levels field, and verify that Log Facility is set to LOCAL0.

g. Click Create.

This step creates the Ext_Kiwi server object.

h. Verify that Ext_Kiwi is selected in the Server field, click Create, and then click Close.

This step creates the syslog policy.

3. Bind the syslog policy to the syslog server.

a. Click Global Bindings in the Auditing Policies pane.

b. Click Insert Policy and select Ext_Kiwi from the Policy Name drop-down list, then click OK.

c. Click Save in the upper-right corner of the configuration utility to save the running configuration. Click Yes to confirm saving the configuration, then click OK when successfully saved.

By saving the running configuration, a syslog audit message is generated. Syslog messages are sent to the Kiwi Syslog Server running on the Win7Client. This message will be searchable in an upcoming task.

Step by step guidance- Ex 12.1- Viewing Recent Audit Messages

Step Action

Page 95: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 94 |

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. View recent audit messages.

a. Navigate to System > Auditing, and then click Recent audit messages in the Auditing pane.The Audit Messages dialog box opens.

b. Select one or more log levels to display and set the number of audit messages to be shown,then click Refresh.

The viewer will update with the specified number of messages for the selected

log levels. In most cases, systems in the lab will only have INFORMATIONAL

messages to display.

a. Click Close.

The Audit Messages dialog box closes.

Step by step guidance- Ex 12.1- Viewing Historical Audit Messages

Step Action

2. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. View historical audit messages.

a. Navigate to System > Auditing and select Syslog messages in the Auditing pane.

The Syslog Viewer dialog box opens.

b. Click the Severity drop-down list or other drop-down lists to sort the log messages.

c. Select a historical log file from the Log Files list.

Historical log files are maintained by default under /var/log and are in ns.log.#.gz form.

d. Click View.

The Syslog Viewer updates and displays messages from the historical log.

e. Enter a search string under Filter Messages, then click Go to view the search results.

Possible values for search string include: "lb vserver", "ns conf", or enable feature.

f. Click Close.

The Syslog Viewer dialog box closes.

Step by step guidance- Ex 12.1- Viewing Auditing Messages on the Remote Syslog Server

Step Action

Page 96: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 95 |

3. Use the Win7Client virtual machine logged on as the training\administrator user for this task.

1. View audit messages on the remote syslog server.

a. Switch to the Kiwi Syslog Daemon.

b. View the syslog messages from the NetScaler in the Display 00 (Default) syslog window.

The systems in the lab will only have INFORMATIONAL messages to display.

c. Close the Kiwi Syslog Service Manager.

Step by step guidance- Ex 12.1- Disabling Syslog Auditing Messages

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Disable logging of Syslog Audit Messages to the Kiwi Syslog Server.

a. Switch to the configuration utility for NS_VPX_0.

b. Navigate to System > Auditing > Syslog.

c. Click Global Bindings in the Syslog pane.

The Bind/Unbind Auditing Policies to Global dialog box opens.

d. Select the Ext_Kiwi policy, click Unbind Policy, and then click OK.

The Bind/Unbind Auditing Policies to Global dialog box closes.

Module 12 – Exercise for Monitoring and Management Exercise 12-2: Monitoring

Overview

This exercise demonstrates how to configure SNMP monitoring on the NetScaler.

Before You Begin

To begin this lab, ensure that the following virtual machines are started:

• S i t e 1 - AD.training.lab

• S i t e 1 - NS_VPX_0

• S i t e 1 - Win7Client

Page 97: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 96 |

Estimated time to complete this exercise: 20 minutes

Step by step guidance- Ex 12.1- Configuring SNMP Settings

Step Action

1. In the Win7Client virtual machine, use an HTTP connection to the NS_VPX_0 configuration utility logged on as the nsroot user for this task.

1. Switch to the configuration utility for NS_VPX_0 at http://192.168.10.50 and log on using the nsroot credentials if necessary.

2. Configure an SNMP manager with a management host of 192.168.10.23.

a. Navigate to System > SNMP > Managers.

b. Click Add in the SNMP Managers pane.

The Add SNMP Manager dialog box opens.

c. Select Management Host and type 192.168.10.23 in the Host Name field.

d. Click Create and then click Close.

3. Configure an SNMP community named "ctxtrainsnmp" with permissions set to ALL.

a. Navigate to System > SNMP > Community.

b. Click Add in the SNMP Community pane.

The Create SNMP Community dialog box opens.

Type ctxtrainsnmp in the Community String field and select ALL from the permission drop-down list.

d. Click Create and then click Close.

4. Configure a specific SNMPv2 trap for the destination IP address 192.168.10.23. Associate the trap with the ctxtrainsnmp SNMP community.

a. Navigate to System > SNMP > Traps and click Add in the SNMP Traps pane.

The Create SNMP Trap Destination dialog box opens.

b. Select Specific in the Type field and verify that V2 is selected in the Version field.

c. Type the SNMP IP 192.168.10.23 in the Destination IP address field and leave the

Source IP Address field blank.

The NSIP address is used by default.

d. Type ctxtrainsnmp in the Community Name field.

The community name must match the community string specified when configuring the

SNMP community in this lab.

e. Click Create and then click Close.

5. Configure an SNMP alarm as type CONFIG-SAVE. Verify the alarm is enabled and save the NetScaler configuration.

a. Navigate to System > SNMP > Alarms.

b. Select the CONFIG-SAVE alarm and click Open.

The Configure SNMP Alarm dialog box opens.

c. Verify Enabled is selected and click OK.

The Configure SNMP Alarm dialog box closes.

d. Click Save to save the configuration and trigger an SNMP alert.

Page 98: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 97 |

Step by step guidance- Ex 12.1- Configuring the Kiwi Syslog Daemon and Viewing SNMP Alerts

Step Action

1. Use the Win7Client virtual machine logged on as the training\administrator user for this task.

1. Start the Kiwi Syslog Daemon listening for SNMP traps on UDP port 162.

a. Click Start > All Programs > Kiwi Enterprises > Kiwi Syslog Daemon > Kiwi Syslog Daemon.The Kiwi Syslog Daemon opens.

b. Click File and select Setup.Expand the Inputs node and select SNMP.

c. Check Listen for SNMP Traps and verify that 162 is entered in the UDP Port

field.

2. Prepare the listener for an informational trap from the Syslog Level drop-down menu. Clear any previously captured data and send an SNMP trap.

a. Select Info from the Syslog Level list and click OK. b. Click View and select Clear display. c. Switch to the NetScaler configuration utility and click Save to save

the running configuration and send an SNMP trap.

3. View the SNMP traps in the Kiwi Syslog Daemon. The SNMP syslog will resemble the

following:

12-02-2008 16:22:43 Local7.Info 172.30.108.5

community=ctxtrainsnmp,

enterprise=1.3.6.1.4.1.5951.1.1.0.28,

enterprise_mib_name=netScalerConfigSave,

uptime=508021, agent_ip=192.168.10.23,

version=Ver2, nsUserName.0=nsroot,

sysIpAddress.0=192.168.10.50

Revision: Change Description Updated By Date

1.0 Original version Paul Walker 11/2014

Page 99: Hands-on Lab Exercise Guide - docs.citrixvirtualclassroom.comdocs.citrixvirtualclassroom.com/events/SYNLA2014/geo-wts... · 2017-07-10 · The Student Desktop is accessed remotely

| 98 |

About Citrix

Citrix Systems, Inc. designs, develops and markets technology solutions that enable information

technology (IT) services. The Enterprise division and the Online Services division constitute its two

segments. Its revenues are derived from sales of Enterprise division products, which include its

Desktop Solutions, Datacenter and Cloud Solutions, Cloud-based Data Solutions and related

technical services and from its Online Services division's Web collaboration, remote access and

support services. It markets and licenses its products directly to enterprise customers, over the

Web, and through systems integrators (Sis) in addition to indirectly through value-added resellers

(VARs), value-added distributors (VADs) and original equipment manufacturers (OEMs). In July

2012, the Company acquired Bytemobile, provider of data and video optimization solutions for

mobile network operators.