diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-20 23:32:43 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-20 23:32:43 +0200 | 
| commit | 470eb5aedd12ea922ed9e5458c3948d515164c48 (patch) | |
| tree | f6ea72a01bedf2afbdc730be35deda4d70ec79b0 /bin/extra | |
| parent | 9a3ed8699358099ab1f9341f2a7e17691bb49733 (diff) | |
added ehbvpn
Diffstat (limited to 'bin/extra')
| -rwxr-xr-x | bin/extra/ehbvpn | 31 | 
1 files changed, 31 insertions, 0 deletions
diff --git a/bin/extra/ehbvpn b/bin/extra/ehbvpn new file mode 100755 index 0000000..5d5643c --- /dev/null +++ b/bin/extra/ehbvpn @@ -0,0 +1,31 @@ +#!/bin/sh +if [ "$(id -u)" -ne 0 ] +then +	echo "Please run as root." >&2 +	exit 1 +fi + +which pptpsetup > /dev/null 2>&1 || +	echo "Please install pptpsetup..." >&2 + +name="ehb_tunnel" +ip="193.190.238.38" +pass="e-mails/luca.raymaekers@student.ehb.be" +username="$(su aluc -c "pass show $pass" | +	grep "^login:" |  +	cut -f 2- -d ' ')"  +password="$(su aluc -c "pass show $pass" | +	head -1)" + +pptpsetup \ +	--create "$name" \ +	--server "$ip" \ +	--username "$username" \ +	--password "$password" \ +	--encrypt && +	cat >&2 <<EOF +Created tunnel: $name +activate it with +# pon ehb_tunnel debug dump logfd 2 nodetach +EOF +  | 
