Customize Netscaler Gateway Logon Page

An article by Trond Eirik Haavarstein from xenappblog.com

Customize Netscaler Gateway Logon Page 01 300x141 Customize Netscaler Gateway Logon Page

When hosting multiple customers on the same Netscaler solution you can use Responder to customize Netscaler Gateway logon page.

In this article I’ll show you how you can remove the Password 2 field which gets there by default if you enable Radius.

Head over to System – Settings – Configure Advanced Features and enable Responder.

Customize Netscaler Gateway Logon Page 02 214x300 Customize Netscaler Gateway Logon Page

Then connect to your Netscaler via WinSCP and make a copy of index.html and login.js which are located in/netscaler/ns_gui/vpn

Customize Netscaler Gateway Logon Page 05 300x283 Customize Netscaler Gateway Logon Page

I’ve called mine *_custom.* in this example. Edit index_custom.html so it points to login_custom.js

Customize Netscaler Gateway Logon Page 04 300x168 Customize Netscaler Gateway Logon Page

Then head into Responder – Action. Add your https://FQDN/index_custom.html

Customize Netscaler Gateway Logon Page 06 300x188 Customize Netscaler Gateway Logon Page

Create a policy and replace example.com with your FQDN.

Customize Netscaler Gateway Logon Page 07 300x192 Customize Netscaler Gateway Logon Page

The final step is to bind this new Responder Policy to your Access Gateway vServer.

Customize Netscaler Gateway Logon Page 08 300x217 Customize Netscaler Gateway Logon Page

So as you can see this is a very easy way for you to customize Netscaler Gateway logon page for various customers and attached a policy to the proper vServers.

I believe this can also be done with REGEX and rewrite rules, but that’s not my field of expertise. Please share below if you know.

The final step is to make sure these customizations stick after reboot.

  • Create a catalog \var\custom
  • Create the file rc.netscaler in /flash/nsconfig with this command line : cp -R /var/custom/* /netscaler/ns_gui/

Customize Netscaler Gateway Logon Page 09 300x293 Customize Netscaler Gateway Logon Page

  • Copy all folders from /netscaler/ns_gui to /var/custom
  • Save and reboot the appliance.

Resources :

 

Tags: ,

Comments

No comments so far.

  • Leave a Reply
     
    Your gravatar
    Your Name