-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtunnel-tests.json
41 lines (41 loc) · 1005 Bytes
/
tunnel-tests.json
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
{
"common": {
"up": [
"ip link set l-{link} mtu 1400",
"ip addr add {inner}/32 dev l-{link}",
"ip link set l-{link} up"
],
"down": [
"ip link set l-{link} down"
]
},
"tests": [
{
"name":"tt",
"up": [
"ip link add l-{link} type veth peer name p-{link}"
],
"down": [
"ip link del l-{link}"
]
}
],
"ipsec": [
"conn test-vpn-{id}",
" left={local}",
" leftsubnet={inner}/32",
" right={remote}",
" rightsubnet={inner-remote}/32",
" authby=secret",
" pfs=yes",
" rekey=yes",
" keyingtries=3",
" type=tunnel",
" auto=start",
" ike=aes_gcm-sha2;modp2048",
" phase2alg=aes_gcm-null;modp2048"
],
"secrets": [
"{local} {remote} : PSK \"test vpn secret 0\""
]
}