Based on Debian jessie.
- copy your ikec config file (
%HOME/.ike/sites) tositesfolder - build image with
./build.shor:
$ docker build -t debian-ike:0.1 .Use run.sh, eg.:
$ ./run.sh "mycompany.vpn" myusername mypasswordor:
$ 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 bashWith 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]isip:portwhich will be used to setup a TCP4 port forward withsocat- last
[PORT]specifies socat's port to open and map to target
After first run you can:
$ docker start/stop/kill/attach ike