Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux_router:netfilter [2024-06-23 Sun wk25 09:00] – [IPTables and Connection Tracking] baumkp | linux_router:netfilter [2024-06-23 Sun wk25 09:11] (current) – baumkp | ||
---|---|---|---|
Line 46: | Line 46: | ||
| | ||
</ | </ | ||
+ | |||
+ | |||
+ | =====IPTables and Netfilter===== | ||
+ | The following is taken from Digitalocean [[https:// | ||
+ | |||
+ | ++++ tldr| | ||
+ | |||
+ | ====IPTables Tables and Chains==== | ||
+ | |||
+ | The '' | ||
+ | |||
+ | Within each '' | ||
+ | |||
+ | The names of the built-in chains mirror the names of the '' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | |||
+ | Chains allow the administrator to control where in a packet’s delivery path a rule will be evaluated. Since each table has multiple chains, a table’s influence can be exerted at multiple points in processing. Because certain types of decisions only make sense at certain points in the network stack, every table will not have a chain registered with each kernel hook. | ||
+ | |||
+ | There are only five '' | ||
+ | |||
+ | ====Which Tables are Available? | ||
+ | |||
+ | Let’s step back for a moment and take a look at the different tables that '' | ||
+ | |||
+ | ===The Filter Table=== | ||
+ | The filter table is one of the most widely used tables in '' | ||
+ | |||
+ | ===The NAT Table=== | ||
+ | The '' | ||
+ | |||
+ | ===The Mangle Table=== | ||
+ | The '' | ||
+ | |||
+ | This table can also place an internal kernel “mark” on the packet for further processing in other tables and by other networking tools. This mark does not touch the actual packet, but adds the mark to the kernel’s representation of the packet. | ||
+ | |||
+ | ===The Raw Table=== | ||
+ | The '' | ||
+ | |||
+ | The '' | ||
+ | |||
+ | ===The Security Table=== | ||
+ | The '' | ||
====Relationships Between Chains and Tables==== | ====Relationships Between Chains and Tables==== | ||
Line 95: | Line 141: | ||
*'' | *'' | ||
*'' | *'' | ||
- | *SNAT'': | + | *'' |
*'' | *'' | ||
The states tracked in the connection tracking system allow administrators to craft rules that target specific points in a connection’s lifetime. This provides the functionality needed for more thorough and secure rules. | The states tracked in the connection tracking system allow administrators to craft rules that target specific points in a connection’s lifetime. This provides the functionality needed for more thorough and secure rules. | ||
+ | ++++ | ||
====Some references==== | ====Some references==== |