How to run post-connect script on each network flapp?

Reply
L0 Member

How to run post-connect script on each network flapp?

I have a script that is run after successful connection to my VPN network. This script sets up my routing accordingly. Unfortunately if I lock my screen and unlock VPN connection gets refreshed but without executing my script.

 

The same thing happens when there is network flap, and VPN reconnects - my settings always get overwritten by those coming from the server.

 

Is there a way to always execute my post-connection script when VPN reconnects/refreshes?

Or perhaps this reconfiguration could be disabled?

 

(I'm using GlobalProtect on Mac)

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 Live Community as a whole!

The Live Community thanks you for your participation!