summaryrefslogtreecommitdiff
path: root/templates/clear/vpn/ipsec-process/node.def
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-10-09 16:59:53 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2009-10-09 16:59:53 -0700
commit92a42fb741210a774309ceb8da438e005d80421f (patch)
treee417e184d033c9e9b5b2c419c142cc23c6112a5d /templates/clear/vpn/ipsec-process/node.def
parent4337b53ed0fcf777d1ed5e4b227450bd44a484b4 (diff)
downloadvyatta-op-vpn-92a42fb741210a774309ceb8da438e005d80421f.tar.gz
vyatta-op-vpn-92a42fb741210a774309ceb8da438e005d80421f.zip
* Fix Bug 4017 Add the ability to restart individual IPSec tunnels
added new operational mode commands - clear vpn ipsec-peer peer <peer> # clear all tunnels for given peer clear vpn ipsec-peer peer <peer> tunnel <tunnel> # clear specific tunnel If peer is 0.0.0.0/any/@id then tunnel is brought down and loaded again but connection is not initiated as remote end could be multiple end-points The remote ends will bring up the tunnel when they get/detect tunnel down * don't call script with sudo from templates. use sudo in script where needed * script clean up
Diffstat (limited to 'templates/clear/vpn/ipsec-process/node.def')
-rw-r--r--templates/clear/vpn/ipsec-process/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/clear/vpn/ipsec-process/node.def b/templates/clear/vpn/ipsec-process/node.def
index 0f7e233..8ced091 100644
--- a/templates/clear/vpn/ipsec-process/node.def
+++ b/templates/clear/vpn/ipsec-process/node.def
@@ -1,6 +1,6 @@
help: Restart VPN ipsec process
run: if [ -d $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/site-to-site/peer ] && [ -n "`ls $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/site-to-site/peer/`" ] ; then
- sudo /opt/vyatta/bin/sudo-users/vyatta-vpn-op.pl --op=clear-vpn-ipsec-process
+ /opt/vyatta/bin/sudo-users/vyatta-vpn-op.pl --op=clear-vpn-ipsec-process
else
echo VPN ipsec not configured
fi