Linux/iptables

From Wiki
< Linux
Revision as of 17:08, 4 December 2023 by Marcluer (talk | contribs)



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