summaryrefslogtreecommitdiff
path: root/openwrt/kamikaze/uanytun/files
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/kamikaze/uanytun/files')
-rw-r--r--openwrt/kamikaze/uanytun/files/uanytun-nocrypt.config52
-rwxr-xr-xopenwrt/kamikaze/uanytun/files/uanytun.init4
2 files changed, 54 insertions, 2 deletions
diff --git a/openwrt/kamikaze/uanytun/files/uanytun-nocrypt.config b/openwrt/kamikaze/uanytun/files/uanytun-nocrypt.config
new file mode 100644
index 0000000..5cefd50
--- /dev/null
+++ b/openwrt/kamikaze/uanytun/files/uanytun-nocrypt.config
@@ -0,0 +1,52 @@
+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
+
+
+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
+
+
+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
+
+
diff --git a/openwrt/kamikaze/uanytun/files/uanytun.init b/openwrt/kamikaze/uanytun/files/uanytun.init
index 9c1a928..59e1c23 100755
--- a/openwrt/kamikaze/uanytun/files/uanytun.init
+++ b/openwrt/kamikaze/uanytun/files/uanytun.init
@@ -3,7 +3,7 @@ START=50
BIN=uanytun
DAEMON=/usr/sbin/$BIN
-DESC=uanytun
+DESC=$BIN
RUN_D=/var/run
@@ -71,7 +71,7 @@ stop_vpn() {
start() {
echo -n "Starting $DESC:"
- config_load uanytun
+ config_load $BIN
if [ $# -gt 0 ]; then
while [ $# -gt 0 ]; do
config_foreach foreach_config_forced "$1"