From a4253e2d09e33a349412db0b06c00be8997705fb Mon Sep 17 00:00:00 2001 From: Rajakavitha Kodhandapani Date: Mon, 16 Dec 2024 11:37:25 +0530 Subject: [PATCH 1/2] [Update]Understanding iptables Updated the tables and the chains supported after validating: ```root@localhost:~# sudo iptables -t nat -L Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain INPUT (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination ``` --- docs/guides/security/firewalls/what-is-iptables/index.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/guides/security/firewalls/what-is-iptables/index.md b/docs/guides/security/firewalls/what-is-iptables/index.md index bdcc75a8f38..32db44c2646 100644 --- a/docs/guides/security/firewalls/what-is-iptables/index.md +++ b/docs/guides/security/firewalls/what-is-iptables/index.md @@ -23,7 +23,14 @@ This guide helps you understand iptables and explains what is iptables. It gets A table is a collection of chains that serves a particular function. The 3 main tables in iptables are the Filter, NAT, and Mangle tables. -!["iptables table of tables](iptables-table-of-tables.png "iptables table of tables") +| **Chain** | **Filter Table** | **NAT Table** | **Mangle Table** | +|------------------|------------------|------------------|------------------| +| **INPUT** | Supported | Supported | Supported | +| **FORWARD** | Supported | Not supported | Supported | +| **OUTPUT** | Supported | Supported | Supported | +| **PREROUTING** | Not supported | Supported | Supported | +| **POSTROUTING** | Not supported | Supported | Supported | + - The **Filter Table** is used to control the flow of packets in and out of a system. - The **NAT Table** is used to redirect connections to other interfaces on the network. From 2803899f0f53ce15d1050296b7193044ad504c92 Mon Sep 17 00:00:00 2001 From: Rajakavitha Kodhandapani Date: Mon, 16 Dec 2024 12:46:17 +0530 Subject: [PATCH 2/2] format the table --- .../security/firewalls/what-is-iptables/index.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/guides/security/firewalls/what-is-iptables/index.md b/docs/guides/security/firewalls/what-is-iptables/index.md index 32db44c2646..5e096a8b401 100644 --- a/docs/guides/security/firewalls/what-is-iptables/index.md +++ b/docs/guides/security/firewalls/what-is-iptables/index.md @@ -23,13 +23,13 @@ This guide helps you understand iptables and explains what is iptables. It gets A table is a collection of chains that serves a particular function. The 3 main tables in iptables are the Filter, NAT, and Mangle tables. -| **Chain** | **Filter Table** | **NAT Table** | **Mangle Table** | -|------------------|------------------|------------------|------------------| -| **INPUT** | Supported | Supported | Supported | -| **FORWARD** | Supported | Not supported | Supported | -| **OUTPUT** | Supported | Supported | Supported | -| **PREROUTING** | Not supported | Supported | Supported | -| **POSTROUTING** | Not supported | Supported | Supported | +| **Filter** | **NAT** | **Mangle** | +|-------------------|--------------------------|-----------------------------------| +| INPUT chain | INPUT chain | INPUT chain | +| FORWARD chain | OUTPUT chain | FORWARD chain | +| OUTPUT chain | PREROUTING chain | OUTPUT chain | +| | POSTROUTING chain | PREROUTING chain | +| | | POSTROUTING chain | - The **Filter Table** is used to control the flow of packets in and out of a system.