WORK IN PROGRESS - DON'T USE
This project generates a docker image for the architectures (amd64, i386, armel, rpi, armhf) and two variants (base-image and app-image).
The base-image is built from source with the SoftEther's vpnserver, vpnbridge and vpnclient binaries. The especific binary to be run is especified through an run script first argument [see images and examples below].
The app-image extends base-image to simplify that necessity - app-image can use ''docker start'', while base-image must use ''docker run''.
Table of Contents generated with DocToc
- amd64 - 64 bits, the normal docker image architecture
- i386 - 32 bits, i386 based distro (ex: ubuntu installed on i386 - package docker.io and not docker's repos, since they don't support i386)
- armel - ARMv5 (works with Raspberry Pi 1 (A, B, A+, B+, Zero), but prefer rpi below)
- rpi - ARMv6+VFP2 (armhf rebuilt RPi's ARM variant - Raspberry Pi 1 (A, B, A+, B+, Zero)
- armhf - ARMv7 (compatible with Raspberry Pi 2/3)
- aarch64 - ARMv8 or ARM64
See https://wiki.debian.org/RaspberryPi
The images are available on my Docker Hub page https://hub.docker.com/r/dquintela/ and can be used like ''docker pull dquintela/{{image name}}'' or ''docker run dquintela/{{image name}}''
image \ arch | amd64 | i386 | armel | rpi | armhf | aarch64 |
---|---|---|---|---|---|---|
base-image | softether-amd64 | softether-i386 | softether-armel | softether-rpi | softether-armhf | softether-aarch64 |
vpnserver | softether-vpnserver-amd64 | softether-vpnserver-i386 | softether-vpnserver-armel | softether-vpnserver-rpi | softether-vpnserver-armhf | softether-vpnserver-aarch64 |
vpnbridge | softether-vpnbridge-amd64 | softether-vpnbridge-i386 | softether-vpnbridge-armel | softether-vpnbridge-rpi | softether-vpnbridge-armhf | softether-vpnbridge-aarch64 |
vpnclient | softether-vpnclient-amd64 | softether-vpnclient-i386 | softether-vpnclient-armel | softether-vpnclient-rpi | softether-vpnclient-armhf | softether-vpnclient-aarch64 |
These are the badge statitics for those images.
Simplest version:
docker run -d --net host -P --cap-add NET_ADMIN --name vpnserver dquintela/softether-i386 vpnserver
This is start vpnserver with random passwords (see console? how?) and a default configuration that as connectivity with docker host only (link to docker network here)
docker run -d --net host -P --cap-add NET_ADMIN --name vpnbridge dquintela/softether-i386 vpnbridge
docker start --net host -P --cap-add NET_ADMIN --name vpnbridge dquintela/softether-i386 vpnbridge
This will start vpnbridge that connects to ?
TODO: Example without --net host
Passing configuration:
touch /home/dquintela/vpnserver/vpn_server.config # If file is not previously existent
docker run -d -v /home/dquintela/vpnserver/vpn_server.config:/usr/local/softether/vpnserver/vpn_server.config --net host --cap-add NET_ADMIN --name vpnserver dquintela/softether-i386 vpnserver
Passing directory for logs:
Using volume directory
mkdir /home/dquintela/vpnserver/logs
docker run -d -v /home/dquintela/vpnserver/logs:/var/log/softether --net host --cap-add NET_ADMIN --name vpnserver dquintela/softether-i386 vpnserver
Using docker volume
docker volume create --name softether-logs
docker run -d --net host --cap-add NET_ADMIN -v softether-logs:/var/log/vpnserver --name vpnserver dquintela/softether-i386 vpnserver