# Disable wi-fi in balenOS

**URL:** <https://forums.balena.io/t/disable-wi-fi-in-balenos/369846>\
**Category:** balenaOS\
**Tags:** network\
**Created:** [February 1, 2024, 4:10pm UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846 "2024-02-01T16:10:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![superdave](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@superdave](https://forums.balena.io/u/superdave)\
**Post date:** [February 1, 2024, 4:10pm UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/1 "2024-02-01T16:10:14Z")

</div>

Hi, I set up a device that is powered over ethernet but not connected to wired network, instead I configured it to connect to Wi-Fi as it was going to be a big job to run a network cable for it.

The device is outside and the Wi-Fi turned out to be unreliable as a result, so I have now installed the network cable and it is connected to wired ethernet. I have removed the device’s access to the Wi-Fi network and as a result it is broadcasting the BalenaWiFi SSID to aid connecting to a new network.

The problem with this device is it is in a sealed box mounted at the top of a tower and I can’t easily get to the device physically so I am not able to re-flash balenaOS with the Wi-Fi disabled. Is there any way I can remotely disable the Wi-Fi on this device so that it does not try to connect to the Wi-Fi network and then end up broadcasting the BalenaWiFi?

Thanks

---

<div class="post-metadata">

**Author:** ![jrr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jrr/32/9321_2.png) [@jrr](https://forums.balena.io/u/jrr)\
**Post date:** [February 1, 2024, 4:47pm UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/2 "2024-02-01T16:47:02Z")

</div>

The first step is understanding where that “BalenaWiFi” SSID is coming from. I bet it’s managed by a service, not the underlying BalenaOS.

Googling around, is it this?: [GitHub - balena-os/wifi-connect: Easy WiFi setup for Linux devices from your mobile phone or laptop](https://github.com/balena-os/wifi-connect)

Can you remove the service entirely (e.g. from docker-compose) and push an update to the device?

---

<div class="post-metadata">

**Author:** ![superdave](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@superdave](https://forums.balena.io/u/superdave)\
**Post date:** [February 1, 2024, 5:05pm UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/3 "2024-02-01T17:05:20Z")

</div>

Hi, my apologies, I should have been more clear.

I am running this: [GitHub - ketilmo/balena-ads-b: ADS-B Flight Tracker running on balena with support for FlightAware, Flightradar24, PlaneFinder, OpenSky Network, RadarBox, ADSB Exchange, Wingbits, and UAT.](https://github.com/ketilmo/balena-ads-b)  
it’s basically a suite of packages for receiving ADS-B data from aircraft and sending it to a bunch of flight tracking websites. I did not develop this app, I simply found it on github and used the “Deploy with Balena” button. I am not an expert with Balena (I have some experience with docker compose e.g. pulling, running containers etc but not developing stuff for Balena).

It includes a container called `wifi-connect` which basically if your device is configured for connection to a Wi-Fi network and it fails to connect after a certain amount of time, it starts up a hotspot called BalenaWiFi to which you can connect and then input details of a different Wi-Fi network to connect to. Once you hit connect it will stop the hotspot and connect to the network you have configured.

---

<div class="post-metadata">

**Author:** ![jrr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jrr/32/9321_2.png) [@jrr](https://forums.balena.io/u/jrr)\
**Post date:** [February 1, 2024, 9:57pm UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/5 "2024-02-01T21:57:57Z")

</div>

Ah, okay, so you’re a user of the ads-b application, not something you’re developing yourself. I think you’ll need to take it up with the maintainers of the app. But based on the [readme](https://github.com/ketilmo/balena-ads-b/tree/ef464be9a98ca84a9ddebcf723c08236cd350460?tab=readme-ov-file#disabling-specific-services) I wouldn’t be too hopeful:

> **Please note:** Due to how these services are integrated, it’s not currently possible to disable the `wifi-connect` and `kiosk` services.

---

<div class="post-metadata">

**Author:** ![superdave](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@superdave](https://forums.balena.io/u/superdave)\
**Post date:** [February 2, 2024, 9:15am UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/6 "2024-02-02T09:15:23Z")

</div>

Hi yes that’s correct, I also saw that text in the readme. That’s why I wondered if there was a way to disable wi-fi in the host OS.

THanks

---

<div class="post-metadata">

**Author:** ![Ketil](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ketil/32/5614_2.png) [@Ketil](https://forums.balena.io/u/Ketil)\
**Post date:** [July 8, 2024, 9:52am UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/7 "2024-07-08T09:52:46Z")

</div>

Hi @superdave,

I’m the maintainer of [balena-ads-b](https://github.com/ketilmo/balena-ads-b). Thanks for reaching out. A user with the same problem raised a ticket here: [Disable wifi-connect service · Issue #119 · ketilmo/balena-ads-b · GitHub](https://github.com/ketilmo/balena-ads-b/issues/119)

Follow this ticket for updates regarding this question, or reach out directly if you have questions.

Happy flight feeding! 😊

---

<div class="post-metadata">

**Author:** ![mani13jha](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mani13jha](https://forums.balena.io/u/mani13jha)\
**Post date:** [July 8, 2024, 5:57pm UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/8 "2024-07-08T17:57:52Z")

</div>

@superdave you can run this command on Host OS terminal to turn of wifi  
nmcli radio wifi off

---

<div class="post-metadata">

**Author:** ![Ketil](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ketil/32/5614_2.png) [@Ketil](https://forums.balena.io/u/Ketil)\
**Post date:** [July 8, 2024, 6:10pm UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/9 "2024-07-08T18:10:34Z")

</div>

Thanks for sharing, @mani13jha!

Will this change be persisted through reboots?

---

<div class="post-metadata">

**Author:** ![mani13jha](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mani13jha](https://forums.balena.io/u/mani13jha)\
**Post date:** [July 8, 2024, 6:25pm UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/10 "2024-07-08T18:25:45Z")

</div>

@Ketil yes it will be persisted through reboots. I have tried this command myself. For turning on the wifi this is the command  
nmcli radio wifi on

---

<div class="post-metadata">

**Author:** ![Ketil](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ketil/32/5614_2.png) [@Ketil](https://forums.balena.io/u/Ketil)\
**Post date:** [July 8, 2024, 8:14pm UTC](https://forums.balena.io/t/disable-wi-fi-in-balenos/369846/11 "2024-07-08T20:14:25Z")

</div>

Awesome, thanks @mani13jha!

I will add your info to the issue mentioned above.

I also found this solution that should work for Raspberry Pis:

1. Head into the balena dashboard, navigate to the desired fleet, and finally to the device you want to turn off WiFi.
2. In the menu on the left side of the screen, click “Device Configuration.”
3. Locate the setting “Define DT overlays” in the list.
4. Add the following value to the setting, in straight quotes: “disable-wifi”. If there already is a value in this field, you should separate the old and new values using a comma, e.g., “vc4-kms-v3d”,“disable-wifi”
5. Click the “Apply all changes”-button. The device should reboot and come up with the WiFi completely disabled.
