Skip Navigation


These lesson materials cover the iptables and ip6tables firewalls on Linux. While other firewall solutions are available, including the newer nftables, iptables and ip6tables are still widely used. The iptables firewall handles Internet Protocol (IP) version 4, while ip6tables is used with IP version 6.

Page Contents

iptables Basics

The basic functionality of iptables is documented in the following lesson pages. While I focus on IPv4 (iptables), the concepts are the same for IPv6 (ip6tables). The only practical differences are some of the protocols used and the address formats.

Alpine Linux

Example Configurations

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.