# Simple WiFi Bridge?

**URL:** <https://forums.balena.io/t/simple-wifi-bridge/344222>\
**Category:** Show and Tell\
**Created:** [August 15, 2021, 6:21am UTC](https://forums.balena.io/t/simple-wifi-bridge/344222 "2021-08-15T06:21:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/maxim/32/5002_2.png) [@maxim](https://forums.balena.io/u/maxim)\
**Post date:** [August 15, 2021, 6:21am UTC](https://forums.balena.io/t/simple-wifi-bridge/344222/1 "2021-08-15T06:21:14Z")

</div>

Hi there, as I love to work with Raspberry Pis, Docker and Balena, I have an idea: do you think it will be possible to convert this solution to Balena Cloud?

> **[Easy Raspberry Pi WiFi Bridge](https://pimylifeup.com/raspberry-pi-wifi-bridge/)**
>
> Setup a simple WiFi bridge with the Pi.

The mission is bloody simple: let’s use some RPis as WiFi bridge - so you can connect your devices without Wifi to your LINE, like some older printers etc. For this, the bridged mode is great, so the RPi will be just passing connections in transparent mode, so ie the printer will be connected to the LAN via Wifi.

I didn’t build any Balena projects before, but I would like to know if you think it’s possible…

Kind Regards  
Maxim

---

<div class="post-metadata">

**Author:** ![phil-d-wilson](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/phil-d-wilson/32/3730_2.png) [@phil-d-wilson](https://forums.balena.io/u/phil-d-wilson)\
**Post date:** [August 16, 2021, 12:47pm UTC](https://forums.balena.io/t/simple-wifi-bridge/344222/2 "2021-08-16T12:47:06Z")

</div>

@vipulgupta2048 You were building a wifi bridge, if memory serves?!? Any advice here?

---

<div class="post-metadata">

**Author:** ![TJvV](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@TJvV](https://forums.balena.io/u/TJvV)\
**Post date:** [August 17, 2021, 7:12am UTC](https://forums.balena.io/t/simple-wifi-bridge/344222/3 "2021-08-17T07:12:43Z")

</div>

Hi,

I may be thinking about this too simple, but it sounds to me like simply setting up a shared connection in NetworkManager might be good enough for the basics?

I think you could do pretty much all of that through the [system-connections](https://www.balena.io/docs/reference/OS/network/2.x/#wifi-setup) alone.  
First configure your WiFi connection to properly connect, and then add an ethernet connection with `method` set to `shared`.  
NetworkManager will then spin up its own instance of dnsmasq, that should take care of the basics.

For more advanced configuration of the dnsmasq used by NetworkManager, you’d probably get into HostOS territory, which makes things a little more tricky.

If you really want it more advanced than just “connect my device to network”, I would need to do some digging about what you can and can’t do from the containers.  
With the help of some DBus magic, many things are possible 🙂

---

<div class="post-metadata">

**Author:** ![vipulgupta2048](https://avatars.discourse-cdn.com/v4/letter/v/a183cd/32.png) [@vipulgupta2048](https://forums.balena.io/u/vipulgupta2048)\
**Post date:** [August 24, 2021, 7:25am UTC](https://forums.balena.io/t/simple-wifi-bridge/344222/4 "2021-08-24T07:25:34Z")

</div>

Indeed @maxim, a WiFi bridge would be a great project to try out and balenafy. I wanted to try something right off the bat if the setup could work without configuration and went with balena [WiFi Repeater project](https://github.com/balenalabs/wifi-repeater) to extend my WiFi range.

For my use case, I wanted to share/bridge the internet connection from my Raspberry Pi4 using ethernet to other devices on my table. Using the WiFi extender project, I was able to get it working straight away by setting up the WiFi-repeater project and then connecting an ethernet cable from RPi4 to other devices. The connection being shared was flaky and a bit unreliable where sometimes it shared and sometimes it didn’t. Couldn’t debug the issue then.

I feel that with some configuration that @TJvV mentioned above. It can be made to work independently without any issues. I will post my research down below for some things I found when I was looking into this. Do let us know how your progress is coming along with this and I will be happy to help you with this. I might give it a shot sometime later too, and see how far we are able to get. Thanks for bringing this up!

1. [Raspberry Pi 4 Model B WiFi Ethernet Bridge - Will Haley](https://willhaley.com/blog/raspberry-pi-wifi-ethernet-bridge/)
2. [Bridge internet to Ethernet from WiFi - Raspberry PI](https://www.elementzonline.com/blog/sharing-or-bridging-internet-to-ethernet-from-wifi-raspberry-pI)

The only challenge I see is getting it all to work under containers but we can push past that hopefully.
