From 5fcff9a27a26d4d4ad903bfa69675e02c491b4ad Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 8 Jan 2019 17:54:15 -0500 Subject: Added vpn management scripts --- bin/vpnc | 3 +++ bin/vpnd | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 bin/vpnc create mode 100755 bin/vpnd (limited to 'bin') diff --git a/bin/vpnc b/bin/vpnc new file mode 100755 index 0000000..053254c --- /dev/null +++ b/bin/vpnc @@ -0,0 +1,3 @@ +#!/bin/sh + +sudo ipsec up $1 && sleep 1 && sudo xl2tpd-control connect $1 diff --git a/bin/vpnd b/bin/vpnd new file mode 100755 index 0000000..0631a90 --- /dev/null +++ b/bin/vpnd @@ -0,0 +1,3 @@ +#!/bin/sh + +sudo xl2tpd-control disconnect $1 && sudo ipsec down $1 -- cgit v1.2.3