Skip to content

Commit 3dd0e7c

Browse files
authored
[Update]Understanding iptables (#7161)
* [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 ``` * format the table
1 parent e2ec29f commit 3dd0e7c

File tree

1 file changed

+8
-1
lines changed
  • docs/guides/security/firewalls/what-is-iptables

1 file changed

+8
-1
lines changed

docs/guides/security/firewalls/what-is-iptables/index.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ This guide helps you understand iptables and explains what is iptables. It gets
2323

2424
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.
2525

26-
!["iptables table of tables](iptables-table-of-tables.png "iptables table of tables")
26+
| **Filter** | **NAT** | **Mangle** |
27+
|-------------------|--------------------------|-----------------------------------|
28+
| INPUT chain | INPUT chain | INPUT chain |
29+
| FORWARD chain | OUTPUT chain | FORWARD chain |
30+
| OUTPUT chain | PREROUTING chain | OUTPUT chain |
31+
| | POSTROUTING chain | PREROUTING chain |
32+
| | | POSTROUTING chain |
33+
2734

2835
- The **Filter Table** is used to control the flow of packets in and out of a system.
2936
- The **NAT Table** is used to redirect connections to other interfaces on the network.

0 commit comments

Comments
 (0)