Skip to content

Commit

Permalink
[Update]Understanding iptables (#7161)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
Rajakavitha1 authored Dec 17, 2024
1 parent e2ec29f commit 3dd0e7c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/guides/security/firewalls/what-is-iptables/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
| **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.
- The **NAT Table** is used to redirect connections to other interfaces on the network.
Expand Down

0 comments on commit 3dd0e7c

Please sign in to comment.