Citrix Secure Gateway with Citrix XenDesktop 5

AID: 4536
  • Status: Published

2440 points

  • Byridha121
  • TypeTips/Tricks
  • Posted on2011-02-18 at 06:34:46
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month.

Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virtual machines, first thing was to learn the new concepts in XD5 to understand their relationship to XD4. I then began to deploy the required components and got it up and running internally however my main issue to tackle was providing external access which proved a hassle. The following is what I did to successfully implement external access.

Citrix Secure Gateway

Ok there are different ways of implementing external access notably for one of our clients we used NATing to achieve this, this is not the most ideal way as it required a lot of configuration and generally is more time consuming, find out how to do this here

NATing option basically maps the internal IP of the XD server to an external IP, the problem arises when launching an ICA session as it has to map to an internal virtual desktop which obviously does not carry a public IP.  This is overcome by using port forwarding to the internal IP of the desired desktop; port forwarding is done for all virtual machines and thus is not the best way to implement external access for a large environment. This is where CSG (Citrix Secure Gateway) comes into play.

Citrix have the Access Gateway appliance which is a hardware version of CSG this of course is the preferred way to implement external secure access however in my scenario I am running XD in a small environment and thus it would not be feasible to invest in this appliance.

Step 1 - Obtaining a third part SSL Certificate



Ok from reading around I learnt that an SSL certificate was required to implement CSG initially I thought that these were paid for certificates however with some searching I came across startssl.com. Once registering with them one is able to generate a free SSL certificate which can be used in conjunction with the given domain name. Following are steps to generate a SSL cert

1) Set up the chosen domain name (citrix.domain.com)
2) In startSSL control panel, validate domain name
3) Email is sent to postmaster of the domain and with activation code in email one can validate the domain
4) Generate certificate request in IIS manager on the given server
5) In startSSL control panel use the wizard to generate a certificate and in there paste the code outputted from the request in step 4
6) startSSL will then output certificate code which is saved as a .pkt file.
7) Certificate is now ready to be used for secure access time for configuring SSL.

Step 2 - Trying to implement CSG on the Controller server along with Web Interface

This proved to be a big hassle mainly because I have to configure CSG to use port 443 as it will manage https:// traffic I could not get it to use port 443 as the configuration stage kept complaining it was in use by another process.

I investigated this further and ran the command netstat -am to show all the processes and what ports were being listened to on the server. In the end using the PID ID I managed to identify the NT Kernel and System process was using port 443. I searched Google frantically and even went on the forums to ask around but no one seemed to be able to help me many assumed that IIS (Internet Information Services) was using this port. I then attempted to use port 444 for CSG but it I could still not get it to direct to the login page and also I did not want users to enter :444 in the address.

Step 3 - Created a new server for Web Interface and CSG

Since port 443 was in use and since I did not know for the love of me what was using it I decided to simply copy my existing VM server and then sysprep the copied server to use as a dedicated web server for XenDesktop.  I read somewhere on Citrix forums that a user uninstalled the DDC and port 443 was free so I assumed that since DDC would not be on the server the port would be free and as I suspected the port was free.

I then configured CSG to use port 443 and in WI console reconfigured the XenDesktop site secure access to use gateway direct on port 443. I also changed XML settings to point to the controller sever so that WI can initiate an ICA connection. I'll summarise things to remember in bullet points below

    * CSG act as DMZ and manages connections between virtual desktops and external world
    * Secure Ticket Authority is the server that holds the controller
    * IIS must not be configured to use port 443, use port 444 if binding with https
    * You can use IIS default site and no need to create a new site in IIS
    * PNAgent site is the site used by idevices (i.e., ipod, ipad) - make sure to configure using gateway direct
    * SSL Cert must be installed on the controller server and WI/CSG server
    * CSG manages ICA connections
Asked On
2011-02-18 at 06:34:46ID4536
Tags

citrix

,

xendesktop

,

xenapp

,

csg

,

secure

,

gateway

Topic

Windows XP Operating System

Views
1780

Comments

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Windows XP Experts

  1. nobus

    109,514

    Master

    0 points yesterday

    Profile
    Rank: Savant
  2. MASQUERAID

    86,680

    Master

    498 points yesterday

    Profile
    Rank: Genius
  3. flubbster

    83,880

    Master

    2,000 points yesterday

    Profile
    Rank: Genius
  4. thinkpads_user

    44,689

    1,500 points yesterday

    Profile
    Rank: Genius
  5. BillDL

    43,868

    0 points yesterday

    Profile
    Rank: Genius
  6. Run5k

    41,750

    0 points yesterday

    Profile
    Rank: Genius
  7. Darr247

    38,180

    0 points yesterday

    Profile
    Rank: Genius
  8. SSharma

    36,782

    0 points yesterday

    Profile
    Rank: Genius
  9. ve3ofa

    34,109

    0 points yesterday

    Profile
    Rank: Genius
  10. cwstad2

    32,527

    0 points yesterday

    Profile
    Rank: Guru
  11. motnahp00

    29,474

    3,000 points yesterday

    Profile
    Rank: Sage
  12. DTHConsulting

    28,336

    0 points yesterday

    Profile
    Rank: Guru
  13. Anuroopsundd

    26,827

    2,000 points yesterday

    Profile
    Rank: Sage
  14. hanccocka

    26,512

    0 points yesterday

    Profile
    Rank: Genius
  15. arnold

    26,147

    0 points yesterday

    Profile
    Rank: Genius
  16. KCTS

    25,512

    0 points yesterday

    Profile
    Rank: Genius
  17. l33tf0b

    22,780

    0 points yesterday

    Profile
    Rank: Wizard
  18. rindi

    22,108

    0 points yesterday

    Profile
    Rank: Savant
  19. dstewartjr

    21,650

    0 points yesterday

    Profile
    Rank: Genius
  20. Callandor

    21,288

    0 points yesterday

    Profile
    Rank: Genius
  21. DaveBaldwin

    21,060

    0 points yesterday

    Profile
    Rank: Genius
  22. leew

    20,982

    0 points yesterday

    Profile
    Rank: Savant
  23. garycase

    20,824

    0 points yesterday

    Profile
    Rank: Genius
  24. rpggamergirl

    20,432

    10 points yesterday

    Profile
    Rank: Genius
  25. jcimarron

    19,748

    0 points yesterday

    Profile
    Rank: Genius

Hall Of Fame