Need to run a command after getting an IP on a VPN connection

Need to run a command after getting an IP on a VPN connection

avatar

I would like to run a script after I make a VPN connection, have that script run, then make an RDP connection. I have the VPN set up and that connects fine. I go to the Advanced tab and have the following set up:

After execute wait

For IP on adapter (name of VPN connection)

Wait maximum of 10 seconds

then delay 5000 ms (5 seconds)

Then I have the commands

Both After Connect VPN command enabled and Before disconnect VPN command enabled

Then I want it to connect to the RDP session I have defined - but I need that delay in there after I run the command

I don't think I have something right since it runs the commands immediately.

edited by mvalpreda on 8/21/2015

All Comments (6)

avatar

Hi,

It seems that there is no wait command onfiguration available in the command list. I will enter a feature request to add the possibility to insert or add a wait command into the command list.

David Hervieux

avatar

That would absolutely make my day. I have been trying to do something to wait to connect, but no dice. I need to run a route command and then maybe wait 2 seconds after that for the route to become active to the OS. I'll look for it on the release notes. Already on 10.9.9.0

avatar

I will try to assign this quickly.

David Hervieux

avatar

I see with 11.0.1 there are a lot of changes to the VPN. Is this part of it and I am just missing it?

Still trying to add a wait after it makes the VPN connection (using the Microsoft VPN) so the script I have set up under 'Commands' has enough time to run....only need about 2 seconds. It adds a route through a PowerShell .ps1 script.

Right now I have to click on 'Open VPN' and then 'Open Session'. Would love to get that into one motion like I have with all my Cisco and WatchGuard connections. :)

avatar

Hi,

We have added a wait command here. Could you check if it work fine for you?

David Hervieux

avatar

Once I put the delay in the right order....it works great. Thanks so much!