Linux/iptables: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 4: Line 4:
** iptables --append FORWARD --in-interface eth0 -j ACCEPT
** iptables --append FORWARD --in-interface eth0 -j ACCEPT
[[Category:Linux/Network]]
[[Category:Linux/Network]]
[[Category:Linux]]

Revision as of 13:55, 1 April 2017

raspi wifi to ethernet

  • rc.local
    • iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
    • iptables --append FORWARD --in-interface eth0 -j ACCEPT