A lightweight SOCKS5 proxy, designed to run inside a NordVPN gateway stack. Blocks IPv6 clients.
5.2K
A secure, IPv4-only SOCKS5 proxy for Docker, designed to run behind a VPN gateway or as a standalone service.
ALLOWED_IPS.PROXY_USER, PROXY_PASSWORD).| Variable | Default | Description |
|---|---|---|
PROXY_PORT | 1080 | The port on which the SOCKS5 proxy listens inside the container. |
ALLOWED_IPS | (unset) | Comma-separated list of IPs or subnets allowed. If unset, all IPs are allowed. |
PROXY_USER | (unset) | Optional username for authentication (requires PROXY_PASSWORD). |
PROXY_PASSWORD | (unset) | Optional password for authentication (requires PROXY_USER). |
Run the SOCKS5 proxy directly and expose it to your host machine.
services:
socks5-proxy:
image: boingbasti/nordvpn-socks5:latest
container_name: socks5-proxy
ports:
- "1080:1080"
environment:
# Allows access from the whole 192.168.1.0/24 subnet
- ALLOWED_IPS=192.168.1.0/24
# Optional authentication
# - PROXY_USER=myuser
# - PROXY_PASSWORD=mypassword
restart: unless-stopped
➡️ Clients can now connect to the proxy at HOST_IP:1080.
Attach the proxy to a VPN gateway container (e.g., docker-nordvpn-gateway) so all traffic is routed through the VPN tunnel.
# In your existing docker-compose.yml with the vpn-gateway service...
services:
vpn-gateway:
# ... your vpn-gateway configuration ...
socks5-proxy:
image: boingbasti/nordvpn-socks5:latest
container_name: nordvpn-socks5
# Shares the VPN gateway’s network stack
network_mode: "service:vpn-gateway"
depends_on:
- vpn-gateway
environment:
- PROXY_PORT=1080
- ALLOWED_IPS=192.168.1.0/24
restart: unless-stopped
➡️ Clients should connect to the VPN gateway’s LAN IP (e.g., 192.168.1.240:1080).
Connection refused / not working
ALLOWED_IPS.1080:1080).Authentication error
PROXY_USER and PROXY_PASSWORD must be set.Blocked IPv6 log messages
Content type
Image
Digest
sha256:f2073ce43…
Size
9.9 MB
Last updated
about 1 month ago
docker pull boingbasti/nordvpn-socks5