Hi,
I would like to schedulle an event, to run a script when a certain VPN connection becomes active or inactive. Is this possible?
Any help apreciated.
Hi,
I would like to schedulle an event, to run a script when a certain VPN connection becomes active or inactive. Is this possible?
Any help apreciated.
in this script I have a pptp interface called pptp-out
{
local status [interface pptp-client get pptp-out running ]
if ($status = true) do={/log info running} else={/log error “not running” }
}you can chage both action.
Ty for the script. This is a script that has to be schedulled to be ran at some time. I need to run it automatically if a connection state changes. Not as a cron job.
you can add a netwatch rule, checking a remote address. In Up and Down add your script.
Thanks. Never use that before but it does exactly what I need. +K