IPv4 access options for your container
DollarBox containers are IPv6 by default: they get a public IPv6 address and no per-container public IPv4 address. See IPv6 and NAT64 for what that means. If some of your users, CDNs, or monitoring tools only speak IPv4, you put something dual-stack in front — the shared ingress add-on does this for you for web apps, and this page compares all the practical options.
| Approach | Best for | Effort | Hides origin IPv6? | Non-HTTP protocols? |
|---|---|---|---|---|
| Shared ingress add-on (managed) | HTTP/HTTPS web apps on your own hostname over IPv4 | Low | Yes | No |
| CDN proxy (e.g. Cloudflare) | HTTP/HTTPS web apps | Low | Yes | Only with a paid add-on |
| Own reverse proxy on a dual-stack host | HTTP/HTTPS, custom TLS/headers | Medium | Yes | No |
| TCP/UDP relay on dual-stack infra | Games, databases, arbitrary TCP/UDP | Medium | Yes | Yes |
| DNS64/NAT64 on the client side | IPv4-only clients that can use a NAT64 resolver | None (client-side) | No | Yes |
Shared ingress add-on (managed)
The simplest option for web apps: the shared ingress add-on gives you a managed hostname (or a single CNAME from your own domain to it) served on ports 80/443 with automatic Let's Encrypt TLS — no infrastructure addresses to configure. No proxy to operate, no CDN in the path, €5 per hostname route per month. It coexists with your container's IPv6 address, which stays directly reachable.
- Best when you want
https://app.example.comon IPv4 without running anything yourself. - HTTP(S) only; for arbitrary TCP/UDP use a relay (below).
CDN proxy
Put a CDN with IPv4 edge addresses in front: point an A/AAAA record at the CDN (proxied), and configure the CDN to reach your origin over IPv6. Cloudflare IPv4 proxy walks through this in detail with Cloudflare; any similar CDN works the same way.
- The CDN terminates TLS at the edge and opens a second connection to your container over IPv6, so your container keeps serving its own TLS on port 443.
- Bonus: the CDN absorbs DDoS traffic and can add a WAF, so volumetric attacks against your container's IPv6 address are not your problem.
- Trade-off: only HTTP(S) (and specific ports on paid plans); WebSocket works, arbitrary TCP/UDP does not. You are trusting the CDN with your plaintext at the edge.
Own reverse proxy
Run nginx, Caddy, or Traefik on any dual-stack host (a cheap VPS, your office, a second provider) and proxy to the container's IPv6 LoadBalancer address:
# nginx example: dual-stack host -> container over IPv6
server {
listen 80;
listen [::]:80;
server_name app.example.com;
location / {
proxy_pass http://[2a01:4f8:c2c:1234::5]:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
- Terminate TLS on the proxy (Let's Encrypt HTTP-01 works fine here because the proxy is dual-stack) and proxy plain HTTP to the container, or pass TLS through to the container's own certificate.
- DNS: add an A record pointing at the proxy's IPv4 address (and AAAA for its IPv6). Clients never see the container address.
- Security notes:
- The container's IPv6 address is still public and directly reachable — anyone who finds it bypasses the proxy. Treat the container as if it were public: keep its own TLS/auth, and restrict source ports where possible.
- Trust
X-Forwarded-Foronly from your proxy; configure the container app to log the real client IP from that header (or use PROXY protocol) so abuse reports and rate limits work. - The proxy is now a single point of failure and a DDoS target in its own right — size it or front it with a CDN if that matters.
- Keep the proxy patched and restrict its admin interfaces; it holds the keys to reach your origin.
TCP/UDP relay
For non-HTTP protocols (game servers, databases, MQTT, SSH), run a TCP/UDP relay (e.g. socat, HAProxy in TCP mode, or nginx stream) on a dual-stack host:
# forward proxy-host:6379 -> container:6379 over IPv6
socat TCP-LISTEN:6379,fork,reuseaddr TCP:[2a01:4f8:c2c:1234::5]:6379
- Works for arbitrary TCP and UDP, unlike HTTP proxies.
- The relay does no TLS termination or HTTP awareness — encryption, authentication, and rate limiting stay in your app.
- Only expose the relay ports you actually need; each open port on the relay is an open port to your container.
Client-side DNS64/NAT64
If the clients are IPv4-only but can be pointed at a NAT64-capable resolver (e.g. a public DNS64 service such as nat64.net), they can reach your container's IPv6 address through synthesized A records — no infrastructure of yours needed. Clients using a normal dual-stack or IPv6 connection don't need this.
- Zero setup on your side, but you don't control which clients use it; it's a workaround, not a deployment strategy.
- Performance depends on the public NAT64 gateway's load.
Recommendations
- Web app, own hostname on IPv4, nothing to operate → shared ingress add-on.
- Web app, public users, want CDN DDoS/WAF → CDN proxy (Cloudflare guide).
- Web app, need custom TLS/header control → your own reverse proxy on a dual-stack host.
- Non-HTTP protocol → TCP/UDP relay on dual-stack infra.
- Quick test with IPv4-only clients → client-side DNS64.
Whatever you choose (except the managed add-on, which terminates at the cluster edge), the container itself must stay secure when reached directly over IPv6 — the proxy is an addition, not a firewall. See Point a hostname at your dollarbox for DNS records and Troubleshooting for connectivity checks.