RPi + wifi to eth

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

RPi + wifi to eth

Postby bloodragon » Mon May 13, 2013 10:56 pm

Hello i have 2 RPi the first has an Edimax wifi dongle and i would like to share the internet connection from the wifi trough the ethernet to the 2nd RPi.
The wifi connection on the first Pi is managed by wicd (wicd-curses).
I've installad also iptables and dhcpd to create the NAT and to setup a DHCP server to be used by the 2nd Pi.
I tried following the guide on archlinux wiki but without any result.
Do you have any hint?
bloodragon
 
Posts: 13
Joined: Wed Jul 06, 2011 3:31 pm
Location: London UK

Re: RPi + wifi to eth

Postby grayman4hire » Tue May 14, 2013 12:36 am

I've thought about doing something similar on my PogoPlug E02.

I don't have a solution for you, but I think you maybe going about it the wrong way. What you want to do is bridge the ethernet port (wired-eth0) with the wlan0 card, not create another NAT/DHCPServer.

Take a look this (I know you're not using netcfg) - https://wiki.archlinux.org/index.php/Bridge_with_netcfg

Looks like the bridge-utils package is what you may need.
Last edited by grayman4hire on Tue May 14, 2013 12:46 am, edited 1 time in total.
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: RPi + wifi to eth

Postby pepedog » Tue May 14, 2013 12:43 am

Are you willing to start from scratch? New rpi rootfs being done now.
wifi-menu sets up wireless, systemctl enable netctl-auto@wlan0 starts it on boot, dnsmasq for dhcp allocation, shorewall for nat. Can help tommorow if details needed. eth0 obviously made static
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: RPi + wifi to eth

Postby bloodragon » Tue May 14, 2013 8:23 am

Thanks to both of you... I can restart from scratch also because i've started just yesterday night... 4h of my life on ssh instead that in front of "Games of Thrones"...
in the mean time i'll give a read to the wiki page linked and the one for shorewall too..
see u tomorrow
bloodragon
 
Posts: 13
Joined: Wed Jul 06, 2011 3:31 pm
Location: London UK

Re: RPi + wifi to eth

Postby pepedog » Tue May 14, 2013 10:05 am

grayman4hire
I have done bridge the other way around, ie wireless is an access point bridge mode, nice and simple.
I can't get my head around the opposite though.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: RPi + wifi to eth

Postby grayman4hire » Tue May 14, 2013 4:15 pm

It's basically turning the Pi/PogoPlug into a Wireless Bridge (but making sure the Pi/PogoPlug is still accessible).

I'm sure its possible to do, just not sure how straightforward it would be.
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: RPi + wifi to eth

Postby bneate » Wed May 15, 2013 4:55 pm

I'm not sure which guide you already followed but I've had success using https://wiki.archlinux.org/index.php/Internet_Share. One thing I had to do to get internet access on the second box was to set the DNS servers to point to the google ones 8.8.8.8 and 8.8.4.4
bneate
 
Posts: 11
Joined: Thu Aug 25, 2011 3:23 pm

Re: RPi + wifi to eth

Postby grayman4hire » Thu May 16, 2013 5:15 pm

I googled "wireless bridge pi" and "wireless bridge arch" this morning and surprisingly found quite a bit of information on it.

I think this provides the best lead eventhough it's not arch:
http://www.raspberrypi.org/phpBB3/viewt ... 27&t=17702

This one has a nice picture, but uses a routed network versus a (true) bridge
http://users.sdsc.edu/~glockwood/sa/rpi-wifi-bridge.php
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 2 guests