tangoviktor
Posts: 7
Joined: Wed Dec 07, 2016 7:56 pm

Share internet connection from RPI2 to zero

Wed Dec 07, 2016 8:02 pm

Hello,

I have been struggeling with this problem for a while now. I have a rpi2 that accesses the web via 4g. I would like to connect the zero to the rpi2 with the usb and share the internet connection that the rpi2 has. I have managed to do it once, but after a reboot it dissapared. I have found a tutorial about using the GPIO pins, but i would like to use the USB, cuz most of my gpio pins are taken by a navio board.

best wishes,
Tõnis.

fruitoftheloom
Posts: 20136
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Share internet connection from RPI2 to zero

Thu Dec 08, 2016 7:04 am

tangoviktor wrote:Hello,

I have been struggeling with this problem for a while now. I have a rpi2 that accesses the web via 4g. I would like to connect the zero to the rpi2 with the usb and share the internet connection that the rpi2 has. I have managed to do it once, but after a reboot it dissapared. I have found a tutorial about using the GPIO pins, but i would like to use the USB, cuz most of my gpio pins are taken by a navio board.

best wishes,
Tõnis.
2 steps..

Raspberry Pi ZERO running in Gadget Mode: http://blog.gbaman.info/?p=791

Raspberry Pi 2B connection sharing - bridge-utils ? https://wiki.debian.org/BridgeNetworkConnections
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

tangoviktor
Posts: 7
Joined: Wed Dec 07, 2016 7:56 pm

Re: Share internet connection from RPI2 to zero

Thu Dec 08, 2016 8:41 am

But should there be some exeptions in the iptable? Or masquerade etc?

recklessfb
Posts: 37
Joined: Wed Jul 06, 2016 12:26 am

Re: Share internet connection from RPI2 to zero

Fri Dec 30, 2016 7:59 pm

Hello, were you able to achieve this?
I'm looking do the the same thing for my pi 3 and the zero.

Return to “Troubleshooting”