1. Current Location: Home >  Router Encyclopedia >  Even without a public IP, IPv6 can still connect directly home, but the address will change and the firewall must be balanced

Even without a public IP, IPv6 can still connect directly home, but the address will change and the firewall must be balanced

Complete process for directly connecting IPv6 to a home NAS computer: IPv4 no public IP comparison, v6 address prefix and suffix decomposition, two-layer firewall grantance, browser square bracket syntax, ddns-go configuration AAAA records

Last month

, my cousin was on a business trip. On the way, he wanted to check photos of the Synology at home, but QuickConnect spent a long time spinning around it. They use mobile broadband, and I immediately understood what was going on—the WAN port IP starts with 100.64 and the carrier is a big compound, no public IPv4, so even if you set up port forwarding, it's pointless. Later, I helped him clear the IPv6 direct connection route. By entering the home NAS address for mobile data, he could access the management page and run the entire house with speed. But the pitfalls along the way were far more common than driving the V6 itself. I'm jotting them down for those who feel sorry for me.

First, let's clarify: why does V6 direct connection skip port forwarding

?

In the IPv4 era, public IPs were scarce; not a single household could afford one, and operators could only squeeze in a public IP for dozens of households, relying on NAT translation in between. If you want to connect to a device in your home from outside, you first need to connect to the router's "relay room," then the port forwarding rules will guide you to the specific device. If there is no public IP address, the transmission room is completely blocked.

The logic of IPv6 is completely reversed. There are so many addresses that each device can get a unique global address number: those starting with 2409 (Mobile), those starting with 240e (Telecom), and those starting with 2408 (Unicom). How do you split and read what addresses look like? I < the article on IPv6 addresses > a href="https://www.shunot.com/en/lybk/1034.html"It was written in the document. Without the translator of NAT, the outside bag would crash directly onto your device's door number. The router has reverted from the 'reception room' back to 'the gatekeeper'—whether to block or not, whether to turn or not.

Here's a freebie benefit: anyone who's played port forwarding NAT backflow knows that testing your public network address at home with IPv4 will cause you to run into a loopback pit, so you need to switch your phone's data to test it. V6 doesn't have this issue; without NAT, there's no backflow. Visiting from home and outside is the same. Dual NAT stacked debt where the optical modem presses one layer and the router stacks another, and v6 also bypasses it at the root.

Step 1: Check both ends and find the address; don't miss the square brackets

The hard premise for direct v6 connection is that both ends must have IPv6; missing one means the path is dead.

On the other end of the house, connect to WiFi, open the test-ipv6.com in your mobile browser, and score it 10 points to get through. Just having one end at home isn't enough—you need internet access when you're out and about. Most mobile data now comes with V6, and all three major carriers support 4G and 5G, so you don't have to worry about 90% of that. The ones most prone to failures are company WiFi and mall WiFi. Many don't even have V6 enabled, I wrote about FN Connect and ran into this: the home NAS has V6, but the company network doesn't, so you still have to use a repeater and move slowly.

My cousin's router is Mercury, and the V6 switch is in the background and you can spot it at a glance; The switch positions on Xiaomi devices are different. I've written about the paths in both previous posts: Mercury's is here, Xiaomi's is here. If the optical modem server just takes v6 on this layer, you'll have to go check the backend for the optical modem, which is a different matter. I also get a separate demerit for using the optical modem and v6. After checking both ends, you get 10 points before it's time for the next step.

Find the address: The parentheses in the browser are key

On the NAS network interface page (Windows uses ipconfig), you can see a string of v6 addresses. Note two things: FE80 is an internal phone; if you can't go out, don't use it to connect; You need to get global house numbers starting with 2409 or 240e.

Then, using your phone's data (turn off WiFi), enter in your browser:

http://[2409:8089:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:5000

Here's a pitfall that 90% of newcomers fall into: you have to put square brackets on both sides of the address. If you don't set the rules, the browser will treat the colon as another syntax parser and directly treat your string as a search term and send it to the search engine. The port number is written outside square brackets. This syntax is fixed by URL standards: if you apply it, it works; if not, it searches, and there is no intermediate state. My cousin got stuck here on his first trip and thought he had written the wrong address, so he double-checked three times.

After a week, I couldn't connect: the address changed, and there were two sources

The day the direct connection was made, my cousin was very excited and saved the address in a bookmark to use it every day. On the eighth day, the connection was lost.

This is the number one pitfall in V6 direct connection: the address changes, and there are two reasons for it, which depends on the open and remedial solution.

The first source is prefix change. The first 64 bits of the V6 address are prefixes assigned by the carrier. Home Broads' prefixes aren't fixed, usually every one or two days, and when the optical modem restarts, it's even more necessary—the first time the community had a power outage for half a day, the prefix was replaced immediately after the call came in. Once the prefix changes, the entire address changes, and the old address in the bookmark becomes useless paper.

