Linux/iptables: Difference between revisions
< Linux
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ | ||
! | !Tables | ||
! | !Chains | ||
! | ! | ||
! | ! | ||
|- | |- | ||
| | |FILTER | ||
| | | | ||
* INPUT | * INPUT | ||
Line 17: | Line 17: | ||
| | | | ||
|- | |- | ||
| | |NAT | ||
| | | | ||
* PREROUTING | * PREROUTING | ||
Line 25: | Line 25: | ||
| | | | ||
|- | |- | ||
| | |MANGLE | ||
(modify ip headers) | |||
| | | | ||
* PREROUTING | * PREROUTING | ||
Line 35: | Line 36: | ||
| | | | ||
|- | |- | ||
| | |RAW | ||
(connection tracking) | |||
| | | | ||
* PREROUTING | * PREROUTING | ||
Line 42: | Line 44: | ||
| | | | ||
|- | |- | ||
| | |SECURITY | ||
| | | | ||
| | | |
Revision as of 17:13, 4 December 2023
Tables | Chains | ||
---|---|---|---|
FILTER |
|
||
NAT |
|
||
MANGLE
(modify ip headers) |
|
||
RAW
(connection tracking) |
|
||
SECURITY |
Tables
- Filter (Default)
- NAT
- Mangle (modify ip headers)
- (Raw) (Connection tracking)
- (Security) (SELinux Tagging)
Chains
raspi wifi to ethernet
- rc.local
- iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
- iptables --append FORWARD --in-interface eth0 -j ACCEPT