Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Vincent Wiemann
Hi, this thread seams to be a follow-up of: https://github.com/openwrt/openwrt/pull/2408 The end result was that we could let the status LED signal a randomly generated PSK in morse code. There are several apps like "Morse code reader" for Android which can use a mobile phone's camera to decode

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Luiz Angelo Daros de Luca
Hello, I would enable wifi during the first boot. Maybe we could disable it after a couple of minutes if nothing happens. I would not use an unprotected network, like OpenWrt, as someone could sniff the new password (we also have no https://). But an OpenWrt/OpenWrt could work. If you have a

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Alberto Bursi
On 06/07/21 22:57, Michael Richardson wrote: Alberto Bursi wrote: > "unique" per-device passwords like most vendors are doing are low security > and relatively easy to brute force once someone has disassembled the firmware > and learned the algorithm used to generate them.

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Lao Shaw
What about a built-in one-time only password, that only permits one time use and the customer must change ssid/password after first time access the wifi network? That first ssid/password could well be openwrt/openwrt in this case. Shaw ___

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Michael Richardson
Alberto Bursi wrote: > "unique" per-device passwords like most vendors are doing are low security > and relatively easy to brute force once someone has disassembled the firmware > and learned the algorithm used to generate them. They rely on obscurity for > most of their

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Alberto Bursi
On 06/07/21 21:06, Enrico Mioso wrote: Hello all!! What I was thinking actually was an option I could enable at build-time (kinda preinit option), at my own risk, when building images. From a technical standpoint, will an uci default work in all cases? Thanks a lot for your ideas guys.

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Alberto Bursi
On 06/07/21 19:01, Henrique de Moraes Holschuh wrote: What would work is to reuse the vendor-provided password that is already in the label and somewhere in FLASH, if you could always know where it is in FLASH (you don't).  And some models don't have it. That's a lot of work to get a

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Alberto Bursi
On 06/07/21 16:26, Henrique de Moraes Holschuh wrote: However, it is *not* a simple matter to just "enable wireless" at first boot in OpenWrt (due to a "default password" issue), except maybe in a home-and-enthusiast setting.  You cannot just do it for a device (or firmware) you're going

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Enrico Mioso
Hello all!! What I was thinking actually was an option I could enable at build-time (kinda preinit option), at my own risk, when building images. From a technical standpoint, will an uci default work in all cases? Thanks a lot for your ideas guys. Enrico On Tue, 6 Jul 2021, Eric

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Henrique de Moraes Holschuh
On 06/07/2021 14:29, Eric Luehrsen wrote: > On Tue, Jul 6, 2021, 1:06 PM Henrique de Moraes Holschuh > mailto:henri...@nic.br>> wrote: > > On 06/07/2021 12:05, Nishant Sharma wrote: >  > On 06/07/21 7:56 pm, Henrique de Moraes Holschuh wrote: >  >> So, to safely and responsibly

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Henrique de Moraes Holschuh
I will address the other points in a separate reply. On 06/07/2021 13:05, Michael Richardson wrote: Henrique de Moraes Holschuh wrote: > [1] The reports are public, and available at https://ceptro.br. Disclaimer: I > work for a different division of the same NGO that produced those

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Eric Luehrsen
> > On Tue, Jul 6, 2021, 1:06 PM Henrique de Moraes Holschuh > mailto:henri...@nic.br>> wrote: > > On 06/07/2021 12:05, Nishant Sharma wrote: > > On 06/07/21 7:56 pm, Henrique de Moraes Holschuh wrote: > >> So, to safely and responsibly enable wireless by default in a > device

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Henrique de Moraes Holschuh
On 06/07/2021 12:05, Nishant Sharma wrote: On 06/07/21 7:56 pm, Henrique de Moraes Holschuh wrote: So, to safely and responsibly enable wireless by default in a device (or firmware) you're delivering to a third-party, you need that "per-unit unique wireless password" per device thing most

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Michael Richardson
(combined reply to several emails) Henrique de Moraes Holschuh wrote: > However, it is *not* a simple matter to just "enable wireless" at first boot > in OpenWrt (due to a "default password" issue), except maybe in a > home-and-enthusiast setting. You cannot just do it for a

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Nishant Sharma
On 06/07/21 7:56 pm, Henrique de Moraes Holschuh wrote: > So, to safely and responsibly enable wireless by default in a device (or > firmware) you're delivering to a third-party, you need that "per-unit > unique wireless password" per device thing most vendors are doing. > > [2] not really:

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Henrique de Moraes Holschuh
On 06/07/2021 03:45, Enrico Mioso wrote: I would like to know your opinion on a topic I know has already been discussed: enabling Wi-Fi on first boot. We had to do it here for some modified firmware we distribute (the device with the modified openwrt firmware is then used to measure internet

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Michael Richardson
Enrico Mioso wrote: > I wasn't sure about uci-defaults being the correct way to do it - I was > under the impression it could happen that my script gets ran when it's > too early and /etc/config/wireless hasn't been generated yet. > If this isn't the case, then I think it's

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Eric Luehrsen
On 7/6/21 8:36 AM, Alberto Bursi wrote: On 06/07/21 09:12, Enrico Mioso wrote: On Mon, 5 Jul 2021, Paul Spooren wrote: Date: Tue, 6 Jul 2021 09:06:14 From: Paul Spooren To: Enrico Mioso , openwrt-devel@lists.openwrt.org Subject: Re: Enabling Wi-Fi on First boot On 7/5/21 8:45 PM,

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Enrico Mioso
Thanks a lot Alberto!! I wasn't sure about uci-defaults being the correct way to do it - I was under the impression it could happen that my script gets ran when it's too early and /etc/config/wireless hasn't been generated yet. If this isn't the case, then I think it's fine! Thank you all!

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Alberto Bursi
On 06/07/21 09:12, Enrico Mioso wrote: On Mon, 5 Jul 2021, Paul Spooren wrote: Date: Tue, 6 Jul 2021 09:06:14 From: Paul Spooren To: Enrico Mioso , openwrt-devel@lists.openwrt.org Subject: Re: Enabling Wi-Fi on First boot On 7/5/21 8:45 PM, Enrico Mioso wrote: Hello all!! I would

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Enrico Mioso
On Tue, 6 Jul 2021, Tom Psyborg wrote: Date: Tue, 6 Jul 2021 11:37:15 From: Tom Psyborg To: Enrico Mioso Cc: Paul Spooren , OpenWrt Development List Subject: Re: Enabling Wi-Fi on First boot It's been discussed multiple times already. There is no need for additional scripts as you

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Enrico Mioso
On Mon, 5 Jul 2021, Paul Spooren wrote: Date: Tue, 6 Jul 2021 09:06:14 From: Paul Spooren To: Enrico Mioso , openwrt-devel@lists.openwrt.org Subject: Re: Enabling Wi-Fi on First boot On 7/5/21 8:45 PM, Enrico Mioso wrote: Hello all!! I would like to know your opinion on a topic I know

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Paul Spooren
On 7/5/21 8:45 PM, Enrico Mioso wrote: Hello all!! I would like to know your opinion on a topic I know has already been discussed: enabling Wi-Fi on first boot. I would very very much like to see this feature present in OpenWRt: because I find myself in a scenario where plugging an Ethernet

Enabling Wi-Fi on First boot

2021-07-06 Thread Enrico Mioso
Hello all!! I would like to know your opinion on a topic I know has already been discussed: enabling Wi-Fi on first boot. I would very very much like to see this feature present in OpenWRt: because I find myself in a scenario where plugging an Ethernet cable after a fresh sysupgrade without