Routing Traffic on Ubuntu to give Raspberry PI Internet Access

Posted by Scruffers on Server Fault See other posts from Server Fault or by Scruffers
Published on 2012-07-07T08:19:18Z Indexed on 2012/07/07 9:18 UTC
Read the original article Hit count: 232

Filed under:
|
|
|
|

I'm hoping someone can point me in the right direction for setting up my Linux (Ubuntu 12.04) box to route traffic from eth0 to wlan0. I'll try and explain the problem I am trying to solve:

I currently have two separate networks:

[RaspberryPi/eth0] 192.168.2.2 / 255.255.255.0
    ^
    |
    v
[Ubuntu/eth0] 192.168.2.1 / 255.255.255.0

And:

[Ubuntu/wlan0] 192.168.1.100 / 255.255.255.0
    ^
    |
    v
[ADSL router] 192.168.1.1 / 255.255.255.0

So currently if I want to access the RaspberryPI I can SSH from the Ubuntu box to the PI. And if I want to use the Internet, I have full access from the Ubuntu box, but nothing from the RaspberryPI - the two networks are partitioned.

What I would like to do is configure things so that the RaspberryPI has Internet access via the Ubuntu box and out to the Internet.

I tried to create a bridge, but got the message "wlan0: operation not supported" (wireless chipset is Ralink RT3062).

I'm sure giving the Raspberry PI Internet access should be easy to do in this configuration, but I am a bit lost - can someone point me in the right direction please?

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu