OLD | NEW |
1 { "GUID": "123", | 1 { "GUID": "123", |
2 "Type": "VPN", | 2 "Type": "VPN", |
3 "Name": "testopenvpn", | 3 "Name": "testopenvpn", |
4 "IPConfigs": [ | 4 "StaticIPConfig": { |
5 { "Type": "IPv4", | 5 "Type": "IPv4", |
6 "IPAddress": "127.0.0.1", | 6 "IPAddress": "127.0.0.1", |
7 "RoutingPrefix": 32 } | 7 "RoutingPrefix": 32 |
8 ], | 8 }, |
9 "VPN": { | 9 "VPN": { |
10 "Host": "policys host", | 10 "Host": "policys host", |
11 "Type": "OpenVPN", | 11 "Type": "OpenVPN", |
12 "OpenVPN": { | 12 "OpenVPN": { |
13 "Port": 1194, | 13 "Port": 1194, |
14 "Username": "policy user", | 14 "Username": "policy user", |
15 "ClientCertType": "Pattern", | 15 "ClientCertType": "Pattern", |
16 "ClientCertPattern": { | 16 "ClientCertPattern": { |
17 "IssuerCARef": [ "openvpn-test-ca" ], | 17 "IssuerCARef": [ "openvpn-test-ca" ], |
18 }, | 18 }, |
19 "ServerCARefs": ["ref1", "ref2"] | 19 "ServerCARefs": ["ref1", "ref2"] |
20 }, | 20 }, |
21 "IPsec": { | 21 "IPsec": { |
22 "AuthenticationType": "PSK", | 22 "AuthenticationType": "PSK", |
23 "PSK": "sharedkey", | 23 "PSK": "sharedkey", |
24 "IKEVersion": 1 | 24 "IKEVersion": 1 |
25 } | 25 } |
26 } | 26 } |
27 } | 27 } |
OLD | NEW |