Docker image for SoftEther VPN server. Small and ready to use.
This docker image is based on alpine base image. Total size is very small (about 14MB).
- Can be configured as a multi-hop vpn system.
- Can add more than one vpn user account.
src
folder containsgenconfig
tool's source code.docker
folder containsDockerfile
and it's dependents.
When first running, genconfig
will config the vpnserver automatically.
For security reason, it will randomly generate server and virtual hub admin password.
The vpnserver is listening on port 8080 inside container. You only need to set vpn user account and/or next hop vpn account (depends on whether you need multi-hop vpn system) in environment variable.
docker run -d --restart always -e UserList='user1:pass1;user2:pass2...' -p xxxx:8080 reaganer/vpnserver:latest
If UserList
is not set or empty, genconfig
will create an account with randomly generated username and password and print it on the STDOUT
.
The last hop node needs to be configured as Single node mode. Other nodes need to be configured as relay node mode.
You can use an env-file to configure all the environment variables at once.
$ cat node.env
RelayNode=TRUE
NextNodeHost=xxx.xxx.xxx.xxx
NextNodePort=xxxxx
NextNodeUserName=username
NextNodePassword=password
UserList=user1:pass1;user2:pass2...
$ docker run -d --restart always --env-file ./node.env -p xxxx:8080 reaganer/vpnserver:latest