Linux/iptables: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „== raspi wifi to ethernet == *iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE *iptables --append FORWARD --in-interface eth0 -j A…“)
 
No edit summary
Line 1: Line 1:
== raspi wifi to ethernet ==
== raspi wifi to ethernet ==
*iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
* rc.local
*iptables --append FORWARD --in-interface eth0 -j ACCEPT
** iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
** iptables --append FORWARD --in-interface eth0 -j ACCEPT

Revision as of 22:06, 25 March 2014

raspi wifi to ethernet

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