CGNAT: Why DuckDNS Does Not Save You While a Tunnel Does

A home address has three states. Gray: the provider keeps you behind CGNAT, and one public IP is shared by several subscribers. White dynamic: the address is yours but changes from time to time. White static: yours and permanent. Under CGNAT, port forwarding is impossible in principle — the address does not belong to you, and no router settings will change that.

The mechanics are simple and therefore merciless. While your devices open connections outward themselves, the provider’s NAT remembers where to send the replies: each outbound session creates an entry in the translation table. An incoming connection from outside finds no such entry — it physically has nowhere to go. So an “open port” on a router behind CGNAT changes nothing: the port opens on your device, but nobody from outside can reach it — the request dies at the provider’s gateway.

A quick check: compare the address the router shows in its WAN status with the address external services see. They match — the address is white, and port forwarding is possible in principle. They do not — you are behind the provider’s NAT, and there is one road: a tunnel. The check takes a minute and cuts away half of the “why does port forwarding not work” questions: if the addresses differ, router tuning will not help no matter how hard you try.

A separate case is a white static address. If you have one, DDNS is not needed at all: a static A record that never changes is enough for the domain. But the second half of the task remains here too: the domain has to point somewhere, and for TLS and receiving webhooks you need an entry point with a reverse proxy — that is, the same small server again. The only difference is that with a white static address the tunnel becomes an option rather than a necessity.

Why DDNS Does Not Save You

DuckDNS and No-IP bind a DNS name to your current IP. The scheme works only with a white address: the name updates, the connections arrive. Under CGNAT the name will point to an address that cannot be reached from outside anyway — neither knowing the current IP nor DynDNS solves the problem. You need a tunnel or a white IP from the provider.

What this looks like in practice. The DuckDNS client is a cron job on the router or PC that periodically reports the current address to the service. With a white dynamic IP the chain works: the address changed — the cron updated the name — connections started arriving at the new place. Under CGNAT it breaks at the last step: the name honestly points at the provider’s gateway, which knows nothing about your home machine and has nobody to forward incoming traffic to.

Practical details. DuckDNS is free, supports IPv4 and IPv6 and several subdomains, but reviews mention outages and update failures. No-IP’s free tier requires confirming the name every 30 days — those who forget lose the name. The overall conclusion: DDNS is a tool for a white dynamic address, and nothing beyond that.

Formally there is a way out through the provider: a white address is sold as a separate service. But that is a monthly payment for the address alone — without TLS, without a domain, without an entry point for webhooks. A micro-VPS for the same money covers four roles at once. On top of that, a white dynamic address still changes from time to time — without a DNS name it becomes “one thing today, another tomorrow”, and DDNS under CGNAT, as we established above, does not work.

What Breaks Without a Bridge

The concrete casualties of CGNAT look like this.

  • webhooks of external services — Telegram bots, GitHub, payment callbacks — cannot reach the home network;
  • agents on a home PC cannot be called from outside;
  • friends will not get into a game server;
  • access to your own files and cameras from outside requires workarounds.

Each item is stopped work, not a minor inconvenience: the bot is silent because Telegram cannot deliver an update; the agent is unreachable because a request from the external interface has nowhere to go; the NAS and cameras are invisible from vacation and from the office. Webhooks are the easiest: you move the receiver onto a VPS and build the automations right there — how that is arranged is shown in the n8n case breakdown. The logic is universal: push from outside is impossible, pull from inside is always welcome. The external service sends an event to the VPS’s domain, a script or n8n validates it and puts a task into a queue, and the local PC picks up the work on its own schedule: the home side initiates the connection, and NAT does not interfere.

The Four Roles of a VPS Bridge

  1. Entry point: a public IP, a reverse proxy, and TLS certificates live on the VPS, and the domain points to it.
  2. A white IP stand-in: a tunnel from the home network outward makes local services reachable as if the address were white.
  3. Control center: a webhook receiver, a task queue, cron, and n8n — external services send events to the VPS, and the local PC picks up the work from inside.
  4. A proxy intermediary for agents and external APIs: requests go out to the network from the VPS’s address.

The roles do not conflict: the entry point and the control center are one reverse proxy and one receiver, the “white IP stand-in” is one tunnel daemon, the proxy is another light service. All four fit into a single micro plan and run at the same time.

The key principle of the scheme: inside the tunnel, the side behind NAT always initiates the connection. So no ports need to be opened at home — and the home network stays unreachable for scanners. The same principle dictates the access setup: for the tunnel, a separate narrow user is created on the VPS and its key’s permissions are restricted, so that compromising the home machine does not turn into compromising the server.

The bridge in its final shape: the external internet knocks on the micro-VPS with a public address, and the home network itself holds an outbound tunnel to it — ssh -R, frp, rathole, cloudflared, WireGuard, or playit.gg, whichever you picked. One server combines all four roles: it takes in the domain with TLS, serves as the “white IP”, stores the task schedule, and proxies API requests. No separate machine per role is needed.

The full communication scheme:

external internet ──> micro-VPS (public IP, TLS, reverse proxy,
                                 tunnel server, n8n / cron / queue,
                                 CLI API proxy, secrets manager)
                        ^  |
                        |  v  outbound tunnels from the home LAN
                        |     (ssh -R / autossh, frp, rathole,
                        |      cloudflared, WireGuard, Tailscale, playit.gg)
              home LAN: GPU PC, NAS, Minecraft server, IoT

A Checklist for Choosing a Scheme

  • you have a white dynamic IP — DDNS is enough: DuckDNS or No-IP;
  • CGNAT, you need access to web services — Cloudflare Tunnel, your own domain in Cloudflare required;
  • CGNAT, you need full control — your own VPS and SSH -R, frp, or rathole;
  • you only need “for your own” access from a phone and a laptop — Tailscale or WireGuard;
  • a game server for friends — playit.gg;
  • you need an entry point with a domain and TLS — a micro-VPS with a reverse proxy.

Notes on the list. Cloudflare Tunnel keeps a cloudflared daemon: it opens the outbound connection to the edge network by itself, CNAME records are created for your domain, no ports need to be opened, TLS out of the box, the home IP hidden — but the tool is not purpose-built for UDP games. Tailscale and WireGuard solve a different task: not “publish a service” but “remove the border between networks” — devices join into a private network, and there is simply no external entry point. SSH -R, frp, and rathole are the option for those who do not want to depend on someone else’s network: you pay for a VPS and own the entire chain, from the config to the certificates.

How much the bridge costs — RUB 150–400 a month: the figures are in the micro-VPS plan review. What exactly to use for forwarding services out of the home network — the comparison of four tunnels on one VPS.

The bottom line: under CGNAT, arguing with the provider’s translation is pointless — you can update the DNS name as much as you like, the incoming traffic will not arrive anyway. Two paths work: buy a white address from the provider or build a bridge whose entrance sits on a VPS. Action: compare the router’s WAN address with the address external services see, find your row in the checklist, and pick the scheme before you buy the domain and the server, not after. The prices and limits of the tools in the article are current as of fall 2026.

Like this post? Please share to your friends:
11AI - Your Free LLM
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: