summaryrefslogtreecommitdiff
path: root/openwrt/uanytun/files
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-06-21 11:49:15 +0000
committerChristian Pointner <equinox@anytun.org>2014-06-21 11:49:15 +0000
commit9ab43878c48c7f9469cf8f575c55551f676d741f (patch)
tree69756007abb13b01b862c5fddca8974314595b9e /openwrt/uanytun/files
parentfixed build install (diff)
removed outdated openwrt package
fixed typo in license header
Diffstat (limited to 'openwrt/uanytun/files')
-rw-r--r--openwrt/uanytun/files/uanytun-nocrypt.config88
-rw-r--r--openwrt/uanytun/files/uanytun.config116
-rw-r--r--openwrt/uanytun/files/uanytun.init104
3 files changed, 0 insertions, 308 deletions
diff --git a/openwrt/uanytun/files/uanytun-nocrypt.config b/openwrt/uanytun/files/uanytun-nocrypt.config
deleted file mode 100644
index 9792d1f..0000000
--- a/openwrt/uanytun/files/uanytun-nocrypt.config
+++ /dev/null
@@ -1,88 +0,0 @@
-config "client1"
- option disabled 0
- option username 'nobody'
- option groupname 'nogroup'
-# option chroot "/var/run/uanytun"
-
-# option interface '<ip-address>'
-# option port '4444'
-# option sender_id '1'
-
-# option dev 'anytun0'
- option type 'tun'
- option ifconfig '192.168.123.1/24'
-# option post-up-script '/etc/uanytun/client1-post-up.sh'
-
- option remote_host 'example.com'
- option remote_port '4444'
-
- option window_size 0
- option mux 1
-
- option log 'syslog:3,anytun-client1,daemon'
-
-
-config "client2"
- option disabled 1
- option username 'nobody'
- option groupname 'nogroup'
-
- option type 'tun'
- option ifconfig '192.168.123.2/24'
-
- option remote_host 'example.com'
- option remote_port '4444'
-
- option window_size 0
- option mux 2
-
- option log 'syslog:3,anytun-client2,daemon'
-
-
-config "client3"
- option disabled 1
- option username 'nobody'
- option groupname 'nogroup'
-
- option type 'tun'
- option ifconfig '192.168.123.3/24'
-
- option remote_host 'example.com'
- option remote_port '4444'
-
- option window_size 0
- option mux 3
-
- option log 'syslog:3,anytun-client3,daemon'
-
-
-config "p2p-a"
- option disabled 1
- option username 'nobody'
- option groupname 'nogroup'
-
- option type 'tun'
- option ifconfig '192.168.223.1/24'
-
- option remote_host 'p2p-b.example.com'
- option remote_port '4444'
-
- option window_size 0
-
- option log 'syslog:3,anytun-p2p-a,daemon'
-
-
-config "p2p-b"
- option disabled 1
- option username 'nobody'
- option groupname 'nogroup'
-
- option type 'tun'
- option ifconfig '192.168.223.2/24'
-
- option remote_host 'p2p-a.example.com'
- option remote_port '4444'
-
- option window_size 0
-
- option log 'syslog:3,anytun-p2p-b,daemon'
diff --git a/openwrt/uanytun/files/uanytun.config b/openwrt/uanytun/files/uanytun.config
deleted file mode 100644
index c53db37..0000000
--- a/openwrt/uanytun/files/uanytun.config
+++ /dev/null
@@ -1,116 +0,0 @@
-config "client1"
- option disabled 0
-# option username 'nobody'
-# option groupname 'nogroup'
-# option chroot "/var/run/uanytun"
-
-# option interface '<ip-address>'
-# option port '4444'
-# option sender_id '1'
-
- option cipher 'aes-ctr'
-# option cipher 'null'
-# option cipher 'aes-ctr-128'
-# option cipher 'aes-ctr-192'
-# option cipher 'aes-ctr-256'
- option auth_algo 'sha1'
-# option auth_algo 'null'
-# option auth_tag_length 10
-
-# option dev 'anytun0'
- option type 'tun'
- option ifconfig '192.168.123.1/24'
-# option post-up-script '/etc/uanytun/client1-post-up.sh'
-
- option remote_host 'example.com'
- option remote_port '4444'
-
- option window_size 0
- option mux 1
-
- option role 'client'
-# option kd_prf 'null'
-# option kd_prf 'aes-ctr'
-# option kd_prf 'aes-ctr-128'
-# option kd_prf 'aes-ctr-192'
-# option kd_prf 'aes-ctr-256'
-# option ld_kdr '0'
-# option key '0123456789ABCDEF0123456789ABCDEF'
-# option salt '0123456789ABCD0123456789ABCD'
- option passphrase 'Creating_VPN_Tunnels_With_Anytun_Is_Easy'
-
- option log 'syslog:3,anytun-client1,daemon'
-
-
-config "client2"
- option disabled 1
-
- option cipher 'aes-ctr'
- option auth_algo 'sha1'
- option type 'tun'
- option ifconfig '192.168.123.2/24'
-
- option remote_host 'example.com'
- option remote_port '4444'
-
- option window_size 0
- option mux 2
- option role 'client'
- option passphrase 'Creating_VPN_Tunnels_With_Anytun_Is_Easy'
-
- option log 'syslog:3,anytun-client2,daemon'
-
-
-config "client3"
- option disabled 1
-
- option cipher 'aes-ctr'
- option auth_algo 'sha1'
- option type 'tun'
- option ifconfig '192.168.123.3/24'
-
- option remote_host 'example.com'
- option remote_port '4444'
-
- option window_size 0
- option mux 3
- option role 'client'
- option passphrase 'Creating_VPN_Tunnels_With_Anytun_Is_Easy'
-
- option log 'syslog:3,anytun-client3,daemon'
-
-
-config "p2p-a"
- option disabled 1
-
- option cipher 'aes-ctr'
- option auth_algo 'sha1'
- option type 'tun'
- option ifconfig '192.168.223.1/24'
-
- option remote_host 'p2p-b.example.com'
- option remote_port '4444'
-
- option window_size 0
- option role 'alice'
- option passphrase 'Creating_P2P_VPN_Tunnels_With_Anytun_Is_Easy'
-
- option log 'syslog:3,anytun-p2p-a,daemon'
-
-
-config "p2p-b"
- option disabled 1
-
- option cipher 'aes-ctr'
- option auth_algo 'sha1'
- option type 'tun'
- option ifconfig '192.168.223.2/24'
-
- option remote_host 'p2p-a.example.com'
- option remote_port '4444'
-
- option window_size 0
- option role 'bob'
- option passphrase 'Creating_P2P_VPN_Tunnels_With_Anytun_Is_Easy'
-
- option log 'syslog:3,anytun-p2p-b,daemon'
diff --git a/openwrt/uanytun/files/uanytun.init b/openwrt/uanytun/files/uanytun.init
deleted file mode 100644
index 21609ca..0000000
--- a/openwrt/uanytun/files/uanytun.init
+++ /dev/null
@@ -1,104 +0,0 @@
-#!/bin/sh /etc/rc.common
-START=50
-
-BIN=uanytun
-DAEMON=/usr/sbin/$BIN
-DESC=$BIN
-RUN_D=/var/run
-
-
-option_cb() {
- local varname="$1"
- local value="$2"
-
- if ! echo "$CONFIG_OPTIONS" | grep " $varname " > /dev/null; then
- CONFIG_OPTIONS="$CONFIG_OPTIONS $varname "
- fi
-}
-
-foreach_config_forced() {
- foreach_config $1 "forced"
-}
-
-foreach_config() {
- local cfg="$1"
- local name
- local option
- local value
- local args=""
- local forced=0
-
- if [ -n "$2" ] && [ "x$2" == "xforced" ]; then
- forced=1
- fi
-
- config_get name "$cfg" TYPE
- for option in $CONFIG_OPTIONS
- do
- config_get value "$cfg" "$option"
- if [ "x$option" == "xdisabled" ]; then
- if [ $forced -eq 0 ] && [ $value -eq 1 ]; then
- echo -n " $name(disabled)"
- return
- fi
- continue
- fi
-
- option=`echo $option | tr '_' '-'`
- if [ -n "$value" ]; then
- args="$args --$option $value"
- fi
- done
- echo -n " $name"
- local status="OK"
- $DAEMON --write-pid "$RUN_D/$BIN.$name.pid" $args || status="failed"
- echo -n "($status)"
-}
-
-stop_vpn() {
- local name=$1
- local pidfile=$RUN_D/$BIN.$name.pid
- echo -n " $name"
- local status="OK"
- if [ ! -f "$pidfile" ]; then
- status="tunnel not active"
- else
- kill `cat $pidfile` > /dev/null 2>&1 || status="failed"
- rm -f $pidfile
- fi
- echo -n "($status)"
-}
-
-start() {
- echo -n "Starting $DESC:"
- config_load $BIN
- if [ $# -gt 0 ]; then
- while [ $# -gt 0 ]; do
- config_foreach foreach_config_forced "$1"
- shift
- done
- else
- config_foreach foreach_config ""
- fi
- echo "."
-}
-
-stop() {
- echo -n "Stopping $DESC:"
- local name
- local pidfile
-
- if [ $# -gt 0 ]; then
- while [ $# -gt 0 ]; do
- stop_vpn $1
- shift
- done
- else
- for pidfile in `ls $RUN_D/$BIN.*.pid 2> /dev/null`; do
- name=${pidfile%%.pid}
- name=${name##$RUN_D/$BIN.}
- stop_vpn $name
- done
- fi
- echo "."
-}