summaryrefslogtreecommitdiff
path: root/openwrt/kamikaze/uanytun/files/uanytun.config
blob: c53db37385549f0ebb06b8e183a34f8607972899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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 cipher 'aes-ctr'
#  option cipher 'null'
#  option cipher 'aes-ctr-128'
#  option cipher 'aes-ctr-192'
#  option cipher 'aes-ctr-256'
  option auth_algo 'sha1'
#  option auth_algo 'null'
#  option auth_tag_length 10

#  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

  option role 'client'
#  option kd_prf 'null'
#  option kd_prf 'aes-ctr'
#  option kd_prf 'aes-ctr-128'
#  option kd_prf 'aes-ctr-192'
#  option kd_prf 'aes-ctr-256'
#  option ld_kdr '0'
#  option key '0123456789ABCDEF0123456789ABCDEF'
#  option salt '0123456789ABCD0123456789ABCD'
  option passphrase 'Creating_VPN_Tunnels_With_Anytun_Is_Easy'

  option log 'syslog:3,anytun-client1,daemon'


config "client2"
  option disabled 1

  option cipher 'aes-ctr'
  option auth_algo 'sha1'
  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
  option role 'client'
  option passphrase 'Creating_VPN_Tunnels_With_Anytun_Is_Easy'

  option log 'syslog:3,anytun-client2,daemon'


config "client3"
  option disabled 1

  option cipher 'aes-ctr'
  option auth_algo 'sha1'
  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
  option role 'client'
  option passphrase 'Creating_VPN_Tunnels_With_Anytun_Is_Easy'

  option log 'syslog:3,anytun-client3,daemon'


config "p2p-a"
  option disabled 1

  option cipher 'aes-ctr'
  option auth_algo 'sha1'
  option type 'tun'
  option ifconfig '192.168.223.1/24'

  option remote_host 'p2p-b.example.com'
  option remote_port '4444'

  option window_size 0
  option role 'alice'
  option passphrase 'Creating_P2P_VPN_Tunnels_With_Anytun_Is_Easy'

  option log 'syslog:3,anytun-p2p-a,daemon'


config "p2p-b"
  option disabled 1

  option cipher 'aes-ctr'
  option auth_algo 'sha1'
  option type 'tun'
  option ifconfig '192.168.223.2/24'

  option remote_host 'p2p-a.example.com'
  option remote_port '4444'

  option window_size 0
  option role 'bob'
  option passphrase 'Creating_P2P_VPN_Tunnels_With_Anytun_Is_Easy'

  option log 'syslog:3,anytun-p2p-b,daemon'