aboutsummaryrefslogtreecommitdiff
path: root/files/vserver
diff options
context:
space:
mode:
authorPietro Ferrari <pietro@riseup.net>2008-11-12 13:24:56 +0000
committerPietro Ferrari <pietro@riseup.net>2008-11-12 13:24:56 +0000
commit6223eaf7ea6bafa0a75a9a926450d9109e60bc1a (patch)
tree597208839d19429cece5ae44d9af80ece1d67f63 /files/vserver
parent55493af43de70c98700d3ca04ac9cff6e90d9880 (diff)
downloadpuppet-virtual-6223eaf7ea6bafa0a75a9a926450d9109e60bc1a.tar.gz
puppet-virtual-6223eaf7ea6bafa0a75a9a926450d9109e60bc1a.tar.bz2
fix path to the build_vserver script and put open vpn file on their own
dir.
Diffstat (limited to 'files/vserver')
-rwxr-xr-xfiles/vserver/create_openvpn_interface10
-rwxr-xr-xfiles/vserver/destroy_openvpn_interface9
2 files changed, 0 insertions, 19 deletions
diff --git a/files/vserver/create_openvpn_interface b/files/vserver/create_openvpn_interface
deleted file mode 100755
index 87d9144..0000000
--- a/files/vserver/create_openvpn_interface
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-DEV="$1"
-SUBNET="$2"
-
-openvpn --mktun --dev "$DEV"
-ip link set dev "$DEV" txqueuelen 100
-ifconfig "$DEV" "$SUBNET".1 pointopoint "$SUBNET".2 mtu 1500
-route add -net "$SUBNET".0 netmask 255.255.255.0 gw "$SUBNET".2
-
diff --git a/files/vserver/destroy_openvpn_interface b/files/vserver/destroy_openvpn_interface
deleted file mode 100755
index aa89ed4..0000000
--- a/files/vserver/destroy_openvpn_interface
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-DEV="$1"
-SUBNET="$2"
-
-route del -net "$SUBNET".0 netmask 255.255.255.0 gw "$SUBNET".2
-ifconfig "$DEV" down
-openvpn --rmtun --dev "$DEV"
-