1 #############################
3 #############################
7 ## device type tun = ip/ipv6, tap = ethernet
10 ## Automaticaly configure the interface
11 ## the address hast to be supplied in CIDR notation
12 ifconfig 192.168.223.2/30
14 ## payload encryption algorithm
21 ## message authentication algorithm
25 ##message auth tag length
29 ## this is used to generate the crypto-key and salt
30 ## this should be al least 30 characters
31 passphrase Creating_P2P_VPN_Tunnels_With_Anytun_Is_Easy
33 ## local ip address to bind to (for tunnel data)
34 ## (if you run an anycast cluster this has to be the anycast ip address)
35 #interface <ip-address>
37 ## local port to bind to (for tunnel data)
38 ## make sure to use a different port for every server and client!
41 ## The remote host and port
42 remote-host p2p-a.example.com
45 #############################
47 #############################
49 ## don't run in background
52 ## additional log to standard output with a level of 5
56 #############################
58 #############################
60 ## log to syslog with a level of 3
61 log syslog:3,uanytun-p2p-b,daemon
63 ## change user and group after init
67 ## chroot to users home directory
68 #chroot /var/run/uanytun
70 ## key derivation pseudo random function
80 ## Manually set encryption key and salt
81 ## (this replaces the passphrase)
82 #key 0123456789ABCDEF0123456789ABCDEF
83 #salt 0123456789ABCD0123456789ABCD
85 ## Setting a window size > 0 will enable replay protection
86 ## This most likely will only work with external rekeying