Skip to content

Shrew Soft VPN Client Container with auto-reconnect and simple port forward

Notifications You must be signed in to change notification settings

thegitfather/docker-debian-ike

Repository files navigation

Shrew Soft VPN Client Container with auto-reconnect and simple port forward

Based on Debian jessie.

Install

  • copy your ikec config file (%HOME/.ike/sites) to sites folder
  • build image with ./build.sh or:
$ docker build -t debian-ike:0.1 .

Create and work with container

Use run.sh, eg.:

$ ./run.sh "mycompany.vpn" myusername mypassword

or:

$ docker run -v $(pwd)/volume:/mnt/volume --privileged --name ike debian-ike:0.1 "[CONFIG_NAME.vpn]" [USER] [PW]

And attach:

$ docker exec -it ike bash

With socat:

$ docker run -p [PORT]:[PORT] --privileged --name ike debian-ike:0.1 "[CONFIG_NAME.vpn]" [USER] [PW] [TARGET] [PORT]
  • [PORT]:[PORT] docker port forward container <-> host
  • [CONFIG] is the filename in your sites folder
  • [TARGET] is ip:port which will be used to setup a TCP4 port forward with socat
  • last [PORT] specifies socat's port to open and map to target

After first run you can:

$ docker start/stop/kill/attach ike

About

Shrew Soft VPN Client Container with auto-reconnect and simple port forward

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published