From cc3be5a91b12bb3b08e9269cad29811ad112b229 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Sat, 12 Apr 2008 11:51:17 +0000 Subject: client examples fixed --- etc/anytun/client1/config | 4 ++-- etc/anytun/client2/config | 46 ++++++++++++++++++++++++++++++++++++++++ etc/anytun/client2/post-up.sh | 7 ++++++ etc/anytun/client3/config | 46 ++++++++++++++++++++++++++++++++++++++++ etc/anytun/client3/post-up.sh | 7 ++++++ etc/anytun/server/conf.d/client2 | 4 ++-- etc/anytun/server/conf.d/client3 | 4 ++-- 7 files changed, 112 insertions(+), 6 deletions(-) create mode 100644 etc/anytun/client2/config create mode 100755 etc/anytun/client2/post-up.sh create mode 100644 etc/anytun/client3/config create mode 100755 etc/anytun/client3/post-up.sh (limited to 'etc') diff --git a/etc/anytun/client1/config b/etc/anytun/client1/config index 7cca60e..ae08ac8 100644 --- a/etc/anytun/client1/config +++ b/etc/anytun/client1/config @@ -2,7 +2,7 @@ ## don't run in background #nodaemonize ## the sender id to use (has to be unique for multible anycast servers) -sender-id 1 +#sender-id 1 ## local anycast ip address to bind to #interface ## local anycast(data) port to bind to @@ -32,7 +32,7 @@ auth-algo sha1 ### Connection Parameters (for clients without config server) ## remote host -remote-host 192.168.0.197 +remote-host example.com ## remote port remote-port 4444 ##seqence number window size diff --git a/etc/anytun/client2/config b/etc/anytun/client2/config new file mode 100644 index 0000000..6c2a1b5 --- /dev/null +++ b/etc/anytun/client2/config @@ -0,0 +1,46 @@ +## Global Parameters +## don't run in background +#nodaemonize +## the sender id to use (has to be unique for multible anycast servers) +#sender-id 1 +## local anycast ip address to bind to +#interface +## local anycast(data) port to bind to +#port 4444 +## local unicast(sync) ip address to bind to +# sync-interface +## local unicast(sync) port to bind to +#sync-port 1234 +## remote hosts to sync with +#sync-hosts :[,:[...]] +## Device name +#dev anytun0 +# device type tun = ip/ipv6, tap = ethernet +type tun +## payload encryption algorithm +cipher aes-ctr +# cipher null +## message authentication algorithm +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) +#ifconfig +## Controll Host for multi client support +#control-host 127.0.0.1:4445 + +### Connection Parameters (for clients without config server) +## remote host +remote-host example.com +## remote port +remote-port 4444 +##seqence number window size +## 0 turns off replay protection (for manualk keying) +window-size 0 +## the multiplex id to use +mux 2 +## master key to use for encryption +key 2123456789ABCDEF0123456789ABCDEF +## master salt to use for encryption +salt 2123456789ABCD0123456789ABCD diff --git a/etc/anytun/client2/post-up.sh b/etc/anytun/client2/post-up.sh new file mode 100755 index 0000000..7ba0f90 --- /dev/null +++ b/etc/anytun/client2/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.2/24 + +exit 0 diff --git a/etc/anytun/client3/config b/etc/anytun/client3/config new file mode 100644 index 0000000..3d8ab04 --- /dev/null +++ b/etc/anytun/client3/config @@ -0,0 +1,46 @@ +## Global Parameters +## don't run in background +#nodaemonize +## the sender id to use (has to be unique for multible anycast servers) +#sender-id 1 +## local anycast ip address to bind to +#interface +## local anycast(data) port to bind to +#port 4444 +## local unicast(sync) ip address to bind to +# sync-interface +## local unicast(sync) port to bind to +#sync-port 1234 +## remote hosts to sync with +#sync-hosts :[,:[...]] +## Device name +#dev anytun0 +# device type tun = ip/ipv6, tap = ethernet +type tun +## payload encryption algorithm +cipher aes-ctr +# cipher null +## message authentication algorithm +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) +#ifconfig +## Controll Host for multi client support +#control-host 127.0.0.1:4445 + +### Connection Parameters (for clients without config server) +## remote host +remote-host example.com +## remote port +remote-port 4444 +##seqence number window size +## 0 turns off replay protection (for manualk keying) +window-size 0 +## the multiplex id to use +mux 3 +## master key to use for encryption +key 3123456789ABCDEF0123456789ABCDEF +## master salt to use for encryption +salt 3123456789ABCD0123456789ABCD diff --git a/etc/anytun/client3/post-up.sh b/etc/anytun/client3/post-up.sh new file mode 100755 index 0000000..f93c347 --- /dev/null +++ b/etc/anytun/client3/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.3/24 + +exit 0 diff --git a/etc/anytun/server/conf.d/client2 b/etc/anytun/server/conf.d/client2 index 8f6356e..247cf28 100644 --- a/etc/anytun/server/conf.d/client2 +++ b/etc/anytun/server/conf.d/client2 @@ -2,8 +2,8 @@ prefix 192.168.123.2 prefix-len 32 window-size 0 mux 2 -key 0123456789ABCDEF0123456789ABCDEF -salt 0123456789ABCD0123456789ABCD +key 2123456789ABCDEF0123456789ABCDEF +salt 2123456789ABCD0123456789ABCD ## remote host (autodetect if skiped) #remote-host ## remote host (autodetect if skiped) diff --git a/etc/anytun/server/conf.d/client3 b/etc/anytun/server/conf.d/client3 index 1ea25f5..6dfd219 100644 --- a/etc/anytun/server/conf.d/client3 +++ b/etc/anytun/server/conf.d/client3 @@ -2,8 +2,8 @@ prefix 192.168.123.3 prefix-len 32 window-size 0 mux 3 -key 0123456789ABCDEF0123456789ABCDEF -salt 0123456789ABCD0123456789ABCD +key 3123456789ABCDEF0123456789ABCDEF +salt 3123456789ABCD0123456789ABCD ## remote host (autodetect if skiped) #remote-host ## remote host (autodetect if skiped) -- cgit v1.2.3