Based on Debian jessie.
- copy your ikec config file (
%HOME/.ike/sites
) tosites
folder - build image with
./build.sh
or:
$ docker build -t debian-ike:0.1 .
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]
isip:port
which 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