Linux/iptables: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 3: Line 3:
** iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
** iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
** iptables --append FORWARD --in-interface eth0 -j ACCEPT
** iptables --append FORWARD --in-interface eth0 -j ACCEPT
[[Category:Linux/Network]]

Revision as of 13:29, 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