Advanced Netscaler Customizations Sam Jacobs Director, TechDev Services, IPM [email_address] twitter.com/WIguru July 19 th...
Session Topics <ul><li>Netscaler Themes </li></ul><ul><li>Customization Tools </li></ul><ul><li>Login page customizations ...
Netscaler Themes <ul><li>Carbon Fiber (Caxton) –  built-in   </li></ul><ul><li>White Pearl –  downloadable skin </li></ul>...
Carbon Fiber White Pearl .CSS files are responsible for: page/font colors, font size, margins, backgrounds, borders, align...
Carbon Fiber White Pearl Theme Comparison
Can you create other themes …?
Customization Tools <ul><li>Secure FTP (SFTP) client (e.g. WinSCP)  </li></ul><ul><ul><li>Transfer files to/from Netscaler...
Logon Page Customizations <ul><li>/netscaler/ns_gui/vpn  </li></ul><ul><li>index.html – main HTML content </li></ul><ul><l...
NavUI Customizations /netscaler/portal/templates/homepage.html – for NavUI or Web Interface site if using ICA proxy.
Persisting Customizations <ul><li>Unless you are careful, your customizations will be lost when the  Netscaler is rebooted...
OS/Browser Detection <ul><li>Detection via device User-Agent header  </li></ul><ul><li>iPad / iPhone / Blackberry / Androi...
User-Agent headers IE 8 (Windows 7) Mozilla/4.0 (compatible;  MSIE 8.0 ; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET C...
Spoofing the User-Agent - Firefox about:config Filter on:  useragent
Spoofing the User-Agent - Safari Preferences | Advanced Develop | User Agent Check: Show Develop menu in menu bar
Spoofing the User-Agent - Chrome Start Chrome with desired User-Agent:  (shown here starting as IE8) C:UsersXXXXAppDataLoc...
Spoofing the User-Agent – IE8 Run  GPEDIT.MSC: Expand: User Configuration Windows Settings IE Maintenance Connection Doubl...
Demo Mobile device detection (User-Agent)
Custom Pages for Each vServer location.host  – URL entered by the user location.host.toLowerCase()  – for a case-insensiti...
Windows 7
iPad <a href= “http :// itunes.apple.com/us/app/citrix-receiver-for-ipad/id363501921  &quot;>Click here</a> to download th...
iPhone
Android
Blackberry
Citrix Receiver Auto-Configuration Mobile Device URL Generator http://community.citrix.com/MobileReceiverSetupUrlGenerator...
Citrix Receiver Auto-Configuration
Customized Netscaler Logging
Customized Netscaler Logging -  Purchase a retail copy of SolarWinds Kiwi Syslog Server   (the free version does not inclu...
Resources IPM TechDev Corner: http://www.ipm.com/category/technical-insight/techdev-corner/ VMwareInfo.com: http://VMwareI...
Questions? Wouldn’t it be nice if …?
Upcoming SlideShare
Loading in …5
×

Bri forum 2011 advanced netscaler customizations

19,323 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
19,323
On SlideShare
0
From Embeds
0
Number of Embeds
863
Actions
Shares
0
Downloads
80
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Bri forum 2011 advanced netscaler customizations

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

×