Re: Enabling Wi-Fi on First boot

2021-07-09 Thread Henrique de Moraes Holschuh
On 06/07/2021 13:05, Michael Richardson wrote: 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 v

Re: Enabling Wi-Fi on First boot

2021-07-08 Thread Michael Richardson
Enrico Mioso wrote: > As you may guess from the thread, the community doesn't want or like to > have this feature "easily" accessible due to it's security > implications. As someone who worries a lot about this, I prefer to include this feature rather than having people make up worse

Re: Enabling Wi-Fi on First boot

2021-07-08 Thread Alberto Bursi
On 08/07/21 11:09, Paul Spooren wrote: I'd argue that it merely completes the OEM options. If that isn't a valid argument we should drop all of VERSIONOPTs since it can be all modified via /files. Adding it as a package would be imho better because it would allow people to use image build

Re: Enabling Wi-Fi on First boot

2021-07-08 Thread Alberto Bursi
On 08/07/21 09:39, Petr Štetiar wrote: Paul Spooren [2021-07-07 15:10:59]: Hi, Feel free to check this out, it's not ready yet but should give an idea: https://github.com/openwrt/openwrt/pull/4349 More sophisticated setups are not supported this is merely used to allow are not supported

Re: Enabling Wi-Fi on First boot

2021-07-08 Thread Paul Spooren
I'd argue that it merely completes the OEM options. If that isn't a valid argument we should drop all of VERSIONOPTs since it can be all modified via /files. -- Jul 7, 2021 21:39:59 Petr Štetiar : Paul Spooren [2021-07-07 15:10:59]: Hi, Feel free to check this out, it's not ready yet but

Re: Enabling Wi-Fi on First boot

2021-07-08 Thread Enrico Mioso
8 Jul 2021 09:39:33 From: Petr Štetiar To: Paul Spooren Cc: Enrico Mioso , openwrt-devel@lists.openwrt.org Subject: Re: Enabling Wi-Fi on First boot Paul Spooren [2021-07-07 15:10:59]: Hi, Feel free to check this out, it's not ready yet but should give an idea: https://github.com/openwr

Re: Enabling Wi-Fi on First boot

2021-07-08 Thread Petr Štetiar
Paul Spooren [2021-07-07 15:10:59]: Hi, > Feel free to check this out, it's not ready yet but should give an idea: > > https://github.com/openwrt/openwrt/pull/4349 > > More sophisticated setups are not supported this is merely used to allow are not supported for *now*, but once folks notice th

Re: Enabling Wi-Fi on First boot

2021-07-07 Thread Enrico Mioso
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 has already been discussed: enabling Wi-Fi on first boot. I would very very much like to see this feature present in OpenWRt: becau

Re: Enabling Wi-Fi on First boot

2021-07-07 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

Re: Enabling Wi-Fi on First boot

2021-07-07 Thread Enrico Mioso
On Tue, 6 Jul 2021, Paul Spooren wrote: Date: Wed, 7 Jul 2021 09:48:59 From: Paul Spooren To: Enrico Mioso , OpenWrt Development List Subject: Re: Enabling Wi-Fi on First boot On 7/6/21 8:42 PM, Enrico Mioso wrote: Hello all! First of all, I'm blind and so I don&#x

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Enrico Mioso
is own image at its own risk. Thanks guys. On Wed, 7 Jul 2021, Vincent Wiemann wrote: Date: Wed, 7 Jul 2021 06:25:29 From: Vincent Wiemann To: Luiz Angelo Daros de Luca , OpenWrt Development List Subject: Re: Enabling Wi-Fi on First boot Hi, this thread seams to be a follow-up of: htt

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 work

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. T

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 ___ openwrt-devel

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 securit

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 ver

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 to

Re: Enabling Wi-Fi on First boot

2021-07-06 Thread Enrico Mioso
Luehrsen wrote: Date: Tue, 6 Jul 2021 19:29:19 From: Eric Luehrsen To: openwrt-devel@lists.openwrt.org Subject: Re: Enabling Wi-Fi on First boot 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

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 (o

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 vendor

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 device

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: openw

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 fine!

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
27;s fine! Thank you all! On Tue, 6 Jul 2021, Alberto Bursi wrote: Date: Tue, 6 Jul 2021 14:36:18 From: Alberto Bursi To: openwrt-devel@lists.openwrt.org Subject: Re: Enabling Wi-Fi on First boot On 06/07/21 09:12, Enrico Mioso wrote: On Mon, 5 Jul 2021, Paul Spooren wrote: Date: Tue,

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 a

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