OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 # |
| 5 # IPSec VPN, with bad PSK credentials. |
| 6 # |
| 7 |
| 8 { "name" : "VPNIPSecBadPSK", |
| 9 "steps":[ |
| 10 # Create WiFi connection from Client to Router. |
| 11 [ "create", { "type" : "hostap" } ], |
| 12 [ "config", { "channel" : "2412", "mode" : "11b" } ], |
| 13 [ "connect", { "security" : "none" } ], |
| 14 |
| 15 [ "vpn_server_config", { |
| 16 "kind" : "l2tpipsec", |
| 17 "replacements" : { "@plutodebug@" : "all" }}], |
| 18 |
| 19 # Launch the VPN Client. |
| 20 [ "!vpn_client_config", { "kind" : "l2tpipsec-psk", |
| 21 "password" : "paxxword", # ipsec.secrets |
| 22 "chapuser" : "chapuxer", # chap-secrets |
| 23 "chapsecret" : "chapxecret" # chap-secrets |
| 24 }], |
| 25 |
| 26 # Verify the client is connected to the server |
| 27 [ "!client_ping", { "ping_ip" : "192.168.1.99", # In xl2tpd.conf. |
| 28 "count" : "10" } ], |
| 29 |
| 30 [ "vpn_client_kill" ], # Shut down the VPN Client. |
| 31 [ "vpn_server_kill" ], # Shut down the VPN Server. |
| 32 [ "disconnect" ], # Disconnect WiFi setup |
| 33 ], |
| 34 } |
OLD | NEW |