IP Addresses & Routing

Does IPv6 Make Your Network More or Less Secure?

See where IPv6 changes your network's risk, which old assumptions stop holding and what to check on your router and devices.

Key takeaways

  • IPv6 does not need NAT, so your protection against unsolicited inbound connections must come from a firewall, which good routers enable by default.
  • The huge address space makes blind scanning of a whole network impractical, but devices can still be found through DNS, logs, predictable addresses and local multicast.
  • Most real-world IPv6 problems come from a half-managed second protocol: missing firewall rules, unmonitored traffic and VPNs that only carry IPv4.
  • Blocking all ICMPv6 breaks IPv6, so filter it selectively.

IPv6 is neither safer nor riskier than IPv4 by nature. A network with a sensible firewall, patched devices and some attention to both protocols is about as safe either way. The trouble starts when IPv6 is switched on and nobody notices, so the rules, logs and habits built for IPv4 cover only half of the traffic.

So the useful question is where the two protocols differ in ways that affect your defenses. Some differences help you, some demand new settings, and a few popular beliefs on both sides are wrong.

The NAT question

On a typical IPv4 home network, every device has a private address and shares one public address through network address translation. A side effect is that a stranger on the internet cannot simply start a connection to your printer, because the router has no idea which inside device should receive it.

With IPv6, your devices usually get globally routable addresses. In principle, a packet from anywhere can be addressed directly to your printer. This sounds alarming until you separate two jobs that NAT happened to blur together.

Translation rewrites addresses. Filtering decides what is allowed through. A stateful firewall does the filtering on its own: it lets your devices open connections outward, lets the replies come back, and drops new connections arriving from outside unless you have made an exception. That is the same inbound behavior most people think NAT gives them, delivered by a component that was designed to do it.

Home routers that support IPv6 commonly ship with this kind of inbound filter turned on, in line with the guidance for consumer equipment in RFC 6092. Commonly is not always, so verify yours. Look for a page named something like "IPv6 firewall" or "IPv6 security". Menu names vary a lot between vendors. Firewalls explained covers what a stateful filter tracks and why.

What a stateful IPv6 firewall does at your router
1 Device connects out A laptop opens a connection to a website from its global address. 2 Router records it The firewall notes addresses and ports for this conversation. 3 Reply is allowed in Packets that match the recorded conversation pass. 4 Stranger is dropped A new inbound connection with no rule is discarded. Device connects out A laptop opens a connection to a website from its global address. 1 Router records it The firewall notes addresses and ports for this conversation. 2 Reply is allowed in Packets that match the recorded conversation pass. 3 Stranger is dropped A new inbound connection with no rule is discarded. 4

Does the huge address space hide you?

A single IPv6 LAN normally uses a /64 prefix, which holds 2 to the power of 64 addresses. Walking through every one of them looking for live hosts, a routine job on a small IPv4 subnet, is not realistic at that size. This does remove one noisy source of discovery.

It does not make you invisible. RFC 7707 describes the ways hosts can still be found:

  • Public DNS. A server with an AAAA record has announced itself.
  • Logs elsewhere. Every site your device visits sees its address.
  • Guessable numbering. Servers manually numbered ::1, ::2 or ::80 are easy to try.
  • Hardware-based addresses. Older autoconfiguration built the last 64 bits from the network card's MAC address, which narrows the search.
  • Local multicast. Someone already on your LAN can ask all nodes to respond.

Treat obscurity as a small bonus. A service that is reachable and unpatched is at risk no matter how long its address is.

Privacy addresses

Because IPv6 devices talk to the internet with their own addresses, there was early concern that a fixed hardware-derived identifier would follow a laptop from network to network. Two standards address this. RFC 8981 defines temporary addresses that change periodically and are used for outgoing connections. RFC 7217 defines stable addresses that stay the same on one network but differ on another and reveal nothing about the hardware.

Current mainstream desktop and phone systems generally use one or both. Embedded gadgets are less predictable. Note that your /64 prefix still identifies your household or office much as a public IPv4 address does, so temporary addresses do not make you anonymous. IPv6 address types explains why one interface often shows several addresses at once.

Temporary addresses also complicate administration. If your logs record only an address, you need another way to tie it to a device, such as records of neighbor tables on the router or switch.

Local network attacks look familiar

IPv4 relies on ARP and DHCP, neither of which authenticates anything. IPv6 replaces ARP with Neighbor Discovery and lets routers announce themselves with router advertisements. By default these messages are trusted too.

That means a misconfigured or hostile device on the same LAN could advertise itself as a router and attract traffic, much as a rogue DHCP server can in IPv4. Accidents are the more common case: someone turns on connection sharing on a laptop and half the office starts using it.

The defenses are also familiar. Managed switches may offer RA Guard (RFC 6105), which accepts router advertisements only on the ports where real routers live, plus DHCPv6 filtering. Putting guests and unmanaged gadgets on their own segment limits what any one of them can reach. And end-to-end encryption such as HTTPS protects content even if traffic takes a wrong turn.

