Skip to content

bluPhy/docker-softether

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

300 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoftEther VPN Docker Image

Run a SoftEther VPN server in Docker with automatic first-run bootstrap.

Docker Hub image

Docker Pulls Build Docker Image Size (tag)

Quick Start

docker run -d \
  --name softether-vpn-server \
  --restart unless-stopped \
  --cap-add NET_ADMIN \
  -p 443:443/tcp \
  -p 992:992/tcp \
  -p 1194:1194/udp \
  -p 1701:1701/udp \
  -p 500:500/udp \
  -p 4500:4500/udp \
  -p 5555:5555/tcp \
  -v softether_data:/var/lib/softether \
  -v softether_log:/var/log/softether \
  ajleal/softether:latest

On first boot, the container initializes SoftEther and prints generated credentials and an OpenVPN client profile to container logs. Treat logs as sensitive.

docker logs softether-vpn-server

Compose

Use the included docker-compose.yml as a base.

docker compose up -d

Use vpncmd

vpncmd is available inside the container:

docker exec -it softether-vpn-server vpncmd localhost

Example VPN client setup:

docker exec -it softether-vpn-server vpncmd localhost /client

VPN Client> AccountSet homevpn /SERVER:192.168.1.1:443 /HUB:VPN
VPN Client> AccountPasswordSet homevpn /PASSWORD:verysecurepassword /TYPE:standard
VPN Client> AccountConnect homevpn
VPN Client> AccountStartupSet homevpn
VPN Client> AccountStatusGet homevpn

Build Locally

The repository uses a lowercase dockerfile filename:

docker build -f dockerfile -t softether-local .

Override base Alpine release if needed:

docker build -f dockerfile --build-arg ALPINE_VERSION=edge -t softether-local .

Documentation

About

Dockerfile for SoftEther VPN

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 81.2%
  • Nix 18.8%