Forum Discussion

aariel_us_21106's avatar
aariel_us_21106
Icon for Nimbostratus rankNimbostratus
Jul 12, 2015

How to launch script after VPN connection

I'm trying to solve what seems like a fairly simple problem for which there should already be an answer, yet I cannot find an answer.

 

Use case: In Windows 7 At work, no VPN is required, Startup scripts launches apps. Out of office, VPN is required BEFORE apps launch.

 

What is the recommended solution for this common use case?

 

Currently I have a .BAT file that runs to detect my network IP. If it start with a specific octet, I know I'm at work. I don't need VPN, so I launch my apps

 

If it's any other octet, I know I'm not at work. I can launch f5fpclientW.exe.

 

Ideally I'd like f5fpclientW.exe to run a script after successful connection. But I don't see this in the GUI.

 

The alternative is for the .BAT file to watch the net interfaces and have it wait for the VPN connection to come up. This is seems like a kludge to me as this appears to be a common use case for which a solution should already exist.

 

Thanks,

 

Paul

 

1 Reply

  • Hi Paul,

     

    In the network access settings there is a tab to configure and application to launch. You can point to the BAT file and after successful connection it will launch the file.

     

    Seth