The second source is the device's own temporary address. For privacy, the system periodically replaces the 64-bit random extension. Windows calls this a "temporary IPv6 address," which by default rotates once a day. Even if the prefix remains unchanged, Windows will still change the address itself.

Remedy: Fix the suffix. On Windows, open the command prompt as an administrator and type two commands:

netsh interface ipv6 set privacy state=disabled store=persistent

netsh interface ipv6 set global randomizeidentifiers=disabled store=persistent

After restarting, the temporary address will no longer appear in ipconfig. The suffix will be fixed as the network card's own identifier. No matter how you change the prefix, everyone will recognize it. No worries on the NAS side. The address extensions in Synology's DSM network interfaces are already relatively stable, so just focus on preventing prefixes.

The real obstacle is the firewall, which has to be crossed two more

layers

The address is pinned and probably still can't connect—that's because the firewall has blocked it. V6 direct connection requires passing through two barriers, with none missing.

The first is in the router. In the V6 era, every device had a public network address, and the router's V6 firewall defaulted to blocking all incoming stations. This default value was correct; not blocking was called naked. But if you stop them, you need to be able to let them through: Mercury and Tenda have a v6 firewall graphic switch in their backends—just check the box to let them through; Xiaomi's official firmware is the most troublesome—there's no graphical interface, so you have to enable SSH and change the firewall configuration. As a beginner, I don't recommend it. I've written about the personalities of these brands. My cousin's Mercury is considered lucky, and it's just a matter of backing a few times.

The second stage is on the device itself. Synology's firewall is disabled by default; if you don't block it, this is basically free; But Windows has its default firewall enabled to block inbound visits. If you want to connect to your home computer from outside, you need to create an entry rule for the corresponding port in the "Advanced Security Firewall." Many people still can't connect even after the router is allowed through, with a 90% chance the device has missed its own connection.

Here's a quick order for troubleshooting: if you're at home connected to a WiFi device, it works, which means the device itself has passed that layer; Switching to mobile data to test is not working; the problem lies with the router's switchgate. Testing both ends separately is much faster than guessing blindly.

Once and for all: Let ddns-go help you track down addresses

Even if the suffix is fixed, it will still be changed. You can't have family members write down addresses remotely every time there's a power outage. The main approach is DDNS: the domain is marked with a AAAA record (v6 version resolution), paired with a client to monitor the address, and it updates automatically whenever it changes.

Here's a pitfall that Synology users must fall into: Synology's built-in DDNS interface doesn't have AAAA options, the external address bar only recognizes IPv4, and native features can't work through v6. The mainstream approach is to install an open-source DDNS-go: a command in Synology Docker, and when the image runs, you select a service provider on the webpage (both Alibaba Cloud and Tencent Cloud DNSPod support it). It can recognize the v6 address itself, and as soon as the prefix changes, the AAAA record updates within seconds. I won't go into detail about the Docker set; the beginner's article is sufficient.

Domains cost only a few dozen yuan a year. If you don't want to spend money, there are options: free second-level domains like DNSPod are available, and you can run for free. After matching, the address you connect to is no longer that changing address, but a fixed domain:

http://nas. Your domain name: 5000

No

need for square brackets—this is the way to write for others.

Who is this path suitable for, and who is not

?

After all this fuss, I put together several long-distance home routes to check the accounts

and the level . periods, at all. ,
The path is based on speed, speed,of maneuvering that suits whom
IPv4 port forwarding genuine public IPs running full uplink low downlink for those with public IPs should still be the first choice
IPv6 direct connection + ddns-go have v6 running on both ends, with full uplink and no public IPs but wanting free direct connections
Vendor relay (QC/FN Connect) offers zero discounts during peakand you don't want to get involved
Internal network penetration/VPN networkingVPS or public IPs are just about mid-level transferThe network environment is complex

My home has my own public IPv4, port forwarding is sufficient, and v6 is just a backup channel for me. For my cousin's family, which has no public IP and complains about slow relays, V6 direct connection is the only free route that can still run at full speed— Of the three remote access routes to NAS, under his conditions, V6 has gone from a spare tire to the main provider. If your broadband doesn't even provide V6, don't push it out. slow relay may be slow, but at least it's a viable solution.

Here's a wrap-up

order: first test -ipv6 to verify both ends, then manually fill in the address to try to pass (remember the square brackets), once passed, add a suffix and place two layers of firewall, and with ddns-go attached, it's done. Fix it at the step where you get stuck; don't finish everything at once and then look for problems.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《Even without a public IP, IPv6 can still connect directly home, but the address will change and the firewall must be balanced》
Article URL: https://www.shunot.com/en/lybk/1277.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow