Running script user cinnecting to GP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Running script user cinnecting to GP

L4 Transporter

Hi,

 

We would like to run a script for the users when GP VPN goes UP. This script is for mapping network drives in theclients.

 

Is possible to do that? any link with info? 

5 REPLIES 5

Cyber Elite
Cyber Elite

Good Morning.

 

Thank you for your question.

 

While not specifically something related to GP or PANW, there are plenty of websites that discuss how to script network mapped drives:

 

https://tinyurl.com/yalr3xqy

 

I believe your script would need to be run AFTER the GP is connected.  It should be possible to create an IF/THEN loop in your script.  IF connected to GP, THEN do this, else, go back to IF statement.   There are WHILE statements as well... WHILE the VPN is up, DO this mapping script, etc.

 

Good Luck.

 

Help the community: Like helpful comments and mark solutions

But what is the trigger to run this script? is there any config in GP to do this in clients?

There is no "scripting" that I am aware of, to start any processes.

You would need to build this from scratch.

 

Thank you.

Help the community: Like helpful comments and mark solutions

Yes, i know, but there is any confgi in Palo to load this customized script in order to activate it whne GP tunnel is UP?

you can run a pre or post VPN script.   just edit the registry and tell it what file to run on connection (post vpn)

 

HKEY_LOCAL_MACHINE\SOFTWARE\Palo Alto Networks\GlobalProtect\Settings\post-vpn-connect

 

so we have it here..

 

MickBall_0-1608136679824.jpeg

 

and it runs this script, this script also incudes a reg setting that is added on connection..

 

MickBall_1-1608136755981.jpeg

 

 

additional help can be found here...

https://docs.paloaltonetworks.com/globalprotect/9-1/globalprotect-admin/globalprotect-apps/deploy-ap...

 

  • 2642 Views
  • 5 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!