IPv6 and home devices: why no NAT means you need a firewall rule
AdminKit explains why IPv6 removes the accidental protection IPv4 NAT gave home networks: NAT hides devices behind one shared address, acting like a firewall nobody configured. IPv6 gives every device its own globally routable address instead, so an actual firewall — not NAT — is what stands between your devices and the internet.
By AdminKit team, Netbase JSC · Updated
Key takeaways
- On IPv4, NAT means an unsolicited inbound connection usually has nowhere to go. On IPv6, each device has its own global address, so only a firewall stops that connection.
- RFC 6092 describes a default-deny IPv6 firewall for home routers, but it also allows a “transparent mode” with no filtering, and says that mode may be the default. Check your router; don’t assume.
- AdminKit’s My IP tool shows the address your browser used to reach it. If that is an IPv4 address, the page can’t tell you whether your devices also have IPv6.
- Temporary “privacy” addresses rotate (by default each is preferred for one day, per RFC 8981), but devices keep stable addresses too. Privacy addressing is not a firewall.
- Open inbound IPv6 rules only for a specific device and port that needs them, and never an “allow all” rule.
What is the core difference from IPv4?
Under IPv4, most home networks share a single public address across every device through NAT (Network Address Translation) at the router. That sharing is really meant to stretch a scarce resource — there aren’t enough IPv4 addresses for every device to have its own — but it has a well-known side effect: an unsolicited inbound connection from the internet generally has nowhere to go, because NAT has no existing mapping to route it to any specific device. Many people have come to rely on that side effect as if it were a firewall, even on networks with no explicit firewall rules at all.
RFC 8200 defines IPv6 with a vastly larger address space specifically so NAT isn’t necessary — every device on an IPv6 network can have its own globally unique, directly routable address, commonly assigned via SLAAC and EUI-64. The local signaling that makes SLAAC possible in the first place — discovering routers and resolving neighbors’ addresses — runs over Neighbor Discovery Protocol, operating entirely over link-local addresses regardless of which global address a device ends up with (the link-local range, along with other reserved IPv6 blocks, is formally defined in IANA’s IPv6 Special-Purpose Address Registry). That solves real IPv4 problems (the CGNAT sharing and inbound-connectivity issues covered in our CGNAT guide), but it also removes the accidental protection NAT provided. It also sidesteps a smaller IPv4 quirk entirely: reaching your own self-hosted device by its public address or domain name from inside the same network requires a router feature called NAT loopback, which isn’t universally supported — IPv6’s lack of NAT removes the need for it in the first place. On IPv6, whether an unsolicited inbound connection reaches your smart camera depends entirely on whether a real firewall is blocking it — not on an address-translation side effect. A device can also pick up a reachable IPv6 address through legacy tunneling mechanisms like Teredo or 6to4, which can leave it exposed despite a firewall that was only ever configured with native IPv6 (or IPv4) in mind.
| IPv4 home network with NAT | IPv6 home network | |
|---|---|---|
| Public addresses | One, shared by every device | One or more per device, from your ISP’s prefix |
| An unsolicited inbound connection | Usually dropped: no NAT mapping to follow | Routed to the device unless a firewall blocks it |
| What protects a device | NAT’s side effect, plus any firewall | The firewall alone |
| Port forwarding | Needed to reach a device from outside | Not needed: a firewall rule opens the path |
| Main risk | A forgotten port forward or UPnP mapping | An IPv6 firewall that is off or too permissive |
On IPv4, that UPnP risk has a newer relative: PCP (Port Control Protocol), defined in RFC 6887, lets a device ask the NAT or firewall to open an inbound mapping, even across carrier-grade NAT where UPnP can’t.
Why isn’t this automatically a disaster?
To be clear: a correctly configured IPv6 firewall should behave the same way IPv4 NAT does in practice — blocking unsolicited inbound connections by default while allowing outbound-initiated traffic back in. RFC 6092, “Recommended Simple Security Capabilities in Customer Premises Equipment for Providing Residential IPv6 Internet Service,” exists specifically to describe what a home router’s IPv6 firewall should do by default, precisely because the IETF recognized that losing NAT’s incidental protection needed to be replaced with an explicit set of recommendations, not left to chance. Separately, RFC 4864, “Local Network Protection for IPv6,” discusses the broader set of techniques (including simple stateful filtering) that can replicate NAT’s protective side effects without needing NAT itself. NIST’s guidelines for secure IPv6 deployment (SP 800-119) make the same point independently: losing NAT’s incidental packet-filtering side effect means an explicit, correctly configured firewall policy becomes a required part of an IPv6 deployment, not an optional hardening step.
RFC 6092 is informational: it says outright that it “is not a standard”, and conformance isn’t required to claim IPv6 support. A few of its recommendations are worth knowing, because they describe what to look for in your own router:
| RFC 6092 recommendation | What it says | What to check on your router |
|---|---|---|
| REC-34 | By default, answer an unsolicited inbound TCP SYN with an ICMPv6 “administratively prohibited” error, after waiting at least 6 seconds | Inbound connections to your devices fail unless you opened them |
| REC-8 | By default, don’t answer DNS queries arriving on the internet-facing side | The router’s own DNS service isn’t reachable from outside |
| REC-50 | By default, don’t offer management services to the internet-facing side | The admin page isn’t reachable on the router’s IPv6 address |
| REC-13 | Provide a convenient, secure way to update firmware | A firmware update option exists, and you use it |
| REC-49 | Offer an easily selected “transparent mode” that forwards all unsolicited flows; it MAY be the default | Make sure your router isn’t in this mode |
REC-49 is the one that matters most. The same document that describes the default-deny firewall allows a router to ship with that filtering switched off. Many routers do enable an IPv6 firewall by default, mirroring IPv4 behavior. The risk is concentrated in older routers, firmware that added IPv6 support as an afterthought, routers in a transparent or “open” mode, and custom/DIY router setups where IPv6 firewalling wasn’t configured as carefully as the IPv4 side.
How do you check your own setup?
- Confirm whether you have IPv6 at all. Run AdminKit’s what is my IP tool. It shows the one address your browser used to reach adminkit.net. If that is an IPv6 address, your ISP and router are handing out IPv6 to your devices. If it is an IPv4 address, the page can’t see whether you also have IPv6 (it says so), so check a device’s own network settings with the commands below. Running both protocols at once is called dual stack. Some ISPs skip dual stack entirely and run an IPv6-only network instead, reaching the IPv4 internet behind the scenes with NAT64 and DNS64 — your devices still only ever see IPv6 addresses either way.
- Check your router’s firewall settings specifically for IPv6. Look for a setting labeled something like “IPv6 firewall,” “IPv6 filtering,” or “stateful IPv6 inspection” in your router’s admin interface, separate from the general IPv4 firewall settings — some routers genuinely do configure these independently, and it’s worth confirming both are enabled rather than assuming one covers the other.
- Test from outside. Port check run against your own IP, with your own consent, checks commonly-exposed device ports — see how to read an open ports scan result for what each flagged port means. It scans the address your connection to AdminKit arrives from, and shows that address in the result. If the result shows an IPv4 address, your IPv6 exposure wasn’t tested; a test from a device outside your network (for example a laptop on mobile data) against one of your devices’ global IPv6 addresses fills that gap.
- Identify which devices actually have global IPv6 addresses. Not every device needs to be reachable from the internet; devices that only ever initiate outbound connections (most smart-home gadgets) don’t need an open inbound path at all, regardless of protocol.
To see a computer’s own IPv6 addresses, use the command for its operating system. The sample output below is illustrative and uses the 2001:db8::/32 documentation prefix:
# Linux: global IPv6 addresses only
ip -6 addr show scope global
# macOS
ifconfig | grep inet6
# Windows
ipconfig
# Illustrative Linux output
inet6 2001:db8:1:2:5c41:9a7e:3b02:d1f4/64 scope global temporary dynamic
inet6 2001:db8:1:2:a4c0:8e1f:7b55:21c9/64 scope global dynamic mngtmpaddr
An address marked temporary is a privacy address used for outgoing connections. The other is the stable address that inbound connections, and scanners, would target.
What should you actually do?
- Confirm your router’s IPv6 firewall is enabled and set to deny unsolicited inbound connections by default — this should be the out-of-the-box behavior on modern routers, but don’t assume; check the setting directly, and make sure no “transparent” or “open” IPv6 mode is selected.
- Update router firmware. IPv6 firewall implementations have matured significantly over the years; an old firmware version may have gaps that a current one has closed.
- Avoid manually opening IPv6 inbound rules you don’t specifically need, the same discipline you’d apply to IPv4 port forwarding — the difference with IPv6 is that each device has its own address to target, so a careless “allow all inbound to this device” rule exposes that device specifically, not a shared address.
- Keep devices that don’t need inbound reachability on the default-deny path — smart plugs, sensors, and most IoT devices only need outbound connectivity to their cloud service or local hub, and should never need an inbound rule opened for them.
- Don’t block all ICMPv6. IPv6 needs some ICMPv6 messages to work at all, including Packet Too Big for path MTU discovery. RFC 4890 lists which types a firewall should let through.
- Use the AdminKit subnet calculator if you’re working with IPv6 prefixes directly and need to understand how your ISP’s allocation breaks down across your network segments.
- Check a specific address against your firewall rule’s range with AdminKit’s IP in CIDR tool before trusting an inbound rule written against a prefix — it tests one address against any number of CIDR ranges at once, offline, so a typo in the prefix doesn’t silently widen or narrow what the rule actually allows.
If you run your own Linux-based router, the forwarding policy should drop by default and accept only replies and outbound traffic. This sketch is adapted from the nftables wiki’s home-router example; an inet table applies the same rules to IPv4 and IPv6, and the interface names are placeholders:
table inet filter {
chain forward {
type filter hook forward priority 0; policy drop;
# replies to connections your devices started
ct state vmap { established : accept, related : accept, invalid : drop }
# ICMPv6 that IPv6 needs to work (narrow this per RFC 4890)
meta l4proto ipv6-icmp accept
# anything from the LAN out to the internet
iifname "lan0" oifname "wan0" accept
# everything else, including unsolicited inbound, is dropped by the policy
}
}
Why isn’t IPv6 privacy addressing a firewall either?
Most modern operating systems generate temporary IPv6 addresses for outbound connections (sometimes called IPv6 privacy extensions), rotating them periodically so a device isn’t easily tracked across sessions by address alone. RFC 8981, which replaced RFC 4941, sets the default preferred lifetime of a temporary address to one day and its valid lifetime to two days. It’s easy to assume this incidentally protects against inbound scanning too, since an attacker scanning an old address might find nothing there later. In practice, a device typically still holds a stable address alongside its temporary ones for any service that needs to be found consistently (like file sharing, printing, or a local server discovered via mDNS), and an attacker scanning a live, recently active address range has a reasonable chance of finding the stable one regardless of how many temporary addresses have rotated past. Privacy addressing is a genuinely useful tracking mitigation; it isn’t a substitute for firewall rules that actually decide whether an inbound connection gets through.
What is the bigger picture?
IPv6’s removal of NAT is a genuine improvement for connectivity — it’s a large part of why CGNAT exists as a stopgap on the IPv4 side at all, and native IPv6 avoids that problem entirely where both ends support it. The tradeoff is that the firewall, not an address-sharing side effect, is now doing the actual protective work, so it’s worth the few minutes to confirm yours is doing its job rather than assuming it is. A direct firewall check is the most reliable option for that. For per-device protection that works the same over IPv4 and IPv6, Netbase builds and runs Protective DNS for your network as a custom engagement — a filtering resolver that blocks known-malicious domains per device and logs every block; talk to our team about it.
Reference: IPv6.
This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.
Frequently asked questions
Does having an IPv6 address mean my device is automatically exposed to the internet?
Not automatically — having a globally routable address is necessary for a device to be reachable, but a properly configured firewall should still be blocking unsolicited inbound connections by default, the same way it should on IPv4. The risk is that some older or poorly configured routers don't apply firewall rules to IPv6 traffic as carefully as they do to IPv4, since IPv6 is newer and less universally tested in consumer gear.
Can I just turn off IPv6 to avoid this?
You can, and some people do, but that just removes the benefit (better connectivity, less reliance on NAT and CGNAT) without necessarily fixing anything if your IPv4 side has its own exposure problems. Checking that your firewall correctly covers both protocols is a more complete fix than disabling one of them.
Does my ISP or router vendor handle this automatically?
Many modern routers do apply a stateful firewall to IPv6 by default, mirroring the protection NAT incidentally provides on IPv4 — but this isn't universal, especially on older hardware or firmware. Checking directly is more reliable than assuming.
What's a 'temporary address' and does it help here?
IPv6 privacy extensions generate temporary, frequently-changing addresses for outbound connections so your device isn't easily tracked across sessions by its address alone. This helps with tracking but doesn't substitute for a firewall — an inbound connection attempt to any of your addresses, temporary or not, should still be blocked by default if nothing requested it.
How is this different from the CGNAT problem?
They're almost opposite situations. CGNAT (see our dedicated guide) means your IPv4 address is shared with other customers and inbound connections generally can't reach you at all without ISP cooperation. IPv6 means your device can have its own unique, directly reachable address — so the problem shifts from 'I can't get reached when I want to be' to 'I need to make sure I'm not reached when I don't want to be.'
Sources
- RFC 8200 — Internet Protocol, Version 6 (IPv6) Specification
- RFC 6092 — Recommended Simple Security Capabilities in CPE for IPv6
- RFC 4864 — Local Network Protection for IPv6
- IANA — IPv6 Special-Purpose Address Registry
- NIST SP 800-119 — Guidelines for the Secure Deployment of IPv6
- RFC 8981 — Temporary Address Extensions for Stateless Address Autoconfiguration in IPv6
- RFC 4890 — Recommendations for Filtering ICMPv6 Messages in Firewalls
- nftables wiki — Simple ruleset for a home router
Want AdminKit to watch this for you?
Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.
Talk to an expert
Huy Nguyen (David), Founder & CEO, Netbase JSC
Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.