Connect / Disconnect from AppleScript
DigiTunnel can be triggered from AppleScript to "dial" or "hangup" the VPN connection. See the Scripting folder in /Library/Application Support/DigiTunnel for sample scripts.

The scripts work by writing a special text string to the FIFO (named pipe) that DigiTunnel-Daemon listens for commands on. The command is "D" or "H" followed by "PPTP:" then the name of the configuration to use (often "Default"). So the dial command (as sent down the pipe) looks like:


The hangup command is:


No status is returned in the script. However, you can safely send additional dial commands when already connected. DigiTunnel monitors connection status and ignores extra commands. Only one configuration can connect at a time.