-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.json
59 lines (59 loc) · 1.65 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"common": {
"up": [
"ip link set {link} mtu 1400",
"ip addr add {inner}/30 dev {link}",
"ip link set {link} up"
],
"down": [
"ip link set {link} down"
]
},
"tests": [
{
"name":"gre",
"up": [
"ip tunnel add {link} mode gre local {local} remote {remote} ttl 254"
],
"down": [
"ip link del {link}"
]
},
{
"name":"vxlan",
"up": [
"ip link add {link} type vxlan id 100 local {local} remote {remote} dstport 4789"
],
"down": [
"ip link del {link}"
]
},
{
"name":"eol2tpv3",
"up": [
"ip l2tp add tunnel remote {remote} local {local} encap udp tunnel_id 2 peer_tunnel_id 2 udp_sport {sport} udp_dport {dport}",
"ip l2tp add session name {link} tunnel_id 2 session_id 0xffffffff peer_session_id 0xffffffff"
],
"down": [
"ip l2tp del session tunnel_id 2 session_id 0xffffffff",
"ip l2tp del tunnel tunnel_id 2"
]
}
],
"ipsec": [
"conn test-vpn-{id}",
" left={local}",
" right={remote}",
" authby=secret",
" pfs=yes",
" rekey=yes",
" keyingtries=3",
" type=transport",
" auto=start",
" ike=aes_gcm-sha2;modp2048",
" phase2alg=aes_gcm-null;modp2048"
],
"secrets": [
"{local} {remote} : PSK \"test vpn secret 0\""
]
}