zerotier-proxy
Lightweight ZeroTier TCP Proxy container for secure network bridging. MIT licensed.
7.5K
A lightweight Docker container that provides ZeroTier TCP proxy functionality for secure network bridging and connection forwarding across ZeroTier networks.
version: '3.8'
services:
zerotier-proxy:
image: lferrarotti74/zerotier-proxy:latest
hostname: zerotier-proxy
container_name: zerotier-proxy
restart: unless-stopped
volumes:
- zerotier-proxy:/var/lib/zerotier-one
networks:
- zerotier-proxy
ports:
- "8443:8443/tcp"
environment:
- ZT_OVERRIDE_LOCAL_CONF=true
- ZT_TCP_PORT=8443
# Cloud Provider features (Future functionality - not yet available)
# - ZT_CLOUD_PROVIDER=linode
# - ZT_CLOUD_API_TOKEN=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456
# - ZT_CLOUD_FIREWALL_ID=9876543
volumes:
zerotier-proxy:
networks:
zerotier-proxy:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.31.251.8/29
docker run -d \
--name zerotier-proxy \
--restart unless-stopped \
-p 8443:8443/tcp \
-v zerotier-proxy:/var/lib/zerotier-one \
-e ZT_TCP_PORT=8443 \
-e ZT_OVERRIDE_LOCAL_CONF=true \
lferrarotti74/zerotier-proxy:latest
| Variable | Description | Default | Required |
|---|---|---|---|
ZT_TCP_PORT | TCP port for proxy connections | 443 | No |
ZT_OVERRIDE_LOCAL_CONF | Override local.conf with environment variables | false | No |
ZT_CLOUD_PROVIDER | Cloud provider integration (Future feature) | - | No |
ZT_CLOUD_API_TOKEN | Cloud provider API token (Future feature) | - | No |
ZT_CLOUD_FIREWALL_ID | Cloud firewall ID (Future feature) | - | No |
The proxy reads configuration from /var/lib/zerotier-one/local.conf. If this file exists, it takes precedence over environment variables unless ZT_OVERRIDE_LOCAL_CONF=true.
Example local.conf:
{
"settings": {
"tcpPort": 8443
}
}
ZT_OVERRIDE_LOCAL_CONF=false)ZT_OVERRIDE_LOCAL_CONF=true)networks:
zerotier-proxy:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.31.251.8/29
ports:
- "8443:8443/tcp"
Note: The following cloud provider integration features are planned for future releases and are not yet available in the current version:
Check container logs for connection activity:
docker logs zerotier-proxy
Example log output:
[Thu Nov 7 12:41:08 2024] - Config file present.
[Thu Nov 7 12:41:08 2024] - Server listening on TCP port : 8443
[Thu Nov 7 12:41:15 2024] << TCP from 192.168.1.100 -> 0x7f8b4c000000
latest - Latest stable releasev1.14.2 - Specific version releasesMIT License - see LICENSE file for details.
Note: This container provides TCP proxy functionality for ZeroTier networks. Ensure proper network configuration and security policies are in place before deployment in production environments.
Content type
Image
Digest
sha256:cefa3f136…
Size
9.1 MB
Last updated
16 days ago
docker pull lferrarotti74/zerotier-proxy:1.14.2