VPN client (OpenVPN/Wireguard), HTTP/SOCKS proxy, web UI, and sandboxed custom apps.
992
VPN Sandbox is an open-source containerized solution for securely tunneling network traffic through a VPN. It supports OpenVPN and WireGuard, with features like HTTP Proxy and SOCKS Proxy support, DNS leak prevention, and a web-based interface for easy configuration. The container runs in rootless mode and is ideal for secure browsing or running custom applications behind a VPN.
Via Docker Compose:
services:
vpn-sandbox:
image: vm75/vpn-sandbox
container_name: vpn-sandbox
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
ports:
- "8080:80" # Web UI
- "1080:1080" # SOCKS Proxy
- "3128:3128" # HTTP Proxy
volumes:
- /path/to/data:/data
restart: unless-stopped
Via Docker CLI:
docker pull vm75/vpn-sandbox
docker run -d --name vpn-sandbox \
--cap-add=NET_ADMIN \
--device=/dev/net/tun \
-v /path/to/data:/data \
-p 8080:80 \
vm75/vpn-sandbox
To add a new server, use the web interface to create a new server configuration. It supports OpenVPN and WireGuard configurations.
The configuration templates can include custom parameters, such as endpoints, IP addresses, and ports. There can be multiple sets of values for each template. The parameters are enclosed in double brackets {{}}.
The /data volume should contain the following structure:
/data
āāā config/ # Contains the sqlite3 database
āāā var/ # Contains the runtime configuration and logs
āāā apps.sh # Custom apps script (optional)
It is recommended to place the apps.sh script in the /data volume.
apps.sh Script (optional)This script runs custom applications once the VPN connection is established:
#!/bin/sh
case "$1" in
setup)
apk --no-cache --no-progress <packages needed by apps>
;;
up)
# Run your custom apps here
;;
down)
# Stop your custom apps here
;;
esac
Ensure the script is executable:
chmod +x /data/apps.sh
The web UI is accessible at http://<host-ip>:8080 by default. Use it to configure your VPN servers and settings with ease.
Configure your browser or applications to use the container's HTTP (3128) or SOCKS (1080) proxies to securely route traffic through the VPN.
This project is licensed under the MIT License. See the LICENSEā file for details.
| Component | License |
| OpenVPNā | COPYRIGHT.GPLā |
| WireGuardā | LICENSEā |
| Dante (Socks Proxy)ā | LICENSEā |
| Tinyproxy (HTTP Proxy)ā | COPYINGā |
VPN Sandbox provides a simple, secure, and flexible way to manage VPN connections using containerization. Contributions are welcome! š
Content type
Image
Digest
sha256:c084cea9eā¦
Size
14.2 MB
Last updated
over 1 year ago
docker pull vm75/vpn-sandbox:0.0