The IPsec myth

You may have read that IPv6 is secure because it includes IPsec, a suite that encrypts and authenticates packets. Early IPv6 requirements did say implementations had to support it, and the node requirements were later relaxed to a recommendation. Supporting something never meant turning it on.

Ordinary IPv6 traffic is no more encrypted than ordinary IPv4 traffic. IPsec works with both protocols when someone configures it, typically for VPNs. For web, mail and apps, your protection comes from TLS and similar layers above IP.

Where the real gaps appear

Most practical IPv6 weaknesses are management gaps. The table compares the places to look.

Area Common gap What to do
Host firewall Rules written only for IPv4 addresses Check that rules apply to both protocols
Port forwarding Assuming no forward means no exposure Review the separate IPv6 allow rules
VPN Tunnel carries IPv4 while IPv6 goes direct Use a VPN that tunnels or blocks IPv6
Monitoring Logs and alerts ignore IPv6 Confirm your tools record both
Filtering DNS Only the IPv4 resolver is set Set or control the IPv6 resolver too
Tunnels Automatic transition tunnels left on Disable ones you do not use

The VPN case deserves a test. Connect your VPN, then visit any page that reports your addresses. If you still see your provider's IPv6 address, some traffic is bypassing the tunnel. What a VPN does and does not do sets expectations for the rest.

Transition mechanisms are another blind spot. Some older systems could wrap IPv6 inside IPv4 and carry it past a filter that only inspected the outer layer. If you do not need a tunnel, turn it off, and have the firewall block tunnel traffic you never intended to allow.

Do not block all ICMPv6

Many administrators learned to block ping and other ICMP messages. Applied bluntly to IPv6, that habit breaks things. ICMPv6 carries Neighbor Discovery, router advertisements and the "Packet Too Big" message. IPv6 routers do not fragment packets in transit, so if that last message is filtered, large transfers can stall while small ones work.

RFC 4890 gives recommendations on which ICMPv6 types a firewall should pass or drop. In a home router, the default policy usually handles this. If you write your own rules, start from the vendor's recommended set and tighten with care. MTU, MSS and fragmentation explains the stalled-transfer symptom.

What helps and what needs work with IPv6
Works in your favor Blind sweeps of a /64 are impractical Temporary addresses reduce device tracking No translation to confuse logs of inbound traffic One address per device makes rules specific Needs your attention Firewall must filter inbound IPv6 Router advertisements are trusted by default Rules and monitoring must cover both protocols VPNs may leave IPv6 outside the tunnel VS Works in your favor Blind sweeps of a /64 are impractical Temporary addresses reduce device tracking No translation to confuse logs of inbound traffic One address per device makes rules specific Needs your attention Firewall must filter inbound IPv6 Router advertisements are trusted by default Rules and monitoring must cover both protocols VPNs may leave IPv6 outside the tunnel

An example: the camera that was never forwarded

Say you add a network camera at home. On IPv4 it sits behind translation, and you create no port forward, so strangers cannot connect to it. On IPv6 it also receives a global address, and the router's inbound filter is what keeps visitors out.

Now suppose someone troubleshooting a game console earlier chose to relax IPv6 filtering for the whole network. Nothing about the IPv4 setup looks different, yet the camera's web page may be reachable over IPv6 by anyone who learns its address. The fix is to restore the default deny for inbound traffic and, if remote access is truly needed, allow one device and one port, or better, reach home through a VPN.

Some routers also support protocols that let devices ask for inbound openings automatically. Check whether that applies to IPv6 on your model, and read UPnP: convenience and risk before leaving it on.

A short checklist

Work through these on your own network:

  1. Find out whether you have IPv6 at all. Checking for working IPv6 takes a few minutes.
  2. Open the router's IPv6 settings and confirm inbound filtering is on.
  3. Review any IPv6 allow rules and remove ones you no longer need. Allow a specific device and port, never everything.
  4. Keep device firewalls enabled, since a laptop will visit networks you do not control.
  5. Test your VPN for IPv6 bypass.
  6. Update router firmware and device software.
  7. In an office, ask about RA Guard on switches and make sure monitoring records IPv6.

To test inbound filtering, use a device you own and try to reach a listening service from outside your network, for example from a phone on mobile data that has IPv6. It should fail unless you made a rule.

Should you just turn IPv6 off?

Disabling it removes a protocol you might not be managing, which is why some people suggest it. The costs are real. Some operating system features expect IPv6, many mobile networks run mostly on it, and you postpone learning something you are likely to need.

For a home user with a current router and updated devices, leaving IPv6 on with the firewall enabled is reasonable. For an organization that has no way to filter or monitor it yet, a deliberate, temporary block at the edge and a plan to deploy it properly can be defensible. What you want to avoid is the middle state, where it runs and nobody is looking.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in IP Addresses & Routing →

Latest news on this topic