Linux/iptables: Difference between revisions
< Linux
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
== Tables == | |||
* Filter (Default) | |||
* NAT | |||
* Mangle (modify ip headers) | |||
* (Raw) (Connection tracking) | |||
* (Security) (SELinux Tagging) | |||
== Chains == | |||
* | |||
== raspi wifi to ethernet == | == raspi wifi to ethernet == | ||
* rc.local | * rc.local |
Revision as of 17:08, 4 December 2023
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