Linux/iptables: Difference between revisions

From Wiki
mNo edit summary
mNo edit summary
Line 2: Line 2:




{| class="wikitable"
|+
!
!
!
!
|-
|filter
|
* INPUT
* OUTPUT
* FORWARD
|
|
|-
|nat
|
* PREROUTING
* OUTPUT
* POSTROUTING
|
|
|-
|mangle
|
* PREROUTING
* POSTROUTING
* OUTPUT
* INPUT
* FORWARD
|
|
|-
|raw
|
* PREROUTING
* OUTPUT
|
|
|-
|security
|
|
|
|}


== Tables ==
== Tables ==

Revision as of 17:11, 4 December 2023


filter
  • INPUT
  • OUTPUT
  • FORWARD
nat
  • PREROUTING
  • OUTPUT
  • POSTROUTING
mangle
  • PREROUTING
  • POSTROUTING
  • OUTPUT
  • INPUT
  • FORWARD
raw
  • PREROUTING
  • OUTPUT
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