Softether VPN Client Deployment
2.3K
See the GitHub repository for full documentation, examples, and release notes:
https://github.com/arembez/softether-client
A lightweight Docker image for SoftEther VPN Client with automatic connection management, DHCP provisioning, route pinning, health monitoring, and self-healing recovery.
services:
softether:
image: arembez/softether-client:latest
container_name: softether
cap_add:
- NET_ADMIN
environment:
- SE_SERVER=vpn.example.com:443
- SE_HUB=VPNHUB
- SE_NICNAME=myvpn
- SE_USERNAME=myuser
- SE_PASSWORD=mypass
- SE_DEFAULTROUTE=1
restart: unless-stopped
Start:
docker compose up -d
| Variable | Description |
|---|---|
SE_SERVER | VPN server address (host:port) |
SE_HUB | VPN hub name |
SE_NICNAME | Virtual adapter name |
SE_USERNAME | VPN username |
SE_PASSWORD | VPN password |
| Variable | Default | Description |
|---|---|---|
SE_DEFAULTROUTE | unset | Force default route through VPN |
LOG_LEVEL | INFO | Log verbosity (INFO or DEBUG) |
PING_INTERVAL | 10 | Health check interval (seconds) |
PING_TIMEOUT | 3 | Gateway ping timeout (seconds) |
RECONNECT_DELAY | 5 | Delay before reconnect attempts (seconds) |
MAX_CONNECT_WAIT | 60 | VPN connection timeout (seconds) |
INITIAL_STABILIZE_TIMEOUT | 180 | Tunnel stabilization timeout (seconds) |
INITIAL_STABILIZE_INTERVAL | 10 | Tunnel stabilization check interval (seconds) |
HEALTH_FAILURE_THRESHOLD | 3 | Consecutive failures before recovery mode |
The container continuously validates:
Routing issues are repaired automatically whenever possible. Full VPN reconnection occurs only when local recovery is unsuccessful.
Content type
Image
Digest
sha256:62621e064…
Size
16.5 MB
Last updated
21 days ago
docker pull arembez/softether-client