Cisco Anyconnect Docker



We are currently experiencing a problem with docker and cisco anyconnect on VPN. All worked until our company sent the latest cisco anyconnect VPN update to our workstations. After that, docker started aborting. After much trial and error and research we discovered that 2 items in hyper-v were causing the issue. After this update there is a CISCO ANYCONNECT NETWORK ACCESS MANAGER FILTER DRIVER switch set in the properties of the Hyper-V switches. The vEthernet (Default Switch) and vEthernet (DockerNAT). When this CISCO ANYCONNECT is set in either hyper-v switch it causes docker to abort and not run. Since the DockerNAT one is created by docker when it starts up, its dynamic, so this is the issue. We were able to create a temporary workaround for the time being. Here are the steps.

Cisco Anyconnect Download Windows 10

    • Make sure Docker is completely STOPPED
    • Stop the CICSCO Anyconnect windows services
    • Start Docker
    • Edit the properties of the vEthernet (Default Switch) and the vEthernet (DockerNAT) and uncheck the box next to the CISCO ANYCONNECT NETWORK ACCESS MANAGER FILTER DRIVER and save/okay.
    • Start CISCO Anyconnect windows services
    • Reconnect to VPN.

Aug 25, 2016 Click the Route Details tab in order to see the routes to which the Cisco AnyConnect Secure Mobility Client still has local access. In this example, the client is allowed local LAN access to 10.150.52.0/22 and 169.254.0.0/16 while all other traffic is encrypted and sent across the tunnel. Cisco AnyConnect Secure Mobility Client.

Cisco Anyconnect DockerCisco
  1. Apr 07, 2016 Today I was experiencing some issues when I tried to run docker after I have Cisco AnyConnect running I started googling about the issue and found this and this, however a quick workaround for me.
  2. The AnyConnect client provides many options for automatically connecting, reconnecting, or disconnecting VPN sessions. These options provide a convenient way for your users to connect to your VPN, and they also support your network security requirements. Starting and Restarting AnyConnect Connections.
  3. If the connection fails and you are using a 64-bit version of Windows 10, go back to step #5 and edit the Registry entry to Cisco Systems VPN Adapter for 64-bit Windows. Then, retry establishing a.
  4. Using OpenConnect instead of CISCO AnyConnect VPN Agent.

After this docker works along with cisco anyconnect VPN until the next reboot of the computer. Basically docker also has a windows service. If that docker windows service is stopped and started, these steps need to happen again to get docker working along with cisco anyconnect

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

This will give you a few environment variables to export:

Cisco anyconnect docker software

Cisco Anyconnect Docker Windows

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.

5. Start up the Docker VM

2
export DOCKER_CERT_PATH=/Users/vallard/.boot2docker/certs/boot2docker-vm

7. Drawbacks and Caveats

Now you have exposed Docker to the world. For any service that you put on there, like when you launch docker -p 80:80, you’ll have to go into virtual box and map 80 to 80 so that it shows up. Not the greatest solution, but at least it works!

Credits: boot2docker github tracker @jchauncey and @nickmarden. Thanks guys!!!





Comments are closed.