Imported Upstream version 0.3.2
[anytun.git] / etc / anytun / server / config
1 #############################
2 ## multi connection support #
3 #############################
4
5 ## control host for multi-client support
6 ## This enables multi-connection support and splits configuration files per client
7 ## Make sure to use a unique port for each server, when runnig multiple servers
8 control-host 127.0.0.1:4444
9
10 #############################
11 ## Main options             #
12 #############################
13
14 ## device type tun = ip/ipv6, tap = ethernet
15 type tun
16
17 ## payload encryption algorithm
18 #cipher null
19 #cipher aes-ctr-128
20 #cipher aes-ctr-192
21 #cipher aes-ctr-256
22 cipher aes-ctr
23
24 ## message authentication algorithm
25 #auth-algo null
26 auth-algo sha1
27
28 ##message auth tag length
29 #auth-tag-length 10
30
31 ## local ip address to bind to (for tunnel data)
32 ## (if you run an anycast cluster this has to be the anycast ip address)
33 #interface <ip-address>
34
35 ## local port to bind to (for tunnel data)
36 ## make sure to use a different port for every server and client!
37 port 4444
38
39 #############################
40 ## Debug options            #
41 #############################
42
43 ## don't run in background
44 #nodaemonize
45
46 ## additional log to standard output with a level of 5
47 #log stdout:5
48
49
50 #############################
51 ## Expert options           #
52 #############################
53
54 ## log to syslog with a level of 3
55 log syslog:3,anytun-server,daemon
56
57 ## change user and group after init
58 #username anytun
59 #groupname anytun
60
61 ## chroot to /var/run/anytun
62 #chroot /var/run/anytun
63
64 ## key derivation pseudo random function
65 #kd-prf null
66 #kd-prf aes-ctr
67 #kd-prf aes-ctr-128
68 #kd-prf aes-ctr-192
69 #kd-prf aes-ctr-256
70
71 ## Device name
72 #dev anytun0
73
74 ## Automaticaly configure the interface an set a route
75 ##
76 ## We highly recommend the use of the post up script to do this
77 ##
78 ## the address hast to be supplied in CIDR notation
79 #ifconfig <local>/<prefix length>
80
81 #############################
82 ## Cluster options          #
83 #############################
84
85 ## the sender id to use (has to be unique for multiple anycast servers)
86 #sender-id 1
87
88 ## local unicast(sync) ip address to bind to
89 #sync-interface <ip-address>
90
91 ## local unicast(sync) port to bind to
92 #sync-port 1234
93
94 ## remote hosts to sync with
95 #sync-hosts <hostname|ip>:<port>[,<hostname|ip>:<port>[...]]