From 3c3421afd8f74a3aa8d1011de07a8c18f9549210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Tue, 8 Apr 2014 12:04:17 +0200 Subject: Rename app->bitmask_android This way, gradle commands generate apks correctly named. --- .../sample/sample-config-files/openvpn-startup.sh | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 bitmask_android/openvpn/sample/sample-config-files/openvpn-startup.sh (limited to 'bitmask_android/openvpn/sample/sample-config-files/openvpn-startup.sh') diff --git a/bitmask_android/openvpn/sample/sample-config-files/openvpn-startup.sh b/bitmask_android/openvpn/sample/sample-config-files/openvpn-startup.sh new file mode 100755 index 00000000..0ee006bc --- /dev/null +++ b/bitmask_android/openvpn/sample/sample-config-files/openvpn-startup.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +# A sample OpenVPN startup script +# for Linux. + +# openvpn config file directory +dir=/etc/openvpn + +# load the firewall +$dir/firewall.sh + +# load TUN/TAP kernel module +modprobe tun + +# enable IP forwarding +echo 1 > /proc/sys/net/ipv4/ip_forward + +# Invoke openvpn for each VPN tunnel +# in daemon mode. Alternatively, +# you could remove "--daemon" from +# the command line and add "daemon" +# to the config file. +# +# Each tunnel should run on a separate +# UDP port. Use the "port" option +# to control this. Like all of +# OpenVPN's options, you can +# specify "--port 8000" on the command +# line or "port 8000" in the config +# file. + +openvpn --cd $dir --daemon --config vpn1.conf +openvpn --cd $dir --daemon --config vpn2.conf +openvpn --cd $dir --daemon --config vpn2.conf -- cgit v1.2.3