danjpgriffin / anyconnect

Connect to anyconnect using a docker container
10 stars 3 forks source link

About

This project enables a linux host to run Cisco Anyconnect and Traps/Cortex in a docker container. The wrapper script then routes selected network ranges to the VPN. Currently all DNS traffic is sent through the VPN

To configure

All configuration is performed in the config/ directory

[Resolve]
DNS=10.200.64.2
Domains=mycompany.com ~.

If you use multi-factor authentication, additional lines in the response file might be required. If the response file contains $VPN_TOTP, you will be prompted for a "time-based one-time password" (e.g. from Google Authenticator). Example:

connect vpn.mycompany.com
5
vpn-username
$VPN_PASSWORD
$VPN_TOTP
y

To run

  1. run sudo ./start-vpn
  2. type "connect 'your vpn endpoint'"
  3. continue with rest of login script

This project is for informational use only. Do not use to bypass your company procedures or security policies. Use at your own risk. I can offer no support for this project