summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/anytun/client1/config18
-rw-r--r--etc/anytun/client1/post-up.sh7
2 files changed, 16 insertions, 9 deletions
diff --git a/etc/anytun/client1/config b/etc/anytun/client1/config
index 91dab8a..7841c8c 100644
--- a/etc/anytun/client1/config
+++ b/etc/anytun/client1/config
@@ -18,14 +18,14 @@ sender-id 1
# device type tun = ip/ipv6, tap = ethernet
type tun
## payload encryption algorithm
-cipher aes-ctr
-# cipher null
+#cipher aes-ctr
+cipher null
## key derivation pseudo random function
-kd-prf aes-ctr
-# kd-prf null
+#kd-prf aes-ctr
+kd-prf null
## message authentication algorithm
-auth-algo sha1
-# auth-algo null
+#auth-algo sha1
+auth-algo null
## Automaticaly configure the interface an set a route
## 1st argument the local address for the tun/tap device
## 2nd argument is either the remote address(tun) or netmask(tap)
@@ -35,7 +35,7 @@ auth-algo sha1
### Connection Parameters (for clients without config server)
## remote host
-remote-host 127.0.0.1
+remote-host 192.168.0.197
## remote port
remote-port 4444
##seqence number window size
@@ -44,6 +44,6 @@ window-size 0
## the multiplex id to use
mux 1
## master key to use for encryption
-key 0123456789ABCDEF0123456789ABCDEF
+#key 0123456789ABCDEF0123456789ABCDEF
## master salt to use for encryption
-salt 0123456789ABCD0123456789ABCD
+#salt 0123456789ABCD0123456789ABCD
diff --git a/etc/anytun/client1/post-up.sh b/etc/anytun/client1/post-up.sh
index e69de29..bf01387 100644
--- a/etc/anytun/client1/post-up.sh
+++ b/etc/anytun/client1/post-up.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+ip link set dev $1 up
+ip link set dev $1 mtu 1400
+ip addr add dev $1 192.168.123.1/24
+
+exit 0