Connect to a Cisco DevNet Sandbox using VPN or OpenConnect Set up VPN access to a Cisco DevNet Sandbox using Cisco Secure Client or OpenConnect. Find your VPN endpoint, username, and password, then fix common connection problems such as certificate warnings, rejected credentials, and tunnels that carry no traffic.

Connecting to Your Sandbox

Most on demand Sandboxes run on private IP space, and you reach them over a VPN connection. Once connected, the Sandbox's devices behave like devices on your local network: browse a device's web UI by IP, SSH to it, call its API, or open an RDP session.

Not every Sandbox needs a VPN. Always on Sandboxes are reachable directly. The Sandbox's Instructions section is the authority on how to reach that particular Sandbox.

Find your access details

Stack Automation generates your Sandbox's access details per reservation. Get them from the environment in Stack Automation:

  1. On developer.cisco.com/sandbox, click Reservations in the navigation bar.
  2. Find your active reservation and click Open sandbox. The button opens the Stack Automation environment page for that reservation.
  3. On the Access Details section, find the credentials for the Sandbox's devices, along with a VPN endpoint, username, and password if the Sandbox requires a VPN.
  4. In the Instructions panel, you find the setup steps, device IP addresses, and API endpoints specific to that Sandbox.
Stack Automation Overview tab showing the Access Details card with SSH access, username, and a masked password

The same details are also in the "[Active] Access your sandbox now" email, under Access details.

Choosing a VPN client

If your Sandbox requires a VPN, you connect to it using a VPN endpoint from your access details: a hostname and a port, for example devnetsandbox-usw1-reservation.cisco.com:20262.

You have two options:

  • Cisco Secure Client is the recommended client for DevNet Sandbox. Downloading it requires an active Cisco support contract.
  • OpenConnect is an open-source alternative that speaks the same protocol and works with DevNet Sandbox. It needs no support contract. Cisco does not support it, so help comes from the DevNet Sandbox community.

Using Cisco Secure Client

Cisco Secure Client (formerly Cisco AnyConnect) is the recommended client.

  1. Go to the Cisco Software Download portal and search for Secure Client (AnyConnect), the name under which Cisco lists it.
  2. Download the package for your operating system and install it. This installation guide covers Windows, macOS, and Linux.
  3. Open Secure Client and enter your VPN endpoint. See the following note if you cannot find where to type it.
  4. Click Connect, then enter the VPN username and password from your reservation.
  5. Accept the certificate warning if you get one. See Common problems.

The connection box is a text field, not just a drop-down. The control that lists your saved VPN connections is also where you type a new one. Click into it, type the full endpoint including the port, for example devnetsandbox-usw1-reservation.cisco.com:20262, and press Enter. There is no separate "add connection" button.

Using OpenConnect

OpenConnect is an open-source client that speaks the same protocol as Secure Client. Use it if you do not have a Cisco support contract, or if you prefer working from the command line.

Install

Go to the openconnect.org packages page and find your operating system's package.

Debian, Ubuntu, Fedora, RHEL, and macOS: install from your package manager.

# Debian/Ubuntu
sudo apt install openconnect

# Fedora/RHEL
sudo dnf install openconnect

# macOS (Homebrew)
brew install openconnect

Windows: the packages page currently has broken download links. Get a working build from the project's CI artifacts instead: OpenConnect Windows build artifacts

Connect

Linux and macOS:

sudo openconnect <VPN_SERVER> --user <VPN_USERNAME> --no-dtls

Windows: run the command from an Administrator terminal.

openconnect <VPN_SERVER> --user <VPN_USERNAME> --no-dtls

Replace the placeholders with the values from your reservation:

  • <VPN_SERVER>: the VPN endpoint including its port, for example devnetsandbox-usw1-reservation.cisco.com:20262.
  • <VPN_USERNAME>: the VPN username generated for this reservation.

OpenConnect prompts for the password once it connects.

The --no-dtls option disables DTLS and forces the TLS transport, which avoids a common failure mode where the tunnel comes up but traffic does not flow.

OpenConnect needs elevated privileges to modify your routing table: sudo on Linux and macOS, or an Administrator terminal on Windows.

OpenConnect stays in the foreground while connected, so leave the terminal open. When you finish, press Ctrl+C to disconnect.

For every other option, including certificate handling, split tunneling, and scripting, see the OpenConnect manual.

Verify the connection

Sandboxes expose different protocols depending on the product: SSH, NETCONF, RESTCONF, or plain HTTP. Rather than guessing which client applies, confirm the tunnel itself carries traffic first. The Sandbox's Instructions section lists a host and port for each service, for example 22 for SSH, 830 for NETCONF, or 443 for RESTCONF and HTTPS. Test that the port responds:

Linux and macOS:

# nc (netcat) ships with macOS and most Linux distributions.
nc -zv <HOST> <PORT>

Windows (PowerShell):

# Test-NetConnection is built into PowerShell.
Test-NetConnection -ComputerName <HOST> -Port <PORT>

A successful connection means that the tunnel is up and the target is reachable. A timeout means it is not.

Once the port responds, connect with the client for that protocol: ssh for a CLI, curl for a RESTCONF or HTTP-based API, or a NETCONF client. The Instructions section has the exact command or endpoint for your Sandbox.

Ping is not a reliable test here. Always on Sandboxes block ICMP as a security measure, so a failed ping does not mean that a device is unreachable. See the FAQ for details.

Common problems

A self-signed certificate warning. Sandbox devices use self-signed certificates. Accept the warning and continue. With OpenConnect, answer yes when it asks about the server certificate.

"You are connecting to an unsecured network." Expected. Continue.

Secure Client does not let you enter the endpoint. The connection drop-down is also a text field. Click into it, type the endpoint with its port, and press Enter.

The VPN connects but you cannot reach anything. Check that you are using the device IP addresses from the Sandbox's Instructions section rather than a hostname. If the tunnel is up but traffic is not flowing, retry with --no-dtls on OpenConnect.

Credentials rejected. Stack Automation generates VPN credentials per reservation, and they stop working when the reservation ends. Check them against the Access Details section of the current reservation's environment in Stack Automation, not an older email.

Corporate VPN already connected. Many VPN clients do not bring up a second tunnel alongside an existing one. Disconnect the other VPN first.

Nothing works and you have checked everything else. End the reservation and reserve the Sandbox again. A fresh reservation issues new VPN credentials and a new environment, which clears most one-time setup problems faster than debugging them. You end the reservation from the Reservations page.

If the problem is with the reservation rather than the connection, for example it never became ready or it is showing an error, see Errors and Troubleshooting. For anything else, ask on the DevNet Sandbox community forum.

Next steps