Connect devices plugged into Raspberry Pi ethernet to WiFi network

Posted by Tom on Super User See other posts from Super User or by Tom
Published on 2014-06-11T08:29:54Z Indexed on 2014/06/11 9:29 UTC
Read the original article Hit count: 357

I'm just starting out on a mission to learn more about networking and I've followed a tutorial (http://raspberrypihq.com/how-to-turn-a-raspberry-pi-into-a-wifi-router/) to turn my Raspberry Pi into a wifi router.

That worked really well so I modified it slightly so that I can use a tethered iphone for the internet connection - I just switched all "eth0" references to "eth1" (the iphone interface) and added a script to set everything up when the phone is plugged in.

This setup has freed up the Pi's ethernet port so I'd like to try and take this a step further and allow devices plugged into it to connect to the network. If possible, I'd like to try adding a switch so I can connect multiple devices.

I've tried fiddling around with nat & iptables with no luck so my question is, how can I connect devices on eth0 to my wlan network?

© Super User or respective owner

Related posts about linux

Related posts about networking