NovoVocê sabe quais regulações se aplicam à sua empresa? Descubra em menos de 3 minutos. Nosso presente sincero:Mapeador da UEMapeador da Coreia
Como podemos ajudar?

Fale conosco em

KakaoTalkLINE

Resposta em até 48 horas

Envie-nos um e-mail →
Does Your Linux Firewall Cover IPv6?
Segurança de Rede

Does Your Linux Firewall Cover IPv6?

7 de outubro de 2026·Alex Holmquist, Panke IT Solutions LLC

A 2016 study found that 43% of dual-stack servers responded differently over IPv6 than IPv4.

Here is why iptables leaves IPv6 unprotected and how to audit your server in one minute.

Floor plan of a building with two doors. The IPv4 door is bolted and guarded; the IPv6 door stands open, labelled open and unwatched, and a dashed arrow runs through it to the service inside.

iptables VS ip6tables

The Linux Kernel maintains independent rule sets for each IP version:

iptables(8): "Iptables and ip6tables are used to set up, maintain, and inspect the tables of IPv4 and IPv6 packet filter rules in the Linux kernel."

Rules added with iptables apply exclusively to IPv4.

By default, the kernel source initializes built-in chains with an ACCEPT policy for both protocols.

As a result, a firewall built with iptables might leave IPv6 completely open.

Two terminal panels side by side. iptables -L shows Chain INPUT (policy DROP) with rules for established traffic, ports 22 and 443 and ICMP echo, and drops everything else. ip6tables -L shows Chain INPUT (policy ACCEPT) with no rules, and accepts everything.

When Unfiltered IPv6 Exposes Your Server

An empty ip6tables INPUT chain exposes a service when three conditions are met:

  • The host has a global IPv6 address.
  • The service listens on [::] (all IPv6 interfaces).
  • No upstream firewall filters IPv6 traffic.

Upstream filtering is easily misassumed. While AWS security groups block IPv6 until you explicitly add a ::/0 rule, host firewalls on many dual-stack VPS and on-premises systems are the only layer of defense.

Operators Rarely Intend to Leave IPv6 Open

Research done by Czyz, Luckie, Allman and Bailey for NDSS 2016 showed that 43% of servers serving both IP stacks behaved differently for each one.

The research covered 520,000 dual-stack servers and 25,000 routers. On 26% of servers, IPv6 was more permissive than IPv4. On routers, services like SSH, Telnet, and SNMP were twice as exposed over IPv6.

IPv6 firewall misconfiguration is not unique to system administrators. Hardware vendors make those mistakes too! Pierre Kim showed that FiberHome HG6245D fiber terminals (running 2019 firmware) shipped with every ip6tables chain defaulted to ACCEPT:

"By default, there are no firewall rules for the IPv6 connectivity, exposing the internal management interfaces from the Internet."

Research results from Czyz et al., 2016: of 520,000 dual-stack servers and 25,000 routers, IPv6 and IPv4 configs differ on 43% of servers and 44% of routers.

Audit Your Server in One Minute

Run these four commands on your host:

ip -6 addr show scope global  # Is a global IPv6 address present?
ss -tlnp                      # Is a service listening on IPv6 ([::]:22 or *:22)?
sudo ip6tables -L -n -v       # What are the active IPv6 rules?
sudo nft list ruleset         # Does a dual-stack "table inet" exist?

How to Secure IPv6

  • Disable IPv6: If you don't use IPv6, leaving it enabled is poor network hygiene.
  • Mirror your rules: Duplicate every iptables rule with ip6tables.
  • Use ufw: Uncomplicated Firewall enables IPv6 by default (IPV6=yes in /etc/default/ufw), a standard feature since version 0.31 in 2012.
  • In firewalld, use rich rules without family specifiers: Omitting both family and address definitions tells the system to apply the rules to both IPv4 and IPv6, as per the firewalld documentation.
  • Migrate to an nftables inet table: As noted in the nftables wiki, tables using the inet family process both IPv4 and IPv6 packets together.

Have you ever found a port responding over IPv6 that you believed was closed on IPv4?

References

  1. Linux man-pages — iptables(8)
  2. Jakub Czyz, Matthew Luckie, Mark Allman, Michael Bailey — Don't Forget to Lock the Back Door! A Characterization of IPv6 Network Security Policy, NDSS 2016
  3. Pierre Kim — Multiple vulnerabilities found in FiberHome HG6245D routers (12 January 2021)
  4. ufw — ChangeLog, release 0.31 (9 March 2012)
  5. nftables wiki — Nftables families
  6. Linux kernel — net/netfilter/xt_repldata.h
  7. firewalld — Rich language documentation
  8. AWS — Security group rules
Preocupado com sua superfície de ataque?

Se quiser saber como sua infraestrutura é avaliada no modelo de varredura de um atacante, entre em contato em contact@pankeit.com para uma avaliação de superfície de ataque.

Assine nosso blog

Fique por dentro das últimas tendências de segurança

Sem spam. Cancele quando quiser.

©2026 Panke IT Solutions LLC

Austin, TX