Skip to content

disaac/docker-vpnc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vpnc

Containerized Cisco VPN Client with SSH access automated to container.

Environment Variables

Make sure that .env file is populated with required values:

cp -p .env.sample .env

Then Edit the file and put correct values where needed. Leave the VPNC_SSHD_AUTHORIZED_KEYS as is this will be populated when bin/hostPrep.sh is ran.

VPNC_GATEWAY=<IP_NAME_OF_IPSEC_GATEWAY>
VPNC_ID=<IPSEC_GROUP_NAME>
VPNC_SECRET=<IPSEC_GROUP_SECRET>
VPNC_USERNAME=<XAUTH_USERNAME>
VPNC_PASSWORD=<XAUTH_PASSWORD>
VPNC_SSHD_AUTHORIZED_KEYS=GENERATED_AUTOMATICALLY
CREATE_TUN_DEVICE=true

Using image

# Creates ssh keys and updates the .env file with generated public ssh key
bin/hostPrep.sh
# Runs container and puts in background
docker-compose up -d
# SSH's into container once its up
bin/sshvpnc
# Kills container and removes it so it can be relaunched again easily
docker-compose kill && docker-compose rm -f

Building new image

docker-compose build

Credits/References

  • Credit to jsecchiero for initial docker configuration.

About

Docker Container with Cisco VPN Client and SSHD service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published