Advanced Netscaler Customizations-BriForum 2011

22,215 views

Published on

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
22,215
On SlideShare
0
From Embeds
0
Number of Embeds
2,525
Actions
Shares
0
Downloads
121
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Advanced Netscaler Customizations-BriForum 2011

  1. 1. Advanced NetscalerCustomizations<br />Delivered at BriForum 2011 by Sam Jacobs<br />Director of Technology Development at IPM<br />
  2. 2. Session Topics<br /><ul><li>Netscaler Themes
  3. 3. Customization Tools
  4. 4. Login page customizations
  5. 5. NavUI customizations
  6. 6. OS/Browser detection
  7. 7. Creation of custom pages / vServer
  8. 8. Customized Netscaler logging</li></li></ul><li>Netscaler Themes<br /><ul><li>Carbon Fiber (Caxton) – built-in
  9. 9. White Pearl – downloadable skin</li></ul>http://support.citrix.com/article/CTX123607<br />
  10. 10. Carbon Fiber <br />White Pearl<br />Advanced Netscaler Customizations<br />.CSS files are responsible for:<br />page/font colors, font size, margins, backgrounds, borders, alignment<br />
  11. 11. Theme Comparison<br />White Pearl<br />Carbon Fiber<br />
  12. 12. Can you create other themes …?<br />
  13. 13. Customization Tools<br /><ul><li>Secure FTP (SFTP) client (e.g. WinSCP)
  14. 14. Transfer files to/from Netscaler
  15. 15. Developer Tools (IE / Chrome)
  16. 16. Firebug (FireFox)
  17. 17. Inspect code/image source, styles, etc.
  18. 18. Editor (VS, Notepad++, etc.)
  19. 19. Keyword color-coding, auto-complete
  20. 20. Use a wildcard SSL certificate !</li></li></ul><li>Logon Page Customizations<br />/netscaler/ns_gui/vpn <br />index.html – main HTML content<br />nsshare.js – Javascript routines to display banners, headers and footers<br />login.js – Javascript validation routines (also contains routines to display AD and RSA password fields)<br />/netscaler/ns_gui/vpn/images – contains images and .css<br />/netscaler/ns_gui/vpn/resources – for versions 9.2+text localization files (e.g. en.xml)<br />
  21. 21. NavUI Customizations<br />/netscaler/portal/templates/homepage.html – for NavUI<br />or Web Interface site if using ICA proxy.<br />
  22. 22. Persisting Customizations<br />Unless you are careful, your customizations will be lost when theNetscaler is rebooted!<br />Create a directory for your customizations, e.g.<br />/var/custom_files/<br />Edit the file rc.netscaler (in /nsconfig), and add:<br />cp -r /var/custom_files/ns_gui/* /netscaler/ns_gui<br />
  23. 23. OS/Browser Detection<br /><ul><li>Detection via device User-Agent header
  24. 24. iPad / iPhone / Blackberry / Android detection
  25. 25. Deliver customized pages for each device
  26. 26. Citrix Receiver auto-configuration
  27. 27. Information for Help Desk</li></li></ul><li>User-Agent headers<br />IE 8 (Windows 7)<br />Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; FDM; MS-RTC LM 8)<br />IE 7 Compatibility<br />Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; FDM; MS-RTC LM 8)<br />Google Chrome<br />Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.100 Safari/534.30<br />iPad<br />Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J3 Safari/6533.18.5<br />iPhone<br />Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3<br />Blackberry<br />Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en-US) AppleWebKit/534.8+ (KHTML, like Gecko) Version/6.0.0.448 Mobile Safari/534.8+<br />http://whatsmyuseragent.com/<br />
  28. 28. Spoofing the User-Agent - Firefox<br />about:config<br />Filter on: useragent<br />
  29. 29. Spoofing the User-Agent - Safari<br />Preferences | Advanced<br />Check:<br />Show Develop menu in menu bar<br />Develop | User Agent<br />
  30. 30. Spoofing the User-Agent - Chrome<br />Start Chrome with desired User-Agent: (shown here starting as IE8)<br />C:UsersXXXXAppDataLocalGoogleChromeApplicationchrome.exe --user-agent="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.5.30729)“<br />OR<br />Edit chrome.dllwith a hex editor (e.g. Xvi32) … see:<br />How to Change User Agent String in Google Chrome Browser<br />http://www.labnol.org/software/change-google-chrome-user-agent-string/4566/<br />
  31. 31. Spoofing the User-Agent – IE8<br />Run GPEDIT.MSC:<br />Expand:<br />User Configuration<br /> Windows Settings<br /> IE Maintenance<br /> Connection<br />Double-click on <br />User Agent String<br />Or download:<br />UA Pick User Agent Switcher:<br />http://ieaddons.com/en/addons/detail.aspx?id=2040<br />
  32. 32. Demo<br />Mobile device detection<br />(User-Agent)<br />
  33. 33. Custom Pages for Each vServer<br />location.host– URL entered by the user<br />location.host.toLowerCase() – for a case-insensitive comparison<br />if (location.host.toLowerCase()=="symphony.ipm.com") {<br />location.href="symphony.html";<br />}<br /> Make sure you use a wildcard SSL certificate!<br />
  34. 34. Windows 7<br />
  35. 35. iPad<br /><a href=“http://itunes.apple.com/us/app/citrix-receiver-for-ipad/id363501921 ">Click here</a> to download the Citrix Receiver for iPad.<br />citrixreceiver://createprofile/?s=https%3A%2F%2Fsymphony.ipm.com&pname=IPM%20Application%20Portal&d=IPM&gw=1&gwt=2&gwa=3<br />
  36. 36. iPhone<br />
  37. 37. Android<br />
  38. 38. Blackberry<br />
  39. 39. Citrix Receiver Auto-Configuration<br />Mobile Device URL Generator<br />http://community.citrix.com/MobileReceiverSetupUrlGenerator/<br />
  40. 40. Citrix Receiver Auto-Configuration<br />
  41. 41. Customized Netscaler Logging<br />
  42. 42. Customized Netscaler Logging<br /><ul><li>Purchase a retail copy of SolarWinds Kiwi Syslog Server(the free version does not include ODBC logging to SQL): http://www.kiwisyslog.com/kiwi-syslog-server-overview/
  43. 43. Sample scripts may be found here: (John Smithttp://xen-trifuge.com/2010/06/16/project-poindexter-2/
  44. 44. Configure the Netscaler to send syslog output to Kiwi: </li></li></ul><li>Resources<br />IPM TechDev Corner:<br />http://www.ipm.com/category/technical-insight/techdev-corner/<br />VMwareInfo.com:<br />http://VMwareInfo.com<br />Citrix AGEE Forum:<br />http://forums.citrix.com/forum.jspa?forumID=159<br />
  45. 45. Closing<br />Thank you.<br />

×