MasterDnsVPN on container
139
Containerized version of MasterDnsVPN Server Original project by masterking32 (respectfully acknowledged)
This Docker image runs the MasterDnsVPN server in a containerized environment and supports multi-architecture builds.
It automatically:
/datadocker run -d \
--name masterdnsvpn \
--restart unless-stopped \
-e DOMAIN=v.example.com \
-v $(pwd)/data:/data \
-p 53:53/tcp \
-p 53:53/udp \
pouya6672/masterdnsvpn:latest
services:
masterdnsvpn:
image: pouya6672/masterdnsvpn:latest
restart: unless-stopped
environment:
- DOMAIN=v.example.com
volumes:
- ./data:/data
ports:
- "53:53/tcp"
- "53:53/udp"
| Variable | Description |
|---|---|
| DOMAIN | Your DNS domain (required on first run) |
โ ๏ธ If
DOMAINis not set on first boot, the container will stop with an error.
Stored in /data:
server_config.tomlencrypt_key.txtYou can mount it as volume:
-v ./data:/data
If /data/server_config.toml does not exist:
Downloads default config from upstream:
https://github.com/masterking32/MasterDnsVPN/blob/main/server_config.toml.simple
Renames it to server_config.toml
Injects:
DOMAIN = ["your-domain"]
Generates encryption key automatically
For MikroTik containers:
Example:
/container mounts
add dst=/data list=MasterDnsVPN src=/containers/mounts/MasterDnsVPN
/container envs
add key=DOMAIN list=MasterDnsVPN value=v.example.com
/container add check-certificate=no dns=1.1.1.1 envlists=MasterDnsVPN hostname=MasterDnsVPN interface=MasterDnsVPN layer-dir="" mountlists=MasterDnsVPN name=MasterDnsVPN remote-image=pouya6672/masterdns:latest root-dir=/containers/data/MasterDnsVPN start-on-bo
ot=yes
53 is required (UDP/TCP)This project is based on:
๐ MasterDnsVPN by masterking32 https://github.com/masterking32/MasterDnsVPNโ
All credit for the original VPN/DNS engine goes to the original author. This containerization layer only simplifies deployment and multi-platform distribution.
Content type
Image
Digest
sha256:d3c5d0c7dโฆ
Size
36.3 MB
Last updated
3 months ago
docker pull pouya6672/masterdnsvpn