Port forwarding is white-coded, and online NAT3 is mostly caused by dual NAT

My home has two broadband lines, the main telecom internet connection, and the free mobile cable is dedicated to monitoring and downloading these dirty tasks. Last month, on a business trip, I opened the surveillance app at the hotel to check the cat at home, and the screen froze like a slideshow, bouncing out frame by frame; But when I'm at home, the same app runs smoothly with the same app. Same camera, same app—the only difference is whether I'm at home. When I got home and checked the router backend, the mobile cable's WAN port IP started with 100.89—I finally understood: there are two layers of NAT stacked outside my house, and the road in has long been blocked.
Let's clarify the first layer of NAT: it's a normal configuration, not a fault
NAT does the translator's job: all devices in the house use their own internal network addresses, and when they leave, they switch to a public IP address, then return by port number to send packages back to each household. This mechanism has been used for home broadband for over twenty years. I used access control as an analogy in the NAT type article, so I won't repeat it here. The key is: a layer of NAT is standard, but your router is running it every day, and nothing happens.
The problem was the number of floors. The first layer is the translator, who can match the packages he receives when he arrives; There are two layers of translators: the one inside translates and hands it to the outsider, and the outer one only submits it to the public network after it's done. If you actively link externally (watching videos, downloading, browsing Taobao), the package is built "from the inside out," with both layers acknowledged, everything is normal. But the package outside wants to come in proactively (remotely checking surveillance, connecting to the home NAS, setting up a room for games online). When you go to the outermost translator, he flips through his account book, but there's no record for it—the package was thrown away on the spot and can't even reach the floor right outside your door.
This is the root of our surveillance system: watching at home, traffic goes through the local area network, never leaving the house; When you go out, you have to come in through the public network, and die on the outermost layer. The same app has two destinies, with the dividing line being that 'getting out' and 'coming in' are two completely different paths.
Of the
three types of two-layer NAT, your home is usually the first two
Who has pressed another layer outside your router? I've only seen three different origins.
Origin 1: Optical modem router mode stacking your own router. The installer sets the optical modem to router mode by default, allowing the modem to dial and send an IP. When your router is connected, the WAN port gets an address starting with 192.168, and then sends an IP to the whole house—two layers of NAT in one go. My cousin's house was renovated last year with this layout: optical modem router mode in front, her own router in the back. About forty devices in the house are running perfectly fine because they are all connected externally.
Source 2: Operator CGNAT. Even if your optical modem switches to bridge or router dials directly, what you get might not be a genuine public IP but a carrier's internal network address starting with 100.64—dozens or even hundreds of households sharing one public network exit, and the operator running another NAT layer for everyone in the data center. IP address article about this range. My mobile cable is a typical example, while telecom lines are truly public networks—two lines under one roof, two lives.
Option 3: Landlord or building network. In a rented house, you can connect the wall and network cable to get internet access, and as soon as you enter, it's 192.168 IP segments? Up ahead, there's the landlord's router, and even an entire building with an exit. This type of rental is the most common, the secondary operators mentioned in the urban village broadband article, which essentially belong to this category.
| is the source | of | |
|---|---|---|
| optical modem | router's WAN port is 192.168 or starts with 10 | |
| Carrier: CGNAT | operator data center | The router's WAN port starts with 100.64 to 100.127 |
| Host/Building Network | : The landlord's router | networkcable is plugged in and you can access the internet directly. Ask the host for an account |
Two steps to judge, and you know in five minutes whether you've been hit or
notNo need to guess, just two steps and you can get to the bottom of it.
Step one: Go to your router's backend to check the WAN port IP. How to read the status page column The article on interpreting status pages explains it in detail. Seeing the beginnings 192.168, 10, 172.16 to 31, the origin is confirmed: the optical modem is in charge in front; Seeing the numbers 100.64 to 100.127, the second route is confirmed—you're in the operator's compound.
Step two: Use mobile data to check the exit IP and match it with the WAN port. Make sure to turn off your phone's WiFi and use data to check; checking via home WiFi is like scratching an itch through the shoe. If two IPs match, congratulations, single-layer NAT, the outside world will open its doors wide to you; If it doesn't match, it means there is a translator outside the WAN port replacing the address. The complete operation and script for this step are written in the most detailed public IP self-check.
Here's a hidden offense of CGNAT: hundreds of people share a public IP, and mainstream website risk control treats this traffic as an anomaly, frequently using bot-computer verification to make you hit traffic lights. If you surf the internet properly at home but use verification codes more frequently than anyone else, it's probably because of shared IPs.
The four things thatsuffered first
Dual-layer NAT doesn't care if you watch videos, play games, or download games; it targets apps that "need to come in from outside."
Port forwarding is white. No matter how standard the rules are, server-side tests are all green, but the outermost layer of translators is locked in, and the performance is exactly the same as no setting at all. Forwarding at the port and readers of the DMZ article have stepped on "Rules take effect but can't connect," 90% chance it's this issue.
UPnP opened for nothing. This is the most discreet among the double-layer NAT. The principle of UPnP is that the device shouts to the "directly connected gateway" to open a window, but this call only sends within the local network segment; the router layer outside cannot hear it at all. So even though the router's mapping list clearly shows 'added successfully,' the outside still can't get in— I mentioned in the UPnP post that 'the optical modem is just turning on and off in router mode.' That's where the problem lies.
Online gaming is rated as NAT3. For PS5 and Switch NAT type detection, two layers of NAT stacked basically mean strict files. Unable to find rooms or voice messages is normal. The mechanism < a href="https://www.shunot.com/en/lybk/814.html"> The NAT type article explains everything thoroughly.
Remote access to the old relay system. When it comes to punching holes, as long as one side is behind the double-layer NAT, the success rate drops to rock bottom. The software quietly downgrades to the relay, and the speed climbs close to the relay limit. The NAT hole drilling article explained why symmetrical NATs are harder to build; double-layer NAT has an extra layer of wall than it.
The solution is to pick the path you came from; don't start by using the light mode
Once the source is confirmed, the solution will be divided into three parts.
The first method is easiest to cure because both layers are under your control. Choose one of three: The cleanest is the optical modem switching to bridge, where the router dials directly, and the public IP is directly on the router. Is it worth changing it? After the change, the aftermath is the bridge decision has a complete ledger; If you don't want to touch the bridge, the incoming modem backend points the DMZ to the router, allowing all first-layer clearances, the manual guide from the optical modem DMZ section; Or conversely, switch your router to AP mode and hand over NAT rights, letting the optical modem alone make the decisions. < a href="https://www.shunot.com/en/luyou/759.html"> you can directly apply the operation from the old router to AP modification. My cousin's family took the last step of the bridge, and the NAT type of the kids' game consoles immediately jumped from strict to medium.
The second way is to deal with telecom operators. The first choice is to call customer service using a public IP address. Most telecom home bandwidth providers can handle it directly over the phone, and the script is just copy the public IP post; If you want to go with IPv6, now the V6 is basically free and comes by default, and both ends support V6 applications, allowing you to bypass the NAT of V4 and connect directly. How do you turn on both sides of the optical modem and router? < a href="https://www.shunot.com/en/192-168-2-1/929.html" > the IP v6 section on the optical modem and the reference Xiaomi IPv6 article is one of the most manageable; V6 doesn't work either, so just stick to tunnel relays, Tailscale, FRP, and the like—just accept the speed.
The path from here is the most lost. Both the optical modem and the exit are in the hands of the landlord, so getting the super admin password is unrealistic. Basically, the only options left are IPv6 to try your luck and to relay the tunnel. For renters doing remote access, I advise starting directly with tunnel solutions instead of wasting nights on port forwarding.
| The first | choice is | the source method, so don't waste | |
|---|---|---|---|
| modem. Optical modem | ,switching to optical modem to bridge | opticalmodem. DMZ refers to repeatedly resetting router | forwarding rules |
| Carrier: CGNAT | To direct | any port viapublic IP IPv6 | |
| landlord/building | tunnel relay | IPv6 is trying to | getthe backend from the landlord for the optical modem backend |
Both types of people don't need to be bothered at all
To be fair
, dual-layer NAT isn't a disease—it's the norm born from saving money—operators rely on it to spread out the tight public IPv4 to every household. If you only watch videos, browse Taobao, or play games under the game, the outbound connection between two layers of NAT is completely acceptable. The texture feels no different from a single layer, and if you find out it's dual-layer, don't worry.
The ones who really want to take action are these people: those who want to connect to their home computers at work, those with public networks running remote NAS, those who can't find rooms while playing online games, those who get stuck on slides from remote surveillance cameras. Spend five minutes first completing the above two steps to determine the source, then follow the chart to find the medicine. Don't restart the router all afternoon or reset the port forwarding eight times—that's surgery for the wrong layer.
The ending of my family's mess was simple: the surveillance switch was moved from mobile to telecom line, remote streaming was still done remotely, and the days of being stuck in slides never came back. The mobile cable continues to feed downloads—since downloads are pulled outward, two layers of NAT don't interfere with its work at all.
