Cisco Anyconnect Docker Linux



AnyConnect breaks docker networks in a weird way and they stay broken even after you exit the VPN (even if you stop vpnagentd afterwards). The workaround is to stop docker, clear all its networks and bridges and only then start the AnyConnect VPN. You can start docker after the VPN session ends and it will re-create all necessary stuff.

  1. Install Cisco Anyconnect
  2. Cisco Anyconnect Docker Linux Download
  1. In this guide, we are using Cisco AnyConnect version 4.7 and it has already been downloaded. Anyconnect-linux64-4.7.01076-predeploy-k9.tar.gz Extract Cisco AnyConnect Tarball. Once you have Cisco AnyConnect client tarball in place, extract it as follows; tar xzf anyconnect-linux64-4.7.01076-predeploy-k9.tar.gz.
  2. Dec 16, 2019 Install Cisco AnyConnect on Ubuntu / Debian / Fedora Connect To VPN Server with Cisco AnyConnect from Linux Terminal If you used the installation method covered in our guide, the vpn script used to connect, disconnect, and check the status of VPN is located in the directory below.
Linux

Boot2Docker is an OS X app used to create a virtual environment for docker. Docker only runs on Linux, so Boot2Docker installs a VM on your mac (using virtual box) and a client that runs locally to communicate with the VM.

I downloaded this and followed instructions. You basically just install it with a few clicks. Once installed, boot2docker will be in your application folder. You click on it and it in the applications folder and you are ready to go. It kicks off its own terminal window. Since I use iTerm2, I just start it like so:

boot2docker up

Cisco Anyconnect Docker Linux

This will give you a few environment variables to export:

To get around this the fix is to route your docker calls through your localhost. That way, regardless of whether you are connected to the VPN or on an island somewhere (or both) you can still connect.

1. Start from scratch

boot2docker delete

2. Create new boot2docker image

boot2docker init

3. Edit VirtualBox and edit settings for NAT.

Select ‘Port Forwarding’

4. Add the Docker port forwarding.

Click ok and exit VirtualBox.

Cisco Anyconnect Docker Linux

5. Start up the Docker VM