diff options
Diffstat (limited to 'scripts/vti-up-down')
-rwxr-xr-x | scripts/vti-up-down | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/vti-up-down b/scripts/vti-up-down new file mode 100755 index 0000000..60fc191 --- /dev/null +++ b/scripts/vti-up-down @@ -0,0 +1,17 @@ +#!/bin/sh +## Script called up strongswan to bring the vti interface up/down based on the state of the IPSec tunnel. +## Called as vti_up_down vti_intf_name + +source /etc/default/vyatta +source /etc/default/locale +case "$PLUTO_VERB" in +route-client) +/opt/vyatta/sbin/vyatta-vti-config.pl --updown --intf=$1 --action=up + ;; +down-client) +/opt/vyatta/sbin/vyatta-vti-config.pl --updown --intf=$1 --action=down + ;; +*) + ;; +esac +exit 0 |