Add customized scripts for Secure Client

Add customized OnConnect and OnDisconnect scripts to enhance Secure Client functionality and automate endpoint operations during VPN connection events.

Customized scripts allow you to execute specific actions on endpoints when users connect to or disconnect from the VPN. These scripts can be used to configure network settings, install software, or perform other automated tasks.

Before you begin

  1. Configure a remote access VPN.

  2. Enable scripting in the VPN profile.

  3. Add the VPN profile to the remote access VPN group policy.

Follow these steps to add customized scripts for Secure Client:

Procedure


Step 1

Create OnConnect and OnDisconnect scripts for a platform.

Step 2

Create a new Secure Client customization object.

  1. Choose Objects > VPN > Secure Client Customization.

  2. Click Add Secure Client Customization.

  3. Enter the name and description for the customization object.

  4. From the Customization Type drop-down list, choose Scripts.

  5. From the Platform drop-down list, choose a platform.

  6. Select one of these options:

    • On Connect: To select an OnConnect script.

    • On Disconnect: To select an OnDisconnect script.

  7. Click Browse and select the script you want to execute on the endpoint.

Step 3

Add the customization object to the remote access VPN policy.

  1. Choose Secure Connections > Remote Access VPN.

  2. Click the edit icon of the remote access VPN policy.

  3. Click the Advanced tab.

  4. In the left pane, click Secure Client Customizations > Scripts.

  5. Click + to select the customization object.

  6. Click OK.

Step 4

Click Save.

Step 5

Choose Deploy > Deployment and deploy the policy to assigned devices. The changes become active only when you deploy them.


What to do next

Verify the Secure Client customizations. For more information, refer to Verify Secure Client customizations.