vpn_client
Connect, disconnect, or check status of a VPN app on a PC, laptop, or server against an Easy VPN server, returning tunnel state and assigned address.
Instructions
Use the VPN app of a PC, laptop or server against an Easy VPN server: connect with server, group, group_key, username and password and wait for the tunnel, disconnect, or status. Returns whether the tunnel is up and the address the server assigned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Connect: the group name, as in `crypto isakmp client configuration group`. | |
| action | No | `status` (default), `connect` or `disconnect`. | status |
| device | Yes | PC, laptop or server whose VPN app to use. | |
| server | No | Connect: Host IP, the Easy VPN server's address. | |
| password | No | Connect: that user's password. | |
| username | No | Connect: user name the server authenticates. | |
| group_key | No | Connect: Group Key, the group's `key`. | |
| timeout_secs | No | Seconds to wait for the tunnel. Defaults to 15, maximum 300. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | ||
| device | Yes | ||
| server | No | ||
| username | No | ||
| connected | Yes | ||
| tunnel_ip | No | The address the server assigned inside the tunnel. |