Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 # | 4 # |
| 5 # An example of how to set up a VPN from the Client (DUT), through the | 5 # An example of how to set up a VPN from the Client (DUT), through the |
| 6 # Router to to the Server. | 6 # Router to to the Server. |
| 7 # | 7 # |
| 8 | 8 |
| 9 { "name":"VPNGenesis", | 9 { "name":"VPNGenesis", |
| 10 "steps":[ | 10 "steps":[ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 "ifconfig-pool-persist":"/tmp/ipp.txt", | 58 "ifconfig-pool-persist":"/tmp/ipp.txt", |
| 59 "keepalive":"10 120", | 59 "keepalive":"10 120", |
| 60 "persist-key":"", | 60 "persist-key":"", |
| 61 "persist-tun":"", | 61 "persist-tun":"", |
| 62 "status":"/tmp/openvpn-status.log", | 62 "status":"/tmp/openvpn-status.log", |
| 63 "verb":"0" | 63 "verb":"0" |
| 64 } | 64 } |
| 65 }], | 65 }], |
| 66 # Having two vpn_server_config invocations back-to-back results in | 66 # Having two vpn_server_config invocations back-to-back results in |
| 67 # a failure with 'pkill' right after an rspro boot. There seems | 67 # a failure with 'pkill' right after an rspro boot. There seems |
| 68 # to be some significant latency when starting openvpn the first | 68 # to be some significant latency when starting the first time, so |
| 69 # time, so slow the system down a tad to avoid spurious errors. | 69 # slow the system down a tad to avoid spurious errors. |
|
Sam Leffler
2011/03/31 17:11:27
is there some way to synchronize the controlling h
thutt
2011/04/05 21:38:21
Possibly. Are you proposing something as simple a
| |
| 70 [ "sleep", { "time": "1" } ], | 70 [ "sleep", { "time": "1" } ], |
| 71 [ "vpn_server_config", { "kind" : "openvpn", | 71 [ "vpn_server_config", { "kind" : "openvpn", |
| 72 "config" : { "comp-lzo":"" } | 72 "config" : { "comp-lzo":"" } |
| 73 }], | 73 }], |
| 74 ### Launch the VPN Client. | 74 ### Launch the VPN Client. |
| 75 [ "vpn_client_load_tunnel" ], | 75 [ "vpn_client_load_tunnel" ], |
| 76 [ "vpn_client_config", { "kind":"openvpn", | 76 [ "vpn_client_config", { "kind":"openvpn", |
| 77 "files":{ | 77 "files":{ |
| 78 "ca-certificate":"/tmp/vpn-ca.crt", | 78 "ca-certificate":"/tmp/vpn-ca.crt", |
| 79 "client-certificate":"/tmp/vpn-client.crt", | 79 "client-certificate":"/tmp/vpn-client.crt", |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 94 }], | 94 }], |
| 95 ### Verify the client is connected to the server | 95 ### Verify the client is connected to the server |
| 96 [ "client_ping", { "ping_ip":"10.8.0.1", | 96 [ "client_ping", { "ping_ip":"10.8.0.1", |
| 97 "count":"10" } ], | 97 "count":"10" } ], |
| 98 | 98 |
| 99 [ "vpn_server_kill" ], # Shut down the VPN Server. | 99 [ "vpn_server_kill" ], # Shut down the VPN Server. |
| 100 [ "vpn_client_kill" ], # Shut down the VPN Client. | 100 [ "vpn_client_kill" ], # Shut down the VPN Client. |
| 101 [ "disconnect" ], # Disconnect WiFi setup | 101 [ "disconnect" ], # Disconnect WiFi setup |
| 102 ], | 102 ], |
| 103 } | 103 } |
| OLD | NEW |